-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
./data/avatars used as avatar file of first organization created upon installing from scratch #1114
Closed
2 of 6 tasks
Comments
lunny
added a commit
to lunny/gitea
that referenced
this issue
Mar 6, 2017
Merged
lunny
added a commit
that referenced
this issue
Mar 6, 2017
The problem is fixed running 2215840 under the very same circumstances as depicted in the initial comment here. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
[x]
):Description
When the first organization is created after installing from scratch, it is assigned a random icon which is saved as file
./data/avatars
. This completely compromises any use of./data/avatars
as folder as usual.To reproduce install Gitea from scratch, that is new database and so on, create an administrative user, have that user create the first organization of the Gitea instance and check the FHS.
The problem can not be seen when a directory
./data/avatars
is created after installing but before creating the first organization or when an instance which preexists including a directory./data/avatars
is upgraded.Either way new organizations are assigned the Gitea cup of tea as an icon, no longer the random icon as in earlier versions. I guess this is on purpose, but it is in contrast to a random icon still involved when the problem is manifest.
Permission issues weren't involved here as e. g.
./data/sessions
is created as a folder and handled as usual.Problem is a regression which didn't exist in 1f7837d which happens to be the last version I had installed from scratch.
EDIT Add behaviour when
./data/avatars
preexists as directory plus some minor details.The text was updated successfully, but these errors were encountered: