Concurrent renaming of the same file on the server and client results in duplicate files without conflict detection
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
The payload names no source files or tests, so start by reproducing the rename-on-both-sides scenario from the steps in the issue with a local server and a desktop client, then find where the client's sync engine compares local and remote rename operations. Done means the concurrent rename is either detected and reported as a conflict or the maintainers agree on the intended merge behaviour, and the activity log shows both operations. Expect design discussion before a patch.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
[DC-410]
Pre-submission Checks
- I checked for similar issues, but could not find any. I also checked the closed issues. I could not contribute additional information to any existing issue.
- I will take the time to fill in all the required fields. I know that the bug report may be dismissed otherwise due to lack of information.
Describe the bug
When the same file is renamed independently on the server and the desktop client before the server-side rename has synchronised to the client, both renamed versions appear as separate files after synchronisation completes.
For example:
- A file named
test19exists in a synchronised folder on both the server and the local client. - Rename
test19totest30directly on the server. - Before this change is synchronised to the desktop client, rename the still-existing local file
test19totest31. - Allow synchronisation to complete.
After synchronisation, both test30 and test31 appear as separate files on the server and in the local synchronised folder.
However, these are two different names resulting from renaming the same original file. No conflict is detected or reported, despite both rename operations targeting the same original file.
This behavior also seem to appear because of the delay on server to client synchronization
Expected behavior
Changes made directly on the server should be automatically detected and synchronised to the connected desktop client without requiring manual intervention.
When the same original file is renamed independently on the server and the desktop client before the initial change has synchronised, the client should detect and appropriately handle the conflicting changes.
It should not silently result in two separate files containing identical content without reporting or handling the conflict.
The activity history should also accurately represent the operations performed.
Steps to reproduce the issue
- Connect the ownCloud desktop client and the server using the same account.
- Ensure that a file named
test19exists in a synchronised folder on both the server and the local client. - Rename
test19totest30directly on the server through the web interface. - Before the server-side rename is synchronised to the desktop client, rename the still-existing local file
test19totest31using the local file manager. - Allow the desktop client to complete synchronisation or manually click on "Sync Now" from the desktop client
- Check the corresponding folder on the server and the local client.
- Observe that both
test30andtest31exist as separate files. - Check the desktop client's activity history.
- Observe that only one rename operation is displayed and no conflict is reported.
Screenshots
- Both test30 and test31 appear as separate files on the server and in the local synchronised folder.
- No conflict is detected or reported.
- No conflict copy is created.
https://github.com/user-attachments/assets/0f6dfda4-5249-4c9c-a979-b2652ca2f71e
The activity history on reproducing showed the following details
Logs
No response
Client version number
ownCloud desktop client: 7.2.0.19922-rc.3
Desktop environment (Linux only)
Ubuntu 24.04.5 LTS.
Client package version and origin (Linux only)
Installed Linux app image from https://download.owncloud.com/desktop/ownCloud/testing/7.2.0.19922-rc.3/linux-appimage/
Installation path (Windows only)
No response
Server information
Server: ownCloud Infinite Scale (oCIS)
Server version: 8.2.0+42f7fdcfee2
Web UI: ownCloud Web UI 12.5.0
Server execution: Built from binary and running using ocis/bin/ocis server.
Additional context
Additional observation
Synchronisation behaviour appears to differ depending on the direction of the change:
Test scenario:
- Ensure that a file named
Test22exists on both the server and the local client. - Rename Test22 to
Test10on the local client. - Rename Test22 to
Test15directly on the server before the client-side change has fully synchronised. - Allow synchronisation to complete.
- Check the resulting filename on both the server and the local client.
Observed behavior:
- After synchronisation, both the server and the local client contain the file named Test15.
In this scenario, both locations eventually reflect the same filename, and no duplicate files are observed.
https://github.com/user-attachments/assets/1fa4b65d-2400-4042-806c-733deb208754
- Ngôn ngữ chính
- C++
- Star
- 1.5k
- Fork
- 695
- Merge trung bình
- 8 ngày 7 giờ
- Pull request đã merge (30 ngày)
- 6
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của owncloud/client
-
Add Ubuntu 26.04 LTS packagesĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Account removal silently keeps the local sync folder, so re-adding creates ownCloud (2), (3), …Có thể đã có người làm @Eiji-Kondo đã nhận 8 ngày trước. Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Overlay icons show "sync" instead of the warning (yellow) or error (red) icon for sync errors.Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của owncloud/client
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
HarperFast/rocksdb-js#1131 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/daemon bug good first issue platform/linux priority/p2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
ToshiNamura/Deimos#5 ·
-
needs-format
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Niko1221/Strata#6251 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 5 ngày
-
[Bug]: NP 管理器文件编辑器里删除键无效Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
metasequoiaime/msime#11666 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
patrick-hudson/put.gd-desktop#1679 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày