Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not update user from site administration page #18248

Closed
hijiki51 opened this issue Jan 12, 2022 · 1 comment · Fixed by #18250
Closed

Could not update user from site administration page #18248

hijiki51 opened this issue Jan 12, 2022 · 1 comment · Fixed by #18250
Labels
Milestone

Comments

@hijiki51
Copy link

Gitea Version

v1.15.9

Git Version

2.25.1

Operating System

Ubuntu

How are you running Gitea?

Docker

Database

MySQL

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Description

For invalid argument on here which requires emailAddress.ID(int64), but passed emailAddress (EmailAddress)

therefore, internal server error occurred update user email from site administration page.

steps to recreate

  1. open site-administrating page
  2. edit some user email and save
gitea_1  | 2022/01/12 09:59:36 Started POST /admin/users/1 for 172.25.0.1:35752
gitea_1  | 2022/01/12 09:59:36 ...s/web/admin/users.go:345:EditUserPost() [E] UpdateUser: ID param models.EmailAddress{ID:1, UID:1, Email:"[email protected]", LowerEmail:"[email protected]", IsActivated:true, IsPrimary:false} is not supported
gitea_1  | 2022/01/12 09:59:36 Completed POST /admin/users/1 500 Internal Server Error in 3.0046ms

Screenshots

No response

@hijiki51
Copy link
Author

thank you!

@go-gitea go-gitea locked and limited conversation to collaborators Apr 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants