Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File locking to strict, README.md is almost always locked #101

Open
5 of 9 tasks
schiessle opened this issue Aug 18, 2022 · 3 comments
Open
5 of 9 tasks

File locking to strict, README.md is almost always locked #101

schiessle opened this issue Aug 18, 2022 · 3 comments
Labels
0. Needs triage bug Something isn't working

Comments

@schiessle
Copy link
Member

schiessle commented Aug 18, 2022

⚠️ 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

@schiessle schiessle added bug Something isn't working 0. Needs triage labels Aug 18, 2022
@szaimen
Copy link

szaimen commented Aug 18, 2022

cc @juliushaertl

@juliusknorr juliusknorr transferred this issue from nextcloud/server Oct 18, 2022
@juliusknorr
Copy link
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

@q-wertz
Copy link

q-wertz commented Sep 11, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants