nextcloud / nextcloud/groupfolders

Page reload required to add group to newly created groupfolder

Open
#3,480 1 comment 2 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. Create a new groupfolder
  2. Add a group to it
  3. Reload page and see that the group is not shown
Expected behaviour

The group should be added to the folder

Actual behaviour

There is no group added to the folder. Based on the following requests it looks like an issue with the reporting of the new groupfolder ID back to the frontend.

Adding a group without reload:
"POST /apps/groupfolders/folders/[object%20Object]/groups HTTP/2.0" 200

Adding a group after reload:
"POST /apps/groupfolders/folders/9/groups HTTP/2.0" 200

However looking at the response of the groupfolder creation shows the server answered with the ID.

XHRPOST https://<REDACTED>/apps/groupfolders/folders [HTTP/2 200  85ms]

Request
{"mountpoint":"test"}

Reply
{"ocs":{"meta":{"status":"ok","statuscode":100,"message":"OK","totalitems":"","itemsperpage":""},"data":{"id":9}}}
Server configuration

Operating system: Linux 5.15.0-126-generic #136-Ubuntu SMP Wed Nov 6 10:38:22 UTC 2024 x86_64

Webserver: nginx/1.27.1 (fpm-fcgi)

Database: mysql 10.5.27

PHP version: 8.2.26

Nextcloud version: 29.0.9 - 29.0.9.2

Group folders version: 17.0.7

Updated from an older Nextcloud/ownCloud or fresh install: fresh install

Are you using external storage, if yes which one: no

Are you using encryption: no

Are you using an external user-backend, if yes which one: no

Client configuration

Browser: Mozilla/5.0 (X11; Linux x86_64; rv:133.0) Gecko/20100101 Firefox/133.0

Operating system: Manjaro

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

Trace the groupfolder creation response and the subsequent add-group request shown in the report, focusing on how the returned folder ID reaches the frontend. Done means adding a group immediately after creating a groupfolder uses its numeric ID and displays the group without a page reload.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
full-stack
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.