Files: stale "Locked by online editing in Text" icon after closing Text editor (NC 34.0.5)
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 48/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- Active
- Stack technique
- javascript, php
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
⚠️ 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.
- Langage dominant
- PHP
- Étoiles
- 37.5k
- Forks
- 5.4k
- Merge moyen
- 1 j 13 h
- PR mergées (30 j)
- 639
Préparer son environnement
Lance le conteneur de développement du projet dans votre navigateur, avec votre propre compte GitHub.
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de nextcloud/server
-
35-feedback
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
0. Needs triage 35-feedback bug
Difficulté 2/5 1-3 heures Accessibilité débutants 66/100
Les mainteneurs répondent en général sous 1 jour
-
workflowengine: File entity reuses the node of the first "Tag assigned" event for all later events in the same processPeut-être pris @lazerg l’a pris il y a 2 jours. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
Les mainteneurs répondent en général sous 1 jour
-
Contacts import aborts with TypeError when vCards have no UID (TextImporter structure)Peut-être pris @SebastianKrupinski l’a pris il y a 6 jours. Ouvertebug
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
nextcloud/server#66486 · 2 commentaires · 2 réactions · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
Unified search: screen reader hears "No matching results" on mobile even when there are resultsPeut-être pris @lazerg l’a pris il y a 10 jours. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de nextcloud/server
Issues similaires
-
[Sync EN] stream: document the errors of the stream_context_*() and stream filter functions (#6091)Ouvertesync-en
Difficulté 2/5 1-3 heures Accessibilité débutants 66/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 79/100
Automattic/blocks-engine#6318 ·
Les mainteneurs répondent en général sous 1 jour
-
Update: Laravel Cheat Sheet - middleware examples for the bootstrap/app.php layout (small update)Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
OWASP/CheatSheetSeries#2990 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 1/5 1-3 heures Accessibilité débutants 82/100
Les mainteneurs répondent en général sous 1 jour