Bug on the manageACL API from Groupfolders apps

Hi everyone :slight_smile:

I use Groupfolders’ API (GitHub - nextcloud/groupfolders: 📁👩‍👩‍👧‍👦 Admin-configured folders shared by everyone in a group. https://github.com/nextcloud-releases/groupfolders), precisely :

POST apps/groupfolders/folders/$folderId/manageACL :Grants/Removes a group or user the ability to manage a groupfolders’ advanced permissions.

I tried this curl :

curl -H "OCS-APIRequest: true" -X POST "https://username:pwd@instance_nextcloud/apps/groupfolders/folders/161/manageACL" -d "id=MyGoup&type=group&manageACL=true" -H "Accept:Application/json"  | jq .

The answer is succeded :

{
  "ocs": {
    "meta": {
      "status": "ok",
      "statuscode": 100,
      "message": "OK",
      "totalitems": "",
      "itemsperpage": ""
    },
    "data": {
      "success": true
    }
  }
}

But it doesn’t work :

> select * from oc_group_folders_manage where folder_id=161;
Empty set (9.125 sec)

Should I open an issue on GitHub ?

Time to PR on groupfolder:

Documentation is wrong:

  1. it’s not id, its mappingId
  2. it’s not type it’s mappingType
  3. it’s not manageACL, it’s manageAcl
2 Likes

done: Fixes parameters name of manageACL REST endpoint by StCyr · Pull Request #1524 · nextcloud/groupfolders · GitHub

2 Likes

Yes it works !!! :slight_smile:

Thanks @StCyr :muscle:

I hava same problem.
It’s so nice!