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

Aperta
#17,856 8 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
android, kotlin
Ambito
backend, mobile

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Kotlin
Stelle
5.7k
Fork
2.1k
Merge medio
1g 22h
PR unite (30g)
135

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di nextcloud/android

Tutte le issue di nextcloud/android

Issue simili

Altre issue su Kotlin

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.