User properties are only required sometimes #6776
Labels
bug
something isn't working as intended
low difficulty
the estimated level of effort to resolve this issue is low
low impact
affects only a small portion of a CDN, and cannot itself break one
Traffic Ops
related to Traffic Ops
Related to #6299 but somewhat of a bigger deal because using one endpoint can cause the other to give back a representation that can't be passed validly back to that same endpoint.
This Bug Report affects these Traffic Control components:
Current behavior:
The fields
email
andfullName
are not allowed to be blank, missing, ornull
in PUT or POST requests to/users/{{ID}}
and/users
(respectively), but are allowed to be any of those things in PUT requests to/user/current
. So you can put your user in a state where it can't be updated viaPUT /users/{{ID}}
without fixing pre-existing issues, which could cause problems in a situation where there isn't a human around to intervene.Also, a PUT request to
/user/current
, because it incorrectly behaves more like a PATCH, doesn't require other fields - Role ID, username, and tenantID/tenantId whereas/users
does. That's not as big a deal, though, because it leaves them unchanged when not specified.Expected behavior:
Our users API should make sense
Steps to reproduce:
Edit yourself to have a null fullName, then try to update your addressLine1 using a PUT request to
/users
The text was updated successfully, but these errors were encountered: