nextcloud / nextcloud/groupfolders

FileIDs should not change when datadirectory is moved

Open
#2,719 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage bug
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
  1. Have files stored on a groupfolder shared with other users
  2. Move the datadirectory to another location and adjust config.php accordingly
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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.