Never ending folder loop and file lock - federated sharing
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 8.8k
- Forks
- 2.1k
- Avg merge
- 20h 7m
- Merged PRs (30d)
- 41
Description
Owncloud versions used
User A: owncloud 10.11.0 prealpha (git)
User B: owncloud 10.11.0 prealpha (git) / 10.10 / 10.09
User A on ownCloud server1, User B on another ownCloud server2.
Steps to reproduce
- Create a folder ‘f1’ in User A side.
- Create a folder ‘f2’ in User B side.
- Share f1 with B and f2 with A.
- Move f2 inside f1 at A.
- Move f1 inside f2 at B.
- Open f1 and try navigating as deep as you can.
- This results to a never ending loop. (Issue 1)
- Try deleting any of these. Files are locked and cannot be deleted now.
- Unshare these folders f1 and f2 from User A and B side respectively.
- Both folders f1 and f2 are now empty.
- Try deleting them again, they won't be deleted.
Expected behaviour
- Owncloud detects the never ending loop and stops me from moving the folder.
- Owncloud lets me delete folder f1 and f2 after being unshared.
Actual behaviour
- The folders can be moved inside another shared folder easily.
- Even after unsharing and deleting everything inside the folder, the folder can not be deleted.
Server configuration
Operating system: ubuntu 20.04
Web server: apache2
Database: MySQL
PHP version: 7.4.3
ownCloud version: 10.11.0 prealpha (git)
Updated from an older ownCloud or fresh install: fresh
Where did you install ownCloud from: github
PS: This is an existing issue in older version as well. The same issue occurs between two servers running on v10.10 as well.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the folder moves between two federated ownCloud servers using the listed steps, then trace the sharing and folder move/deletion paths involved. Done means the server prevents the circular move and permits f1 and f2 to be deleted after they are unshared; no source file or test is named in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend, distributed-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100