Re: [Geoserver-users] [Geoserver - REST API] ACL rules delete
Hello, Yes this is normal, if you have a look at : https://docs.geoserver.org/latest/en/api/#1.0.0/security.yaml You will see that for deleteing REST ACL rules, you need to DELETE at /rest/security/acl/rest/{rule} So for exemple, deleting a rule for /rest/workspaces/test/**;GET= ROLE_AUTHENTICATED *should* become a DELETE at https://geoserver.**/geoserver/rest/security/acl/rest/rest/workspaces/test/**:GET (at least from what I get in the documentation) Regards Le lun. 29 janv. 2024 à 14:27, Olivier Gagnon a écrit : > Hi, > > Is it normal that you have /rest/rest/ in your URLs ? > > Good luck > > Envoyé à partir d’Outlook <http://aka.ms/weboutlook> > > ---------- > *De :* Robin KERDILES via Geoserver-users < > geoserver-users@lists.sourceforge.net> > *Envoyé :* 29 janvier 2024 05:38 > *À :* geoserver-users@lists.sourceforge.net < > geoserver-users@lists.sourceforge.net> > *Objet :* [Geoserver-users] [Geoserver - REST API] ACL rules delete > > Hello, > > I'm having issues using the Rest API of Geoserver. > > I tried : > > POST https://geoserver.**/geoserver/rest/security/acl/rest > with JSON Body > { > "/rest/workspaces/test/**:GET": "ROLE_ADMINISTRATOR" > } > Works OK > > DELETE https://geoserver. > **/geoserver/rest/security/acl/rest/rest/workspaces/test/**:GET > Returned 404 : Rule not found: rest/workspaces/test/**:GET > > DELETE https://geoserver. > **/geoserver/rest/security/acl/rest/%2Frest/workspaces/test/**:GET > DELETE https://geoserver. > **/geoserver/rest/security/acl/rest/%2Frest%2Fworkspaces%2Ftest/**:GET > DELETE https://geoserver. > **/geoserver/rest/security/acl/rest/%2Frest%2Fworkspaces%2Ftest%2F%2A%2A%3AGET > All returned HTTP 400 Bad Request > > I would like to get any advice on this > > Thanks in advance > ___ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
Re: [Geoserver-users] [Geoserver - REST API] ACL rules delete
Hello, Shouldn't be this project specific for geoserver cloud ? Regards Le lun. 29 janv. 2024 à 12:39, Alexandre Gacon a écrit : > Hi Robin, > > Could you please open an issue on > https://github.com/geoserver/geoserver-acl/issues? > > Regards > Alexandre > > Le lun. 29 janv. 2024 à 12:37, Robin KERDILES via Geoserver-users < > geoserver-users@lists.sourceforge.net> a écrit : > >> Hello, >> >> I'm having issues using the Rest API of Geoserver. >> >> I tried : >> >> POST https://geoserver.**/geoserver/rest/security/acl/rest >> with JSON Body >> { >> "/rest/workspaces/test/**:GET": "ROLE_ADMINISTRATOR" >> } >> Works OK >> >> DELETE https://geoserver. >> **/geoserver/rest/security/acl/rest/rest/workspaces/test/**:GET >> Returned 404 : Rule not found: rest/workspaces/test/**:GET >> >> DELETE https://geoserver. >> **/geoserver/rest/security/acl/rest/%2Frest/workspaces/test/**:GET >> DELETE https://geoserver. >> **/geoserver/rest/security/acl/rest/%2Frest%2Fworkspaces%2Ftest/**:GET >> DELETE https://geoserver. >> **/geoserver/rest/security/acl/rest/%2Frest%2Fworkspaces%2Ftest%2F%2A%2A%3AGET >> All returned HTTP 400 Bad Request >> >> I would like to get any advice on this >> >> Thanks in advance >> ___ >> Geoserver-users mailing list >> >> Please make sure you read the following two resources before posting to >> this list: >> - Earning your support instead of buying it, but Ian Turton: >> http://www.ianturton.com/talks/foss4g.html#/ >> - The GeoServer user list posting guidelines: >> http://geoserver.org/comm/userlist-guidelines.html >> >> If you want to request a feature or an improvement, also see this: >> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer >> >> >> Geoserver-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/geoserver-users >> > > > -- > Alexandre Gacon > ___ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
[Geoserver-users] [Geoserver - REST API] ACL rules delete
Hello, I'm having issues using the Rest API of Geoserver. I tried : POST https://geoserver.**/geoserver/rest/security/acl/rest with JSON Body { "/rest/workspaces/test/**:GET": "ROLE_ADMINISTRATOR" } Works OK DELETE https://geoserver. **/geoserver/rest/security/acl/rest/rest/workspaces/test/**:GET Returned 404 : Rule not found: rest/workspaces/test/**:GET DELETE https://geoserver. **/geoserver/rest/security/acl/rest/%2Frest/workspaces/test/**:GET DELETE https://geoserver. **/geoserver/rest/security/acl/rest/%2Frest%2Fworkspaces%2Ftest/**:GET DELETE https://geoserver. **/geoserver/rest/security/acl/rest/%2Frest%2Fworkspaces%2Ftest%2F%2A%2A%3AGET All returned HTTP 400 Bad Request I would like to get any advice on this Thanks in advance ___ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users