Skip to content

user_details.py / UserDetailsEndpoint.put() gets email from wrong request field #77000

Open
@nvsmirnov

Description

Environment

self-hosted (https://develop.sentry.dev/self-hosted/)

Steps to Reproduce

  1. Have user names which are different from email addresses (i.e. username is "john", email is "john@smith.tld").
  2. Go to Admin/Users/User (pick the user which has verified email)
  3. Make some change (for example, switch Admin status)
  4. 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

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions