nextcloud / nextcloud/files_lock

File-Lock can be circumvented by using rename function

Open
#40 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
JavaScript
Stars
39
Forks
10
Avg merge
1d 11h
Merged PRs (30d)
48

Description

Tested with Nextcloud v19.04, 19.20 and now 20.0.10 (on Debian 10)

When a file was locked (by clicking on the lock-icon) by someone else, the file cannot be accessed/edited.

This can be circumvented by right-click, select "rename", then the file can be opened/edited once, when closed the file is locked again.

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

The issue names no files, tests, or entry points. First reproduce the lock, rename, and open/edit sequence described on Debian 10 or a comparable setup, then trace the rename and lock-handling paths. Done means a locked file remains inaccessible after renaming until it is unlocked.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
authorization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.