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

Fix data corruption when moving folders #4169

Merged
merged 2 commits into from
Oct 3, 2023

Conversation

WithoutPants
Copy link
Collaborator

@WithoutPants WithoutPants commented Oct 2, 2023

The folder rename detection code renamed the direct folder, but assumed that sub-folders would be handled during the scan. This left folders in zip files with incorrect paths, and could potentially impact other non-zip sub-folders as well.

The folder rename code now updates contained folders to have the correct sub-directory path. Also includes a data correction migration to correct any existing folders to be within their parent folder.

Fixes #4146

@WithoutPants WithoutPants added the bug Something isn't working label Oct 2, 2023
@WithoutPants WithoutPants added this to the Version 0.23.0 milestone Oct 2, 2023
@WithoutPants WithoutPants merged commit 0dbe3e6 into stashapp:develop Oct 3, 2023
2 checks passed
halkeye pushed a commit to halkeye/stash that referenced this pull request Sep 1, 2024
* Add data correction migration
* Correct folder hierarchy after folder move
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug Report] Unable to clean moved zip galleries
1 participant