Skip to content

Could not update user from site administration page #18248

Closed
@hijiki51

Description

@hijiki51

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:"example@example.com", LowerEmail:"example@example.com", 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions