user_details.py / UserDetailsEndpoint.put() gets email from wrong request field #77000
Open
Description
Environment
self-hosted (https://develop.sentry.dev/self-hosted/)
Steps to Reproduce
- Have user names which are different from email addresses (i.e. username is "john", email is "john@smith.tld").
- Go to Admin/Users/User (pick the user which has verified email)
- Make some change (for example, switch Admin status)
- Click "Save Changes".
Expected Result
There should be no error while saving changes in this case.
Actual Result
Getting HTTP 400 {"detail": "Verified email address is not found."}
despite the fact email is verified.
Simple patch solves the problem, PR: #77012
Product Area
Other
Link
No response
DSN
No response
Version
24.8.0
Metadata
Assignees
Type
Projects
Status
No status