nextcloud / nextcloud/groupfolders
FileIDs should not change when datadirectory is moved
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 343
- Forks
- 106
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 34
Description
How to use GitHub
- Please use the 👍 reaction to show that you are affected by the same issue.
- Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
- Subscribe to receive notifications on status change and new comments.
Steps to reproduce
- Have files stored on a groupfolder shared with other users
- Move the
datadirectoryto another location and adjustconfig.phpaccordingly
Expected behaviour
Everything should work as before
Actual behaviour
Since the datadirectory changed, the every file inside a groupfolder receives a new fileId. Therefore all metadata (e.g. shares) are lost.
This might not be a groupfolder issue per se, but rather related to https://github.com/nextcloud/server/issues/42581.
CC: @sorbaugh
Server configuration
Nextcloud version: 26.0.9
Group folders version: 14.0.5
Updated from an older Nextcloud/ownCloud or fresh install: Updated from 24
Are you using external storage, if yes which one: local
Are you using encryption: No
Are you using an external user-backend, if yes which one: No
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 issue with files in a shared group folder, then move the datadirectory and update config.php as described. Trace how FileIDs are generated across the move; done means existing files retain their IDs and metadata such as shares remains available.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100