Opening file from non-refreshed folder view triggers false version conflict
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 72/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- javascript
- Área
- frontend
Línea de trabajo
Reproduce primero el flujo de trabajo con la carpeta obsoleta y, después, sigue el conflicto desde sync.ts y PollingBackend.ts a través de SyncService.ts hasta Editor.vue. Compara los metadatos del archivo usados al abrirlo con la versión del servidor devuelta durante la sincronización de la sesión. El trabajo estará terminado cuando el archivo sincronizado más recientemente se abra desde una carpeta no actualizada sin un conflicto falso.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
After editing a file locally and letting the sync complete, webversion still shows version conflict even though the versions are the same.
I edited the file and let the sync complete in the nextcloud files app:
Then I open the file in the web and it says there's a conflict between these two versions, but they both already have the latest edits:
To Reproduce
Steps to reproduce the behavior:
- Open a folder with an existing file in the web. Note file's last modified date
- Without reloading the webpage, edit the file locally via the desktop client and wait until sync is complete
- In the still open browser tab (folder view), open the file, without refreshing the tab. Note last modified date did not change
- Text app reports a version conflict, even though the edit done locally is already synced. Both versions shown are also the same
Expected behavior
The text app should fetch latest version from server without a conflict.
Screenshots
See bug description
Server details:
- Nextcloud version: 33.0.7 AIO docker
- PHP Version: 8.3.33
- Database: PostgreSQL 18.4 on x86_64-pc-linux-musl, compiled by gcc (Alpine 15.2.0) 15.2.0, 64-bit
Client details:
- OS: Windows
- Browser: Firefox/chrome/edge
- Browser version: 155.0.1 / 153.0.8010.37 / 152.0.4191.66
- Device: Desktop
- Nextcloud Files version: 3.17.0. / 34.0.3
Logs
Nextcloud log (data/nextcloud.log)
No visible log entries for this
Browser Console log
POST https://<DOMAIN>/apps/text/session/260486/sync 409 (Conflict)
(anonymous) @ sync.ts:76
_fetchSteps @ PollingBackend.ts:138
setInterval
connect @ PollingBackend.ts:109
startSync @ SyncService.ts:192
(anonymous) @ Editor.vue:535
Promise.then
onOpened @ Editor.vue:534
open @ SyncService.ts:181
await in open
constructor @ WebSocketPolyfill.ts:56
(anonymous) @ y-websocket.js:165
connect @ y-websocket.js:560
constructor @ y-websocket.js:444
(anonymous) @ SyncServiceProvider.js:41
initSession @ Editor.vue:448
created @ Editor.vue:425
mounted @ ViewerView.js:35
Promise.then
(anonymous) @ Viewer.vue:1294
Promise.then
beforeOpen @ Viewer.vue:610
openFileInfo @ Viewer.vue:706
openFile @ Viewer.vue:667
await in openFile
file @ Viewer.vue:452
Promise.then
open @ Viewer.js:320
execAction @ viewerAction.ts:80
execDefaultAction @ FileEntryMixin.ts:329
click @ FileEntry.vue:5
PollingBackend.ts:208 [ERROR] text: Conflict during file save, please resolve
{app: 'text', uid: '<UID>', level: 2}
_handleError @ PollingBackend.ts:208
Promise.then
_fetchSteps @ PollingBackend.ts:140
setInterval
connect @ PollingBackend.ts:109
startSync @ SyncService.ts:192
(anonymous) @ Editor.vue:535
Promise.then
onOpened @ Editor.vue:534
open @ SyncService.ts:181
await in open
constructor @ WebSocketPolyfill.ts:56
(anonymous) @ y-websocket.js:165
connect @ y-websocket.js:560
constructor @ y-websocket.js:444
(anonymous) @ SyncServiceProvider.js:41
initSession @ Editor.vue:448
created @ Editor.vue:425
mounted @ ViewerView.js:35
Promise.then
(anonymous) @ Viewer.vue:1294
Promise.then
beforeOpen @ Viewer.vue:610
openFileInfo @ Viewer.vue:706
openFile @ Viewer.vue:667
await in openFile
file @ Viewer.vue:452
Promise.then
open @ Viewer.js:320
execAction @ viewerAction.ts:80
execDefaultAction @ FileEntryMixin.ts:329
click @ FileEntry.vue:5
</details>
- Lenguaje dominante
- JavaScript
- Estrellas
- 665
- Forks
- 133
- Merge medio
- 1 d 17 h
- PR fusionados (30 d)
- 172
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/text
-
0. Needs triage bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
nextcloud/text#9482 · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
0. Needs triage bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
folder description not shows when using folder tree to navigateQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abiertobug feature: folder description
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
1. to develop design call discuss discussion ux
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 3/5 1-2 días Aptitud para principiantes 58/100
nextcloud/text#9334 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de nextcloud/text
Issues similares
-
follow-redirects updateAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
mailgun/mailgun.js#544 ·
-
beginner bug frontend
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
BistaDinesh03/critique#266 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
solana-foundation/solana-web3.js#4015 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
area: dependencies auto-generated cwe: 405 dependencies ecosystem: npm help wanted package: minimatch scope: runtime security security-alert severity: medium source: dependabot supply-chain vulnerability
Dificultad 2/5 Medio día Aptitud para principiantes 65/100
tdk-landscape/tdk-cli-core#2811 ·
-
a11y bug confirmed issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
open-webui/open-webui#33442 · 2 comentarios ·
Los mantenedores suelen responder en 1 día