nextcloud / nextcloud/server

Locked files: not enough infos for end user, too much for admin

Open
#49,875 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage 30-feedback enhancement feature: locking
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

⚠️ This issue respects the following points: ⚠️
Bug description

When someone tries to move/delete/edit a locked file, he/she gets an incomplete notification while admin get errors as if something were abnormal.

Steps to reproduce
  1. try to delete a locked file
  2. see the error popup "action failed: deleting file" (or something like that, my interface is in french)
  3. go to the logs and see the Locked Exception thrown: Sabre\DAV\Exception\Locked error
Expected behavior
  • End user should see a complete warning : "action failed: file is locked by [...]" (and it could be a simple warning like "this file is locked, you cannot {action} it", rather than an error)
  • Logs should not be spammed with this message which is not an error in the admin pov but a simple information about a user trying to edit a locked file, which is ok
Nextcloud Server version

30

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.3

Web server

Nginx

Database engine version

MariaDB

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

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?
  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing locked-file delete, move, and edit handling around the Sabre\DAV\Exception\Locked entry point, then follow how the result reaches the user notification and administrator logs. Done means users receive a clear locked-file warning and this expected condition is no longer logged as an abnormal error.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.