Uploads created through a third-party SAF write stay in "Waiting to upload" with no stated reason
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
- 46/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Área
- backend-api-design, mobile
Línea de trabajo
Start by tracing the upload status handling for DELAYED_FOR_WIFI in the Android app, beginning with the log entries from UploadsStorageManager and AutoUpload. Check how the upload list turns stored statuses into user visible text and how queued uploads resume when network constraints change. Done means the UI explains the Wi-Fi wait and the upload resumes, or offers a manual start, after the constraint is satisfied.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Steps to reproduce
- Another app creates a file through the storage access framework in a folder served by the Nextcloud app (
ACTION_CREATE_DOCUMENT+ write viaContentResolver.openOutputStream), e.g. a ~60 MB backup file. - Nextcloud creates the document on the server (0 bytes) and hands out a write handle; the writing app then writes the full content.
- Wait with the device on mobile data.
Actual behaviour
- The full content lands in the local cache file of the Nextcloud app (the file is complete and valid there).
- The upload is queued and the upload list shows
Warte auf Hochladen("Waiting to upload") for days, without any error or explanation. - The file on the server stays at 0 bytes.
- Force-stopping and restarting the app does not start the queue.
- Only logcat shows the reason:
Upload Finished | RemoteCode: DELAYED_FOR_WIFI, i.e. the upload waits for a Wi-Fi constraint. The UI never says so.
Expected behaviour
- The upload list should show that the upload waits for a network constraint, not a generic "waiting" state.
- The queue should resume by itself once the constraint is satisfied (or the user should be able to start it manually).
- A pending SAF write should not leave a 0-byte file on the server indefinitely without any visible warning in the file list.
Relevant logs
UploadsStorageManager: updateUpload returns with: 1 for file: .../noop-backup-20261116-223951.noopbak
UploadsStorageManager: Updating ... with status:UPLOAD_FAILED and result:DELAYED_FOR_WIFI
🔄📤AutoUpload: upload failed ... (DELAYED_FOR_WIFI)
SyncedFolderProvider: Updating /storage/emulated/0/Documents/NOOP-Backups with enabled=true
The same "waiting" state was visible in the upload list for eight files written this way between Nov 11 and Nov 16, while the server kept 0-byte placeholders for all of them.
Environment data
- Nextcloud Android app version: 35.0.2 (com.nextcloud.client), installed 2026-10-29
- Device: Pixel 9 Pro
- Android version: 17 (SDK 37)
- Server: Nextcloud 35.0.2.2 (AIO), self-hosted
- Network at the time: mobile data (LTE), device in the battery optimisation allow list
- Lenguaje dominante
- Kotlin
- Estrellas
- 5.7k
- Forks
- 2.1k
- Merge medio
- 2 d 7 h
- PR fusionados (30 d)
- 149
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de nextcloud/android
-
0. Needs triage enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
0. Needs triage enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
nextcloud/android#18094 · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 86/100
nextcloud/android#17845 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
[Bug] Lock owned by another client (e.g. Text app) cannot be unlocked from the appQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
nextcloud/android#17837 · 2 reacciones ·
Los mantenedores suelen responder en 1 día
-
0. Needs triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
nextcloud/android#17533 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de nextcloud/android
Issues similares
-
accessibility agent-ready area:android bug fleet
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
level-98/mailcrane#412 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 2 días
-
help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
DojoCodingLabs/hermit#23 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
signalapp/Signal-Android#15148 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día