nextcloud / groupfolders

๐Ÿ“๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆ Admin-configured folders shared by everyone in a group. https://github.com/nextcloud-releases/groupfolders
https://apps.nextcloud.com/apps/groupfolders
286 stars 87 forks source link

POST Create GroupFolder return List of GroupFolders instead creating a new one #2300

Open emilianocapasso opened 1 year ago

emilianocapasso commented 1 year ago

POST apps/groupfolders/folders: Create a new group folder mountpoint: The name for the new folder

I've tried all the possible configurations mountpoint=TEST mountpoint="TEST"

Steps to reproduce

  1. make a post request to apps/groupfolders/folders with mountpoint="TEST" (like https://help.nextcloud.com/t/create-groupfolders-with-api/80841)

Expected behaviour

A new folder should be created

Actual behaviour

The actual list of folder is returned

Server configuration

Operating system: Linux 4.9.0-4-amd64 x86_64

Web server:

Database: mysql 10.1.26

PHP version: 7.4.16

Nextcloud version: 20.0.8

Group folders version: 8.2.0

emilianocapasso commented 1 year ago

I've spent 2 days trying to understand the problem, as soon as I wrote down this Issue I figured it out:

even if GET requests get past to the URL + /apps/groupfolders/folders

this specific POST to create a folder NEEDS URL + index.php/apps/groupfolders/folders

hope this will help someone else

elem74 commented 1 year ago

I noticed several other calls also need the addition of 'index.php' to return data or to return any response at all.

Would be happy if anyone can provide insights on the issue :)