Skip to content

Bad MD5 filename for non-default avatars #23041

Closed
@astos-marcb

Description

@astos-marcb

Description

The avatar picture endpoint always returns the default picture.
See difference to actual profile picture for account

Path for the non-default picture resolves to the file content hash md5(<id>-<md5(content)>) (as saved in u.Avatar) instead of the standardized md5(email).

Gitea Version

1.18.4

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

2.36.5

Operating System

Alpine Linux

How are you running Gitea?

docker, verified on https://try.gitea.io/

Database

SQLite

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions