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

Abierto
#17,856 8 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
android, kotlin
Área
backend, mobile

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Kotlin
Estrellas
5.7k
Forks
2.1k
Merge medio
1 d 22 h
PR fusionados (30 d)
135

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de nextcloud/android

Todos los issues de nextcloud/android

Issues similares

Más issues de Kotlin

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.