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
This Bug Report affects these Traffic Control components:
Traffic Ops
Current behavior:
When you make a POST request to the /phys_locations endpoint, if you pass in the body with id from one Region and the name from another Region you get a successful response.
Expected behavior:
Request with a mismatch between Redion ID and name should fail or region could be dynamically named based on ID.
Minimal reproduction of the problem with instructions:
... or region could be dynamically named based on ID.
So instead of just ignoring the name it would correct it in the response to be the Region identified by regionId? IMO, it would be best to just do away with the ID in the requests and responses and just only use the name. Of course, that'll be a breaking API change whereas just correcting it wouldn't be.
I'm submitting a
This Bug Report affects these Traffic Control components:
Current behavior:
When you make a POST request to the
/phys_locations
endpoint, if you pass in the body with id from one Region and the name from another Region you get a successful response.Expected behavior:
Request with a mismatch between Redion ID and name should fail or
region
could be dynamically named based on ID.Minimal reproduction of the problem with instructions:
With these Regions in Traffic Ops
Make a POST request to
/phys_locations
with this body:observe a 200 OK response that verifies the current state of the object is exactly what was submitted:
... even though a subsequent
GET
request made to/phys_locations?id=3
shows that the Region name is different than what was submitted:The text was updated successfully, but these errors were encountered: