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 a source of VFS inconsistencies #4155

Merged
merged 1 commit into from
Oct 10, 2023
Merged

Fix a source of VFS inconsistencies #4155

merged 1 commit into from
Oct 10, 2023

Conversation

nono
Copy link
Member

@nono nono commented Oct 10, 2023

CouchDB is using ICU algorithm for views and mango requests. It can be surprizing, and it was the source of a bug in the stack. When a directory 'EDF' is trashed, and a directory 'EDF⚡️' was nearby, the path of this directory can be incorrectly modified to be put in the trash.

The system test 'filepath_operations.rb' was restored from a6a442b, and updated to test this new case.

CouchDB is using ICU algorithm for views and mango requests. It can be
surprizing, and it was the source of a bug in the stack. When a
directory 'EDF' is trashed, and a directory 'EDF⚡️' was nearby, the path
of this directory can be incorrectly modified to be put in the trash.

The system test 'filepath_operations.rb' was restored from
a6a442b, and updated to test this new
case.
@nono nono requested a review from a team as a code owner October 10, 2023 09:36
folder = Folder.create inst, name: "EDF"
Folder.create inst, name: "EDF⚡️"
folder.remove inst
assert_equal inst.fsck, []
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we could also check that EDF⚡️ still exists?!

@nono nono merged commit fdb9bcd into master Oct 10, 2023
6 checks passed
@nono nono deleted the fix-icu-issue branch October 10, 2023 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants