Duplicate first-level folders in Nextcloud external storage when sharing files

Ouverte
#17,856 8 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
48/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
Active
Stack technique
android, kotlin
Domaine
backend, mobile

Piste de recherche

Start by comparing folder listing behavior when browsing the external storage 20tb through Android’s share flow with browsing it directly in the Nextcloud app. The report names no source files or tests, so first trace the share flow and external storage listing entry points, then check how folder entries and modification dates are loaded. Done means each first-level folder appears once and its contents load normally when sharing from either reported app.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

bug needs info
⚠️ 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
  1. Open MyPeugeot or Google Photos on an Android 16 device.
  2. Select a file and use Share → Nextcloud.
  3. Navigate to an external storage folder named 20tb.
  4. Observe that all first-level folders are listed twice, with different modification dates.
  5. Open either copy. The newer one initially appears empty, but its contents become visible after waiting.
  6. Both copies ultimately lead to the same files and subfolders.
Expected behaviour

Each folder should appear only once. The folder contents should load normally.

Actual behaviour

When sharing a file from MyPeugeot or Google Photos to Nextcloud, all first-level folders inside the external storage 20tb appear twice, with different modification dates.

The newer entries initially appear empty, but their contents become visible after waiting. Both entries lead to the same files and subfolders.

Subfolders at deeper levels are displayed only once. When browsing directly in the Nextcloud app, there are no duplicates.

The problem is reproducible from multiple apps.

Android version

16

Device brand and model

Motorola Edge 60

Stock or custom OS?

Stock

Nextcloud android app version

35.0.1

Nextcloud server version

34.0.3

Using a reverse proxy?

Yes

Android logs

No response

Server error logs

Additional information

The issue occurs only in the external storage 20tb, not in the regular Nextcloud folders.

It is reproducible when sharing files from both MyPeugeot and Google Photos.

The duplicate entries have different modification dates but eventually display identical contents. No actual duplicate folders have been observed on the server.

Android and server logs have not been collected yet. They can be provided if needed.

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

Ouvrir dans Codespaces

Lance le conteneur de développement du projet dans votre navigateur, avec votre propre compte GitHub.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de nextcloud/android

Toutes les issues de nextcloud/android

Issues similaires

Plus d'issues Kotlin

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.