Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Deleting a file from the editor's own "⋯" menu fails with 423 Locked: Text's own lock blocks it

Abierto
#9,310 0 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
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

bug

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

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/text

Todos los issues de nextcloud/text

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.