Random avatar regenerated when commit site is reloaded #631

Closed
opened 2025-11-02 03:30:58 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @rugk on GitHub (Apr 9, 2017).

  • Gitea version (or commit ref): 1.1.0
  • Git version: not relevant
  • Operating system: Debian Jessie
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:
2017/04/09 18:15:19 [I] New random avatar created: 2
2017/04/09 18:15:19 [I] New random avatar created: 2
2017/04/09 18:15:24 [I] New random avatar created: 2
2017/04/09 18:15:25 [I] New random avatar created: 2
2017/04/09 18:21:36 [I] New random avatar created: 2
2017/04/09 18:21:36 [I] New random avatar created: 2
2017/04/09 18:21:55 [I] New random avatar created: 2
2017/04/09 18:21:56 [I] New random avatar created: 2

Description

The user I am using had no avatar in Gogs (and neighter in Gitea), so it uses the default random avatar. However every time I reload a site with a commit (of me) a new avatar is generated. This can also be seen in the log.
Of course, this affects more than commit sites, also when I try to "delete" my profile picture, it is regenerated. This could however be expected – or you jsut should not allow deleting the picture when there is none/the default one.

Originally created by @rugk on GitHub (Apr 9, 2017). - Gitea version (or commit ref): 1.1.0 - Git version: not relevant - Operating system: Debian Jessie - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [x] No - [ ] Not relevant - Log gist: ``` 2017/04/09 18:15:19 [I] New random avatar created: 2 2017/04/09 18:15:19 [I] New random avatar created: 2 2017/04/09 18:15:24 [I] New random avatar created: 2 2017/04/09 18:15:25 [I] New random avatar created: 2 2017/04/09 18:21:36 [I] New random avatar created: 2 2017/04/09 18:21:36 [I] New random avatar created: 2 2017/04/09 18:21:55 [I] New random avatar created: 2 2017/04/09 18:21:56 [I] New random avatar created: 2 ``` ## Description The user I am using had no avatar in Gogs (and neighter in Gitea), so it uses the default random avatar. However every time I reload a site with a commit (of me) a new avatar is generated. This can also be seen in the log. Of course, this affects more than commit sites, also when I try to "delete" my profile picture, it is regenerated. This could however be expected – or you jsut should not allow deleting the picture when there is none/the default one.
GiteaMirror added the issue/stale label 2025-11-02 03:30:58 -06:00
Author
Owner

@rugk commented on GitHub (Jun 24, 2017):

Still reproducible with v1.1.2. The "fix update avatar" either does not seem to be related to this issue or the fix does not work.

@rugk commented on GitHub (Jun 24, 2017): Still reproducible with v1.1.2. The ["fix update avatar"](https://github.com/go-gitea/gitea/releases) either does not seem to be related to this issue or the fix does not work.
Author
Owner

@stale[bot] commented on GitHub (Feb 14, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Feb 14, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#631