nextcloud / android

📱 Nextcloud Android app
https://play.google.com/store/apps/details?id=com.nextcloud.client
GNU General Public License v2.0
4.28k stars 1.77k forks source link

Identity verification on Infinite loop #13572

Open Rex-0x7CB opened 1 month ago

Rex-0x7CB commented 1 month ago

⚠️ Before posting ⚠️

Steps to reproduce

  1. Enable device biometric unlock (Settings > Details > App Passcode > Device Credentials )
  2. Enable local encryption by entering the Client side encryption mnemonic
  3. Select an encrypted folder on the server (not local files)
  4. Click "Details"
  5. The device will ask your to verify your identity using fingerprint
  6. Unlock using fingerprint
  7. The app goes into an Infinite loop of identity verification

Expected behaviour

User should see the details of the encrypted folder

Actual behaviour

Device keeps asking me for identity verification

Android version

14

Device brand and model

Samsung SM-M336BU

Stock or custom OS?

Stock

Nextcloud android app version

3.30.0

Nextcloud server version

29.0.6-Apache docker image

Using a reverse proxy?

Yes

Android logs

No response

Server error logs

No response

Additional information

No response

ivanhercaz commented 1 month ago

Same behavior when trying to create a new folder. More details below:

Steps to reproduce

  1. Has biometric enabled on the device and "Device credentials" enabled on the application.
  2. Click "+" button in the bottom-right corner.
  3. "New folder".
  4. Name the folder and click "Create"
  5. The application must suddenly request for biometric credentials.
  6. Once credentials has been successfully introduced, it keeps asking on infinite loop.

Android version

14

Device brand and model

Realme C55

Stock or custom OS?

Stock

Nextcloud android app version

Nextcloud Dev (f-droid) 20240913

Nextcloud server version

29.0.5

Using a reverse proxy?

I don't know

Additional information

Cancel the request or press "back" button doesn't works. Nothing appears in the background (black, dark theme in my case).

Only workaround: closes the application and reopen. Once it is reopened, I confirmed the folder was created.

Android logs

2024-09-19T11:56:48.864+0100;D;FileDataStorageManager;getFolderContent - start
2024-09-19T11:56:48.878+0100;D;FileDataStorageManager;getFolderContent - finished
2024-09-19T11:56:52.422+0100;D;FileActivity;show loading dialog
2024-09-19T11:56:52.464+0100;D;OperationsService;Starting command with id 1
2024-09-19T11:56:52.470+0100;D;OwnCloudClient #0;REQUEST MKCOL /remote.php/dav/files/ivanhercaz/Testbug/2
...
2024-09-19T11:56:52.562+0100;V;FileDisplayActivity;onPause() start
2024-09-19T11:56:52.563+0100;D;FileDisplayActivity;onPause() ending
2024-09-19T11:56:52.564+0100;V;FileDisplayActivity;onPause() end
2024-09-19T11:56:53.217+0100;I;MainApp;Started 0 migrations
2024-09-19T11:56:53.219+0100;D;Debug;start logging
2024-09-19T11:56:53.221+0100;D;ThumbnailsCacheManager;thumbnail cache dir: /data/user/0/com.nextcloud.android.beta/cache/thumbnailCache
2024-09-19T11:56:53.233+0100;D;UploadsStorageManager;QUERY: (status== ? OR last_result==9 OR last_result==13 OR last_result==11 OR last_result==14 ) AND last_result!= 16 ROWID: -1
2024-09-19T11:56:53.240+0100;V;UploadsStorageManager;getUploads() got 0 rows from page 0, 0 rows total so far, last ID -1
2024-09-19T11:56:53.240+0100;V;UploadsStorageManager;getUploads() returning 0 (0) rows after reading 1 pages
2024-09-19T11:56:53.240+0100;D;FileUploadWorker;Failed uploads are empty or null
2024-09-19T11:56:53.287+0100;D;ShowErrorActivity;onCreate(Bundle) starting
2024-09-19T11:56:53.285+0100;I;MainApp;Started 0 migrations
2024-09-19T11:56:53.294+0100;D;Debug;start logging
2024-09-19T11:56:53.296+0100;D;ThumbnailsCacheManager;thumbnail cache dir: /data/user/0/com.nextcloud.android.beta/cache/thumbnailCache
2024-09-19T11:56:53.316+0100;D;UploadsStorageManager;QUERY: (status== ? OR last_result==9 OR last_result==13 OR last_result==11 OR last_result==14 ) AND last_result!= 16 ROWID: -1
2024-09-19T11:56:53.347+0100;V;UploadsStorageManager;getUploads() got 0 rows from page 0, 0 rows total so far, last ID -1
2024-09-19T11:56:53.347+0100;V;UploadsStorageManager;getUploads() returning 0 (0) rows after reading 1 pages
2024-09-19T11:56:53.347+0100;D;FileUploadWorker;Failed uploads are empty or null
2024-09-19T11:56:53.387+0100;D;UploadsStorageManager;QUERY: (status== ? OR last_result==9 OR last_result==13 OR last_result==11 OR last_result==14 ) AND last_result!= 16 ROWID: -1
2024-09-19T11:56:53.388+0100;D;FileUploadWorker;Skip retryFailedUploads since it is already running
2024-09-19T11:56:53.392+0100;V;UploadsStorageManager;getUploads() got 0 rows from page 0, 0 rows total so far, last ID -1
2024-09-19T11:56:53.392+0100;V;UploadsStorageManager;getUploads() returning 0 (0) rows after reading 1 pages
2024-09-19T11:56:53.392+0100;D;FileUploadWorker;Failed uploads are empty or null
2024-09-19T11:56:53.394+0100;D;NetworkUtils;Searching known-servers store at /data/user/0/com.nextcloud.android.beta/files/knownServers.bks
2024-09-19T11:56:53.396+0100;D;com.owncloud.android.lib.common.network.AdvancedX509KeyManager;init(): Loading SharedPreferences named com.nextcloud.android.beta.AdvancedX509KeyManager
2024-09-19T11:56:53.397+0100;D;com.owncloud.android.lib.common.network.AdvancedX509KeyManager;init(): keychain aliases = []
2024-09-19T11:56:53.426+0100;D;ShowErrorActivity;onStart() starting
2024-09-19T11:56:53.431+0100;D;ShowErrorActivity;onResume() starting
2024-09-19T11:56:53.466+0100;D;UploadsStorageManager;QUERY: (status== ? OR last_result==9 OR last_result==13 OR last_result==11 OR last_result==14 ) AND last_result!= 16 ROWID: -1
2024-09-19T11:56:53.468+0100;D;FileUploadWorker;Skip retryFailedUploads since it is already running
2024-09-19T11:56:53.478+0100;V;UploadsStorageManager;getUploads() got 0 rows from page 0, 0 rows total so far, last ID -1
2024-09-19T11:56:53.478+0100;D;ShowErrorActivity;onPause() ending
2024-09-19T11:56:53.478+0100;V;UploadsStorageManager;getUploads() returning 0 (0) rows after reading 1 pages
2024-09-19T11:56:53.478+0100;D;FileUploadWorker;Failed uploads are empty or null
2024-09-19T11:56:53.480+0100;D;NetworkUtils;Searching known-servers store at /data/user/0/com.nextcloud.android.beta/files/knownServers.bks
2024-09-19T11:56:53.481+0100;D;com.owncloud.android.lib.common.network.AdvancedX509KeyManager;init(): Loading SharedPreferences named com.nextcloud.android.beta.AdvancedX509KeyManager
2024-09-19T11:56:53.482+0100;D;com.owncloud.android.lib.common.network.AdvancedX509KeyManager;init(): keychain aliases = []
2024-09-19T11:56:53.528+0100;D;RequestCredentialsActivity;onCreate(Bundle) starting
2024-09-19T11:56:53.548+0100;D;RequestCredentialsActivity;onStart() starting
2024-09-19T11:56:53.550+0100;D;MainApp;APP IN FOREGROUND
2024-09-19T11:56:53.553+0100;D;RequestCredentialsActivity;onResume() starting
2024-09-19T11:56:53.584+0100;D;RequestCredentialsActivity;onPause() ending
2024-09-19T11:56:53.597+0100;D;ShowErrorActivity;onStop() ending
2024-09-19T11:56:53.599+0100;D;ShowErrorActivity;onSaveInstanceState(Bundle) starting
dreckamstecken commented 1 month ago

Hello everyone, I have the exact same problem with the Nextcloud App under Graphene OS on my Google Pixel 8a (Android 14 as well) but not only with biometric authentication, but with PIN authentication too. Nextcloud server version is 29.0.7. (Thank you so much for your hard work devs!!)