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

the last nexcloud cliend from f-droid crashes #39

Closed
532910 opened this issue Jun 9, 2023 · 6 comments
Closed

the last nexcloud cliend from f-droid crashes #39

532910 opened this issue Jun 9, 2023 · 6 comments

Comments

@532910
Copy link

532910 commented Jun 9, 2023

  1. start karadav in docker: https://f-droid.org/en/packages/com.nextcloud.client/
  2. Install https://f-droid.org/en/packages/com.nextcloud.client/

Cause of error

Exception in thread "Thread-7" java.lang.NumberFormatException: For input string: "eJwrTi1K"
    at java.lang.Long.parseLong(Long.java:736)
    at java.lang.Long.parseLong(Long.java:861)
    at com.owncloud.android.datamodel.OCFile.getLocalId(OCFile.java:606)
    at com.owncloud.android.datamodel.FileDataStorageManager.createContentValuesBase(FileDataStorageManager.java:461)
    at com.owncloud.android.datamodel.FileDataStorageManager.createContentValuesForFolder(FileDataStorageManager.java:478)
    at com.owncloud.android.datamodel.FileDataStorageManager.saveFolder(FileDataStorageManager.java:392)
    at com.owncloud.android.operations.RefreshFolderOperation.synchronizeData(RefreshFolderOperation.java:538)
    at com.owncloud.android.operations.RefreshFolderOperation.fetchAndSyncRemoteFolder(RefreshFolderOperation.java:409)
    at com.owncloud.android.operations.RefreshFolderOperation.run(RefreshFolderOperation.java:239)
    at com.owncloud.android.lib.common.operations.RemoteOperation.run(RemoteOperation.java:399)
    at java.lang.Thread.run(Thread.java:1012)

App information

  • ID: com.nextcloud.client
  • Version: 30240190
  • Build flavor: generic

Device information

  • Brand: OnePlus
  • Device: OnePlus9Pro
  • Model: LE2120
  • Id: TQ2A.230505.002
  • Product: OnePlus9Pro

Firmware

  • SDK: 33
  • Release: 13
  • Incremental: 121
@532910
Copy link
Author

532910 commented Jun 9, 2023

nextcloud-dev crashes the same way

@bohwaz
Copy link
Contributor

bohwaz commented Jun 11, 2023

Damn this software is extremly brittle, anything unexpected and it crashes. This sucks.

They just decided that file IDs should be an integer. Unfortunately this change means that KaraDAV can no longer be compatible with NextCloud as we don't store File IDs (no file metadata is stored in database), so it's a hash of the file path.

I'm trying to find a way to get around this limitation.

@bohwaz bohwaz changed the title the last nexcloid cliend from f-droid crashes the last nexcloud cliend from f-droid crashes Jun 11, 2023
@bohwaz
Copy link
Contributor

bohwaz commented Jun 11, 2023

Source change: nextcloud/android@b78e991

@bohwaz
Copy link
Contributor

bohwaz commented Jun 11, 2023

PR: nextcloud/android#8643

@bohwaz
Copy link
Contributor

bohwaz commented Jun 11, 2023

Related NextCloud Android issue: nextcloud/android#11718

@bohwaz
Copy link
Contributor

bohwaz commented Jun 11, 2023

I changed the fileID to be a random integer, it does work for me. Please update to last release, and report back if it doesn't work for you.

@bohwaz bohwaz closed this as completed Jun 11, 2023
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

No branches or pull requests

2 participants