App crash while opening E2EE subfolder
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 72/100
Piste de recherche
Start with com.nextcloud.utils.e2ee.E2EEKeyInspector.kt, especially decryptsMetadataV2 at line 117 and canDecryptFolderMetadata. Reproduce the crash by opening a subfolder inside an E2EE folder on the reported Android setup, then trace the null metadata path. Done means the subfolder opens after entering the mnemonic instead of crashing.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
⚠️ Before posting ⚠️
- This is a bug, not a question or an enhancement.
- I've searched for similar issues and didn't find a duplicate.
- I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
- I agree to follow Nextcloud's Code of Conduct.
Steps to reproduce
- Created Storage Share Hetzner instance
- Enable E2E app in browser
- Login and create an E2E folder in Linux desktop client: /Private
- Add files and folders inside ~/Nextcloud/Private/...
- Install and open Nextcloud Android app
- I can see Private folder with a key symbol, it says 0 B for some reason
- I open Private folder (I enter mnemonic when prompted)
- I see all folders and files inside Private (all folders say 0 B, except the files)
- I can open and see the content of files (Private -> image.png)
- When I press on any folder, the app crashes:
Cause of error
Exception in thread "main" java.lang.NullPointerException: Attempt to invoke interface method 'java.util.Iterator java.lang.Iterable.iterator()' on a null object reference
at com.nextcloud.utils.e2ee.E2EEKeyInspector.decryptsMetadataV2(E2EEKeyInspector.kt:117)
at com.nextcloud.utils.e2ee.E2EEKeyInspector.access$decryptsMetadataV2(E2EEKeyInspector.kt:33)
at com.nextcloud.utils.e2ee.E2EEKeyInspector$canDecryptFolderMetadata$2.invokeSuspend(E2EEKeyInspector.kt:105)
at com.nextcloud.utils.e2ee.E2EEKeyInspector$canDecryptFolderMetadata$2.invoke(E2EEKeyInspector.kt:8)
at com.nextcloud.utils.e2ee.E2EEKeyInspector$canDecryptFolderMetadata$2.invoke(E2EEKeyInspector.kt:4)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatched(Undispatched.kt:66)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:43)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:497)
at kotlinx.coroutines.BuildersKt.withContext(dex-id-9e0b1687ed506aa331b8e1c93a1337b6b72f4b70:1)
at com.nextcloud.utils.e2ee.E2EEKeyInspector.canDecryptFolderMetadata(E2EEKeyInspector.kt:86)
at com.nextcloud.utils.e2ee.E2EEActionResolver$checkFolderMetadataKey$2.invokeSuspend(E2EEActionResolver.kt:44)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:34)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:124)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:89)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:586)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:798)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:717)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:704)
App information
- ID:
com.nextcloud.client - Version:
350000090 - Build flavor:
gplay
Device information
- Brand:
Fairphone - Device:
FP6 - Model:
Fairphone 6 - Id:
FP6.QREL.16.100.0 - Product:
FP6
Firmware
- SDK:
36 - Release:
16 - Incremental:
WS1M
Expected behaviour
To open the subfolder (of E2E enabled folder) as it does in browser (when I enter mnemonic)
Actual behaviour
It crashes instantly on trying to open a subfolder of E2E folder
Android version
16
Device brand and model
Fairphone 6
Stock or custom OS?
Stock
Nextcloud android app version
350000090
Nextcloud server version
Nextcloud Hub 26 Winter
Using a reverse proxy?
No
Android logs
No response
Server error logs
Not sure if I have access on Hetzner Storage Share
Additional information
No response
- Langage dominant
- Kotlin
- Étoiles
- 5.7k
- Forks
- 2.1k
- Merge moyen
- 1 j 22 h
- PR mergées (30 j)
- 135
Préparer son environnement
Lance le conteneur de développement du projet dans votre navigateur, avec votre propre compte GitHub.
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de nextcloud/android
-
0. Needs triage bug
Difficulté 2/5 1-3 heures Accessibilité débutants 64/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 86/100
nextcloud/android#17845 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
[Bug] Lock owned by another client (e.g. Text app) cannot be unlocked from the appPeut-être pris @falkloewert l’a pris il y a 28 jours. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
nextcloud/android#17837 · 2 réactions ·
Les mainteneurs répondent en général sous 1 jour
-
0. Needs triage
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
nextcloud/android#17533 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
RC 34.1.0-01: Duplicated wording in creation menu — "New" prefix + creator name produces "New New document" ("Neu Neues Dokument")Peut-être pris @ChristianTannheimer l’a pris il y a 118 jours. Ouverte0. Needs triage bug
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de nextcloud/android
Issues similaires
-
Failures in nested test classes (Outer$Inner) are not annotated on their source filePeut-être pris @NopeCharon l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
mikepenz/action-junit-report#1661 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
Kotlin/kotlin-lsp#309 ·
-
Two stored artist rows are not act names: "DJS" from a Renate floor heading and "Stevie Cox -"Ouvertearea:data-quality importer size:S
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
enorm-labs/event-junkie#5136 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
Les mainteneurs répondent en général sous 1 jour
-
Type: Possible bug
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
spacecowboy/Feeder#1318 ·
Les mainteneurs répondent en général sous 1 jour