-
Problem report
-
Resolution: Fixed
-
Major
-
None
-
None
-
Sprint 100 (May 2023), Sprint 101 (Jun 2023), Sprint 102 (Jul 2023), Sprint 103 (Aug 2023)
-
0.5
There seems to be an issue with the way media type webhook and script parameters are functioning.
Steps to reproduce:
Part 1:
- Go to Alerts -> Media types
- Create new media type
- Fill in the data:
- Name: test
- Type: Webhook
- Parameters: Leave the default parameters unchanged
- Script: test
- Press "Add" to create media type.
- Open the created media type "test"
- Observe: All data is correct.
- Change the data:
- Type: Script
- Script name: test
- Do not add script parameters!
- Update the media type.
- Open the edited media type "test"
- Observe: There are 4 script parameters added.
Result:
Part 2:
- Remove all of the parameters;
- Update "test" media type;
- Open "test" media type;
- Observe: Three parameters are still added.
Part 3:
- Remove all 3 parameters;
- Add new parameter with value "test";
- Update "test" media type
- Open "test" media type;
- Observe: Three parameters are still added - two empty + previously added parameter "test".
Part 4:
- Edit the "test" media type and change data:
- Type: Webhook
- Script: "test"
- Do not change the automatically added parameters!
- Update media type
- Open "test" media type and observe: No parameters are added.
Expected:
Media type and script parameters are not "mixed" together when media type Type is changed from Webhook to script and the other way around.
Note: This affects version 6.4 and master. Looks like the issue can be reproduced after commit b1002a8c5c7.