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

Deleted user's (Ghost) avater image generates error 500 #8853

Closed
2 of 7 tasks
ashimokawa opened this issue Nov 6, 2019 · 2 comments · Fixed by #9536
Closed
2 of 7 tasks

Deleted user's (Ghost) avater image generates error 500 #8853

ashimokawa opened this issue Nov 6, 2019 · 2 comments · Fixed by #9536
Labels
Milestone

Comments

@ashimokawa
Copy link
Contributor

  • Gitea version (or commit ref): 1.10-rc2
  • Git version: 2.20.1
  • Operating system: Debian 10
  • Database (use [x]):
    • PostgreSQL
    • MySQL (mariadb)
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No (READ DESCRIPTION)
    • Not relevant
  • Log gist:

2019/11/06 08:19:24 ...uters/user/avatar.go:29:Avatar() [E] Requested avatar for invalid user: user does not exist [uid: 0, name: Ghost, keyid: 0]

Description

When a user, who created an issue, deletes itself, the issue is re-assigned to "Ghost", who does not have an image.

https://codeberg.org/user/avatar/Ghost/-1 generates error 500

See here:

https://codeberg.org/crimeflare/cloudflare-tor/issues/16

This does not happen on try.gitea.io because someone created a Ghost user there when it was not yet blacklisted. So the avatar is there.

https://try.gitea.io/Ghost

@lunny lunny added the type/bug label Nov 6, 2019
@ashimokawa
Copy link
Contributor Author

on codeberg.org we worked around the problem by putting a valid image in a file called

/etc/gitea/public/user/avatar/Ghost/-1

@6543
Copy link
Member

6543 commented Dec 29, 2019

@techknowlogick / @lunny can you add Milestone 1.10.2 ?

@lunny lunny added this to the 1.10.2 milestone Dec 29, 2019
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
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.

3 participants