groupfolders icon indicating copy to clipboard operation
groupfolders copied to clipboard

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

Open emilianocapasso opened this issue 2 years ago โ€ข 2 comments

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 avatar Mar 19 '23 14:03 emilianocapasso

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

emilianocapasso avatar Mar 19 '23 14:03 emilianocapasso

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

elem74 avatar May 16 '23 10:05 elem74