Files: stale "Locked by online editing in Text" icon after closing Text editor (NC 34.0.5)
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- javascript, php
Direzione di ricerca
Start by tracing how the Files list receives and updates lock state when the Text editor closes; the report names the Text and Files apps but no source files or tests. Reproduce the stale icon using the listed steps, then identify which update is missing. Done when the icon clears after closing Text without navigating away or reloading.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
⚠️ This issue respects the following points: ⚠️
- This is not a troubleshooting question, general support matter, or webserver/proxy problem, but likely a bug. The behavior reproduces both through the nginx reverse proxy and when accessing Apache directly.
- This issue is not already reported on GitHub OR solved at the Community Help Forum.
- I'm using a maintained major version of Nextcloud Server and tested against the latest patch level. The installed version is 34.0.5; this was confirmed as the latest 34.x patch level in the project checks on 2026-11-08.
- I agree to follow Nextcloud's Code of Conduct.
- I've tried my best to provide clear reproduction steps that someone unfamiliar with this bug could use to reproduce it.
Bug description
After editing a Markdown (.md) file in Nextcloud Text and closing the editor with the X in the upper-right corner, the Nextcloud Files list continues to display the padlock icon with the tooltip "Locked by online editing in Text" (German UI: "Gesperrt durch Online-Bearbeitung in Text").
The icon remains visible for more than 15 seconds after closing the editor. Nevertheless, the file can be reopened and edited, and it can be renamed successfully. The new filename is reflected immediately in the Files list while the lock icon remains visible.
While the icon is still displayed, the Files Lock app's CLI command reports that the affected file is not locked. Navigating to another Nextcloud app and back to Files, or reloading the browser page with F5, removes the icon.
The behavior has been reproduced with a Markdown and txt file opened in Nextcloud Text. The observations indicate that the lock indicator shown in the Files list can become stale; the underlying cause has not been established.
The issue was first noticed after upgrading to Nextcloud 34.
Steps to reproduce
- Open a folder in the Nextcloud Files web interface.
- Create or open a Markdown (
.md) file in Nextcloud Text. - Edit the file and wait for the changes to be saved.
- Close the Text editor using the X in the editor's upper-right corner, not the browser tab.
- Observe the file's lock icon in the Files list and wait at least 15 seconds.
- Without reloading the page, reopen the file or rename it. The operation succeeds, but the lock icon remains visible. After renaming, the new filename is displayed immediately.
- Navigate to another Nextcloud app and back to Files, or reload the browser page with F5. The icon disappears.
Expected behavior
After the Text editing session ends and its editing lock is released, the Files list should automatically remove the editing-lock icon without requiring navigation to another app or a full page reload.
Nextcloud Server version
34.0.5 (34.0.5.1 as reported by occ status).
Operating system
Debian/Ubuntu — Debian 12 (server).
PHP engine version
PHP 8.2.35
Web server
apache2 2.4.68-1~deb12u1 amd64
Database engine version
mariadb-server 1:10.11.19-0+deb12u1 amd64
Is this bug present after an update or on a fresh install?
The issue was first noticed after upgrading to Nextcloud 34 (major-version upgrade).
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled (occ encryption:status reports enabled: false).
What user-backends are you using?
Default user-backend (mariadb)
Configuration report
List of activated Apps
- activity: 7.0.0
- admin_audit: 1.24.0
- app_api: 34.0.0
- appstore: 1.0.0
- bookmarks: 16.2.7
- bruteforcesettings: 7.0.0
- calendar: 6.6.5
- circles: 34.0.0
- cloud_federation_api: 1.18.0
- comments: 1.24.0
- contacts: 8.9.5
- contactsinteraction: 1.15.0
- dashboard: 7.14.0
- dav: 1.40.0
- deck: 1.18.6
- federatedfilesharing: 1.24.0
- federation: 1.24.0
- files: 2.6.0
- files_automatedtagging: 5.0.1
- files_downloadlimit: 5.2.0
- files_lock: 34.0.1
- files_pdfviewer: 7.0.0
- files_reminders: 1.7.0
- files_retention: 5.0.0
- files_sharing: 1.26.0
- files_trashbin: 1.24.0
- files_versions: 1.27.0
- firstrunwizard: 7.0.0-dev.0
- groupfolders: 22.0.6
- guests: 4.10.1
- logreader: 7.0.0
- lookup_server_connector: 1.22.0
- mail: 5.13.1
- nextcloud_announcements: 6.0.0
- notes: 6.1.0
- notifications: 7.0.0-dev.1
- notify_push: 1.4.2
- oauth2: 1.22.0
- office: 1.0.0
- password_policy: 6.0.0-dev.0
- photos: 7.0.0
- privacy: 6.0.0-dev.1
- profile: 1.3.0
- provisioning_api: 1.24.0
- recommendations: 7.0.0
- related_resources: 5.0.0-dev.0
- richdocuments: 11.1.2
- richdocumentscode: 26.4.502
- serverinfo: 6.0.0
- settings: 1.17.0
- sharebymail: 1.24.0
- spreed: 24.0.7
- support: 6.0.0
- systemtags: 1.24.0
- text: 8.0.0
- theming: 2.9.0
- twofactor_backupcodes: 1.23.0
- twofactor_totp: 16.0.0
- updatenotification: 1.24.0
- user_status: 1.14.0
- viewer: 7.0.0-dev.0
- weather_status: 1.14.0
- webhook_listeners: 1.6.0
- workflowengine: 2.16.0
Nextcloud Signing status
No errors have been found.
Nextcloud Logs
No log entry directly related to the stale lock indicator has been confirmed.
Additional info
Files Lock CLI status
While the browser still showed the lock icon for file ID 381941:
$ sudo -u www-data php occ files:lock --status 381941
File #381941 is not locked
This checks the Files Lock app's lock state. It does not establish the status of every low-level transactional/Redis lock.
Browser and networking observations
- Browser: Chromium on Ubuntu 24.04.
- No failed HTTP requests were observed in the browser's Network panel when closing Text; the save and close requests returned HTTP 200.
- The lock icon remains visible for more than 15 seconds after closing the editor.
- The file can be reopened/edited and renamed while the icon remains visible.
- Renaming updates the visible filename immediately; the lock icon remains.
- Switching to another Nextcloud app and back to Files clears the icon.
- Pressing F5 also clears the icon.
Scope and related observations
- So far, the stale icon has been reproduced with a Markdown and txt file opened in Nextcloud Text.
- The separate behavior where files synchronized from the desktop client do not appear in an already-open browser Files list until refresh is not the subject of this report; see nextcloud/server#2742.
Impact
The Files interface misleadingly indicates that a file is still locked even though the Files Lock app reports no lock and the file can be reopened, edited, and renamed normally. This can confuse users about the actual availability and state of the file.
- Lingua principale
- PHP
- Stelle
- 37.5k
- Fork
- 5.4k
- Merge medio
- 1g 13h
- PR unite (30g)
- 639
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di nextcloud/server
-
35-feedback
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
0. Needs triage 35-feedback bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
I maintainer di solito rispondono entro 1 giorno
-
workflowengine: File entity reuses the node of the first "Tag assigned" event for all later events in the same processForse già presa @lazerg l’ha presa 2 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
Contacts import aborts with TypeError when vCards have no UID (TextImporter structure)Forse già presa @SebastianKrupinski l’ha presa 6 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
nextcloud/server#66486 · 2 commenti · 2 reazioni · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Unified search: screen reader hears "No matching results" on mobile even when there are resultsForse già presa @lazerg l’ha presa 10 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di nextcloud/server
Issue simili
-
[Sync EN] stream: document the errors of the stream_context_*() and stream filter functions (#6091)Apertasync-en
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
Automattic/blocks-engine#6318 ·
I maintainer di solito rispondono entro 1 giorno
-
Update: Laravel Cheat Sheet - middleware examples for the bootstrap/app.php layout (small update)Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
OWASP/CheatSheetSeries#2990 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno