Skip to content

README.md is almost always locked #101

Closed
nextcloud/text
#8284

Description

@schiessle

⚠️ This issue respects the following points: ⚠️

  • This is a bug, not a question or a configuration/webserver/proxy issue.
  • This issue is not already reported on Github (I've searched it).
  • Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
  • Nextcloud Server is running on 64bit capable CPU, PHP and OS.
  • I agree to follow Nextcloud's Code of Conduct.

Bug description

The README.md is almost always locked on my desktop.

image

I assume that this is the case because it always gets automatically opened and locked when someone navigates to the folder to show the content of the README at the top of the file listing. As this is most of the time read-only, this should not trigger the locking of the file unless someone really starts editing it. Otherwise it is impossible to edit the README files on the desktop.

I tried it once to unlock it manually on my file manager because I was quite sure that noone else edits it. But this result in a conflict file after my edit.

Steps to reproduce

  1. Create a folder with a README.md
  2. Sync it to the Desktop
  3. Try to edit it, it should be almost always locked

Expected behavior

Being able to edit README.md files on the desktop if nobody else edit it (just open the document to show it in the rich workspaces ares shouldn't count as "editing")

Installation method

No response

Operating system

No response

PHP engine version

No response

Web server

No response

Database engine version

No response

Is this bug present after an update or on a fresh install?

No response

Are you using the Nextcloud Server Encryption module?

No response

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

No response

List of activated Apps

c.nc.com

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

Activity

  1. added
    bug
    on Aug 18, 2022
  2. szaimen commented on Aug 18, 2022

    @szaimen
  3. juliusknorr commented on May 11, 2023

    @juliusknorr
    Member

    Just some unsorted thoughts - we could extend the lock interface so that:

    • App can register a class for their lock handling
    • This could implement a method to see if the lock should actually apply for a file operation
      • For text we can check if there are still active users
      • If the app handles conflicts or disappearing files (through delete) properly we can also allow those operations or
      • Other option would be that text explicitly allows overruling the lock for README files
  4. q-wertz commented on Sep 11, 2024

    @q-wertz

    It also look like just opening the folder in the webinterface (without clicking on the Readme preview for editing) locks the file. And it keeps locked in this state. Tried to navigate to another folder or close the tab completely but still getting
    Locked Exception thrown: Sabre\DAV\Exception\Locked Exception thrown: Sabre\DAV\Exception\Locked errors in the log.

    Also see: https://help.nextcloud.com/t/can-not-delete-readme-md/200374/2

  5. ornanovitch commented on Apr 23, 2025

    @ornanovitch

    For text we can check if there are still active users

    This would be a great improvement. As of today a lot of text files are locked on our instance, especially reamde, and nobody knows how to unlock these.

  6. changed the title [-]File locking to strict, README.md is almost always locked[/-] [+]README.md is almost always locked[/+] on May 12, 2025
  7. changed the title [-]README.md is almost always locked[/-] [+]`README.md` is almost always locked[/+] on May 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagebugintegration

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions