Deleting a file from the editor's own "⋯" menu fails with 423 Locked: Text's own lock blocks it
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
- 56/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- javascript
- Área
- frontend
Línea de trabajo
Trace the editor's ⋯ → Delete action and the Text session/lock lifecycle first; reproduce with the Temporary files lock (files_lock) app enabled and inspect the DELETE request. Done when deleting from the open editor succeeds without a 423 response and the session lock is released or its token is used.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
With a Markdown file open in Text (in the Viewer), choosing Delete from the editor's "⋯" action menu fails with AxiosError: Request failed with status code 423. The file is not deleted. Closing and reopening the file and trying again gives the same error. The Delete option in the editor is therefore unusable.
The lock that blocks it is Text's own editing lock (Temporary files lock app, owner Text). Text holds that lock while its session is open, and the Viewer's Delete sends a plain WebDAV DELETE without the lock token and without ending Text's session first, so the server refuses it. Closing the editor first and deleting from the Files list works.
Steps to reproduce
Make sure the Temporary files lock (files_lock) app is enabled.
In Files, create a new Markdown file, type a few lines and let it save.
In the open editor, choose ⋯ → Delete.
Error toast: AxiosError: Request failed with status code 423; the file stays.
Close the editor, reopen the file, repeat step 3: same error.
Close the editor and delete the file from the Files list: it works.
Expected behavior
Delete from inside the editor deletes the file: Text releases its lock (ends the session) before the delete is sent, or the delete is sent with the session's lock token.
Server log (one attempt; there were three, all identical)
webdav DELETE /remote.php/dav/files//.md Sabre\DAV\Exception\Locked
DELETE /remote.php/dav/files//.md Sabre\DAV\Exception\Locked (Uncaught exception)
Immediately before, the session was saving normally (POST /apps/text/session//save). After the editor was closed the lock was gone (occ files:lock --status : not locked).
Versions
Nextcloud Server 34.0.4 (Docker nextcloud:34-apache)
Text 8.0.0
Viewer 7.0.0-dev.0 (bundled)
Temporary files lock (files_lock) 34.0.1
Browser: Chrome Version 154.0.8037.93 (Official Build) (64-bit)
- 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
-
[Feature Request] [Web] Expose kvCacheQuantizationBits in the onnxruntime-web WebGPU EP optionsAbiertoep:WebGPU platform:web quantization
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
microsoft/onnxruntime#33752 ·
Los mantenedores suelen responder en 2 días
-
More Transport Mode IconsAbiertoicon request
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
tabler/tabler-icons#1693 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 72/100
alvarotrigo/fullPage.js#4755 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
jlab-sensing/ENTS-backend#854 ·
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
andromarces/agent-loops#1242 ·
Los mantenedores suelen responder en 1 día