Note body overwritten with the app's own error text when loading content fails
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
- 52/100
Línea de trabajo
Start with NotesServerSyncTask.pushLocalChanges around line 150, then follow the sync flow from NotesServerSyncTask.run. Check how failed content loads are represented before local changes are pushed. Done means an error or status message is shown without replacing the note body, and sync can retry later.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Environment
- Nextcloud Notes for Android 35.0.0 (version code 350000090,
play), signed in through the Nextcloud Files app (SSO) - Android 16 / API 37, Pixel 9 Pro (caiman)
- Nextcloud server 34.0.5.1, server app
notes6.1.0
What happened
- A note existed on the server, 7041 bytes, real content.
- For a few seconds the server could not read the file (infrastructure problem on our side,
file_get_contents(): Failed to open stream: Permission denied→OCP\Files\GenericFileException). While that was going on, the note was opened in the app and the editor showedFehler: OCP\Files\GenericFileExceptioninstead of the content. - Afterwards the note on the server was 40 bytes and contained:
Fehler: OCP\\Files\\GenericFileException
A version file created at the same second (…v1793375498) holds the same text with single backslashes, 38 bytes.
Why this looks client-side
The server log has no request and no error at the time of the write, so the write itself succeeded. The error string was uploaded as the note body by the client, and the backslashes were escaped on the second write.
Expected
The app should never write its own error or status text into the note body. Show the error, leave the note untouched, retry the sync later.
Impact
Silent data loss: the original 7041-byte note was replaced by an error message and would have been pushed to the server on the next sync.
Stack trace of the failing sync
java.lang.Exception: {"errorType":"Exception"}
[com.nextcloud.android.sso.InputStreamBinder.processRequestV2(InputStreamBinder.java:440), ...]
at it.niedermann.owncloud.notes.persistence.NotesServerSyncTask.pushLocalChanges(NotesServerSyncTask.java:150)
at it.niedermann.owncloud.notes.persistence.NotesServerSyncTask.run(NotesServerSyncTask.java:99)
Happy to provide server logs or a recording if that helps.
- Lenguaje dominante
- Java
- Estrellas
- 1.1k
- Forks
- 176
- Merge medio
- 23 h 22 min
- PR fusionados (30 d)
- 25
Preparar el entorno
- 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/notes-android
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
nextcloud/notes-android#3367 ·
Los mantenedores suelen responder en 1 día
-
0. Needs triage bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
nextcloud/notes-android#3353 · 2 comentarios · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
Sync failurePosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto0. Needs triage bug
Dificultad 4/5 3-5 días Aptitud para principiantes 18/100
nextcloud/notes-android#3420 · 1 comentario · 2 reacciones ·
Los mantenedores suelen responder en 1 día
-
Android 17 Behavior changesAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 38/100
nextcloud/notes-android#3418 ·
Los mantenedores suelen responder en 1 día
-
Onboarding screen for Notes appAbiertodesign enhancement
Dificultad 3/5 1-2 días Aptitud para principiantes 58/100
nextcloud/notes-android#3412 ·
Los mantenedores suelen responder en 1 día
Todos los issues de nextcloud/notes-android
Issues similares
-
API `/api/dataverses/{identifier}/dataset/linkingDataverses?alreadyLinking=true` returns at most 1 collectionPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. AbiertoType: Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
javaoperatorsdk.client.oauth-token has no effect on the Kubernetes clientPosiblemente ocupada @RaphaelFakhri la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
-
MCP add-on: JSON responses with non-ASCII characters are truncated (wrong Content-Length)Posiblemente ocupada @dhanushbs10 la tomó hoy. Abiertoadd-on bug in:mcp
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Map.Coordinate does not implement proper equalsPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertovaadin-map
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
vaadin/flow-components#10586 ·
Los mantenedores suelen responder en 1 día
-
WeReadInstaller writes the launcher database on the main thread at handover (Activity pause timeout)Abiertobug good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100