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

Seafile index update failure on deletion of files invalid on Windows #2211

Open
iosifpeterfi opened this issue Jun 26, 2019 · 0 comments
Open

Comments

@iosifpeterfi
Copy link

iosifpeterfi commented Jun 26, 2019

Testcase description
While working on a shared library, somebody uploads a file/folder containing in it's name a character that is not supported by Windows. This file/folder is later deleted from the web client. Later, the files/folders pops back into the library.

Carried out from
Windows 7 Laptops, Seafile Clients 6.2.11

Date of Testing
2019-06-25

Description of SetUp
User
Windows 7 SP 1
Seafile Client 6.2.11 for Windows

Result of Testing
How to reproduce:

User creates a file/folder with a name that contains unsupported characters for windows (ie: 'Test?' - notice the question mark) through the web interface
User syncs the library with the client – file is added to the library index
User deletes the file/folder with the name that contains unsupported characters from the web interface
User syncs the library with the client.
Expected result: The client deletes the file from the library index
Actual result: The client does not delete the file from the library index
User closes the Keeper/Seafile client.
User modifies the worktree
User starts the Keeper/Seafileclient
The Keeper/Seafile client starts a scan dir process for the library
Expected result: Only the changes to the worktree committed and uploaded
Actual result: The changes to the worktree + the missing unsupported named file/folder are committed and uploaded

Workaround:
After step 3, have all the clients with access to the library run the following task on the library:
Right Click -> Resync this library

Permanent fix:
Apply a patch that handles the index file properly on deletion of files/folders with unsupported names on Windows.
00-seafile-index-update-fix.patch.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants