Skip to content

The user's home page pointed to in the commit message is wrong #20390

@anquar

Description

@anquar

Description

Error scenario:
After starting gitea, I created an administrator user A. User A's mailbox is [email protected]. Then I created administrator user B with A, and the mailbox was specified as [email protected]; then I logged in to user B and modified User A's mailbox is [email protected], and then B's own mailbox is changed to [email protected] (original A's mailbox). After this, the hyperlinks indicating the user's homepage in the commit information initiated by user B all point to the username of user A by mistake.

Error analysis:
By looking at the email_address table (Mysql), we found that user A has two associated records ([email protected] and [email protected]), and user B has only [email protected] record. Therefore, we believe that the error occurred when modifying the user's mailbox, failing to delete the information in the email_address table.

To fix the problem manually:
We got everything back to normal by modifying the data in the database to what we wanted (A's mailbox is [email protected] and B's mailbox is [email protected]).

Gitea Version

1.16.9

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

Intranet deployment, no pictures yet

Git Version

1.8

Operating System

redhat7

How are you running Gitea?

https://dl.gitea.io/gitea/1.16.9/gitea-1.16.9-linux-arm64

Database

MySQL

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