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

Offen
#17,856 8 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
48/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
android, kotlin
Bereich
backend, mobile

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
Kotlin
Sterne
5.7k
Forks
2.1k
Ø Merge
1 T. 22 Std.
Gemergte PRs (30 T.)
135

Entwicklungsumgebung

In Codespaces öffnen

Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus nextcloud/android

Alle Issues in nextcloud/android

Ähnliche Issues

Weitere Issues zu Kotlin

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.