You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a new alert using an HTTP POST request to the /api/alert endpoint, it is possible to provide invalid TLP and/or severity attributes values and the API will happily accept it (for example, a TLP value of 42 and a severity value of -273).
Only valid values for these attributes should be accepted, ie (per the doc):
The API shall return a 400 HTTP status code with a message pointing at the wrong attribute(s) value(s) when one of the TLP or severity attribute value is out of range.
Complementary information
The text was updated successfully, but these errors were encountered:
Request Type
Bug
Work Environment
Problem Description
When creating a new alert using an HTTP POST request to the
/api/alert
endpoint, it is possible to provide invalid TLP and/or severity attributes values and the API will happily accept it (for example, a TLP value of42
and a severity value of-273
).Only valid values for these attributes should be accepted, ie (per the doc):
-1
:unknown
;0
:white
;1
:green
;2
:amber
;3
:red
)0
:not set
;1
:low
;2
:medium
;3
:high
)The UI is confused when the TLP or severity values of alerts or cases are invalid (see screenshot).
Steps to Reproduce
Possible Solutions
The API shall return a
400
HTTP status code with a message pointing at the wrong attribute(s) value(s) when one of the TLP or severity attribute value is out of range.Complementary information
The text was updated successfully, but these errors were encountered: