User can create routing regular expression without pattern param input #4981
Labels
regression bug
a bug in existing functionality introduced by a new version
Traffic Ops
related to Traffic Ops
I'm submitting a ...
Traffic Control components affected ...
Current behavior:
The POST handler of the
deliveryservices/{{ID}}/regexes
endpoint let user create routing regular expression for a Delivery Service when the request payload have a blank pattern.Expected / new behavior:
It should not let user create regexes and return 400 Bad Request with response message like
Minimal reproduction of the problem with instructions:
Do a POST
https://{{TO_BASE_URL}}/api/3.0/deliveryservices/1/regexes
with this payload:Pattern input is empty and user can still create a regrexes.
Anything else:
The text was updated successfully, but these errors were encountered: