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

Most attachments deleted from server when upgrading to 1.10.0-dev from 1.9.3 #8434

Closed
guillep2k opened this issue Oct 9, 2019 · 0 comments · Fixed by #8435
Closed

Most attachments deleted from server when upgrading to 1.10.0-dev from 1.9.3 #8434

guillep2k opened this issue Oct 9, 2019 · 0 comments · Fixed by #8435
Labels
Milestone

Comments

@guillep2k
Copy link
Member

guillep2k commented Oct 9, 2019

I've just upgraded my company server to 1.10.0-dev from 1.9.3 and most attachments from issues were gone from the file-system (they were still there in the attachment table). Lucky me I had a good backup at hand and recovered them all, so no worries there. However, this is something we should definite look into.

I've checked what migration steps new to 1.10 are related to attachments and I've found this step from #6068:

func deleteOrphanedAttachments(x *xorm.Engine) error {

I'm not sure about the reasoning of the function, but it seems to me that it deletes all but those related to releases (EDIT: or comments; those deleted were from issues or PR).

@lunny lunny added the type/bug label Oct 9, 2019
@lunny lunny added this to the 1.10.0 milestone Oct 9, 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.

2 participants