-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Crash when loading "Deleted files" #3212
Comments
Can you give some sample names where this occurs? Do yo really have two files with the exact same file name? Otherwise your workaround would not apply? |
We also have a fix which has been contributed a couple of days ago regarding sorting which might already fix this. |
I tested this with latest master:
|
OK the dev-version works for me, so the issue can be closed. To reproduce the error is quite difficult. It just happened in my private account with thousands of files in the trash-bin. The filename where it eventually crashed was I was able to track down that it was because Technically, most sorting-algorithms should still terminate correctly; it should just result in unnecessary swaps. |
Nextcloud app version:
3.3.1
Nextcloud server version:
14.0.3
The app crashes when there are many files with equal names in the trashbin.
Stack trace:
I think it's because
AlphanumComparator().compare(o1, o2);
always returns -1 for identical filenames (at least for files with a '.' in their name) in com.owncloud.android.utils.FileSortOrderByName:84.Workaround:
if (o1.getFileName().equals(o2.getFileName())) return 0;
before FileSortOrderByName.java:84The text was updated successfully, but these errors were encountered: