[Security Solution] [Exceptions] PUT
api allows empty item_id
but fails validation when fetching the associated list
#191315
Labels
bug
Fixes for quality problems that affect the customer experience
fixed
impact:medium
Addressing this issue will have a medium level of impact on the quality/strength of our product.
Team:Detection Engine
Security Solution Detection Engine Area
v8.16.0
Kibana version:
8.15.0 and below
Describe the bug:
If a customer updates an exception item using the
PUT
api and consequently sets theitem_id
to an empty string""
, subsequent fetching of that exception item, or fetching the list the item is associated with, will fail validation and result in the UI displaying a 500 error toast.Exceptions list view (exception lists are visible but toast appears):
Exception list details (list items are not rendered and toast appears):
Steps to reproduce:
Now when we try to fetch the exception list that contains the item with the empty
item_id
we will see the validation failurewhich returns the validation error
Expected behavior:
Prevent the empty string from being accepted in the
PUT
route. Anull
value foritem_id
is disallowed in thePUT
route and I believe the empty string should be treated similarly.The text was updated successfully, but these errors were encountered: