Skip to content

Page reload required to add group to newly created groupfolder #3480

Open
@wasink

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

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions