-
Notifications
You must be signed in to change notification settings - Fork 808
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
Create placeholder while dehydrating if needed #5890
Create placeholder while dehydrating if needed #5890
Conversation
4034de7
to
376a318
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks
see my comments
c25309a
to
68fbea0
Compare
68fbea0
to
96be7a3
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #5890 +/- ##
==========================================
- Coverage 60.08% 60.06% -0.03%
==========================================
Files 145 145
Lines 18756 18759 +3
==========================================
- Hits 11270 11268 -2
- Misses 7486 7491 +5
|
When replacing an OnlineOnly file by another one, the file maintains it OnlineOnly pin state, but it is converted to a regular file. So, the dehydration should convert the regular file to a (dehydrated) placeholder instead of trying to update the (non-existing) placeholder. Closes nextcloud#4274 Signed-off-by: Dries Mys <[email protected]>
96be7a3
to
9256417
Compare
AppImage file: nextcloud-PR-5890-9256417612e36df64a96fff2ffe97e6f8a8fa8f7-x86_64.AppImage |
/backport to stable-3.9 |
When replacing an OnlineOnly file by another one, the file maintains it OnlineOnly pin state, but it is converted to a regular file. So, the dehydration should convert the regular file to a (dehydrated) placeholder instead of trying to update the (non-existing) placeholder.
Closes #4274
The same problem is also discussed in the following threads:
Steps to reproduce the the issue:
- Create file "a"
- Create folder "A"
- Copy file "a" to "A"
- Let the client sync the local changes to the server.
- Choose "Free up space" for "A/a" in Windows explorer
- Copy file "a" again to "A" (and let Windows replace the file)
- "Can't update non existing placeholder info" error is shown and "A/a" will indefinitely show the syncing icon.