Repository navigation
Conversation
1 task
…ide renames Signed-off-by: Jesus Recio <[email protected]>
Signed-off-by: Jesus Recio <[email protected]>
jesmrec
force-pushed
the
fix/deleted_file_stays_app
branch
from
November 26, 2026 12:34
74792ff to
ef3d0b0
Compare
Signed-off-by: Jesus Recio <[email protected]>
jesmrec
force-pushed
the
fix/deleted_file_stays_app
branch
from
November 26, 2026 12:48
ef3d0b0 to
ed1bdf7
Compare
jesmrec
marked this pull request as ready for review
November 26, 2026 12:59
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When a folder is renamed on the server, the app keeps showing the old folder name.
This happens because the sync logic matches local entries to remote ones by
remoteId, so a renamed folder is correctly matched to its local counterpart. However, the only condition that triggered an update was an etag change. Since folder etags only reflect changes to their content (not their name), renaming a folder does not change its etag. As a result, the renamed folder's new path was ignored and the local entry kept its old path.The bug consistently reproduces for available offline folders because the background worker recursively enters subfolders and keeps their etag in sync with the server. For non-av.off. subfolders, this never happens automatically. If the user has never navigated inside, the local etag stays as "". Since
"" != server_etagis alwaystrue,etagChangedfires on every sync and the rename is detected incidentally. By browsing into the non-av.off. folder and then browsing back, the problem is also reproducible and the fix works as well.This is specific to folders. File renames do update the etag on the server, so they were already handled correctly.
The fix adds
localChildToSync.remotePath != remoteChild.remotePathas an additional condition to trigger a local update. When a renamed folder is matched by remoteId, the path mismatch is now detected and the local DB entry is updated with the new remote path regardless of the etag.Related Issues
App: #5014
ReleaseNotesViewModel.ktcreating a newReleaseNote()with String resources (if required)QA