[Geoserver-users] How to get access to REST for created user?

Hi.

I have Geoserver 2.3.5.

I was created topp_group add topp_user and created topp_role. So my topp_group and topp_user have a topp_role.

After i create rule: topp.*.a=topp_role.

Now i login how topp_user and see only topp workspace.

Now i want to get layers from topp workspace using rest. In file rest.properties i have:

/rest/workspaces/topp*;GET=topp_role
/rest/workspaces/topp*;POST,DELETE,PUT=topp_role

But when i go to http://localhost:8080/geoserver/rest/workspaces/topp/ i get:

404
RequestURI=/geoserver/accessDenied.jsp

What i do wrong?

As far as I remember with the latest versions of GeoServer only admin users can access the layers, featureTypes and stores via REST

···

==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for
more information.

Ing. Alessio Fabiani
@alfa7691
Founder/Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 331 6233686

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


On Fri, Oct 18, 2013 at 7:57 AM, Макс Кливер <dh0m0ch@anonymised.com> wrote:

Hi.

I have Geoserver 2.3.5.

I was created topp_group add topp_user and created topp_role. So my topp_group and topp_user have a topp_role.

After i create rule: topp.*.a=topp_role.

Now i login how topp_user and see only topp workspace.

Now i want to get layers from topp workspace using rest. In file rest.properties i have:

/rest/workspaces/topp*;GET=topp_role
/rest/workspaces/topp*;POST,DELETE,PUT=topp_role

But when i go to http://localhost:8080/geoserver/rest/workspaces/topp/ i get:

404
RequestURI=/geoserver/accessDenied.jsp

What i do wrong?


October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

I found my mistake - its in rest.properties. My full file is:

/;GET=jdbc_admin_role
/
;POST,DELETE,PUT=jdbc_admin_role

;GET=topp_role
;POST,DELETE,PUT=topp_role

Here syntax error - gonna be:

/;GET=jdbc_admin_role,topp_role
/
;POST,DELETE,PUT=jdbc_admin_role,topp_role

···

On Fri, Oct 18, 2013 at 2:56 PM, Alessio Fabiani <alessio.fabiani@anonymised.com> wrote:

As far as I remember with the latest versions of GeoServer only admin users can access the layers, featureTypes and stores via REST

==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for
more information.

Ing. Alessio Fabiani
@alfa7691
Founder/Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 331 6233686

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


On Fri, Oct 18, 2013 at 7:57 AM, Макс Кливер <dh0m0ch@anonymised.com> wrote:

Hi.

I have Geoserver 2.3.5.

I was created topp_group add topp_user and created topp_role. So my topp_group and topp_user have a topp_role.

After i create rule: topp.*.a=topp_role.

Now i login how topp_user and see only topp workspace.

Now i want to get layers from topp workspace using rest. In file rest.properties i have:

/rest/workspaces/topp*;GET=topp_role
/rest/workspaces/topp*;POST,DELETE,PUT=topp_role

But when i go to http://localhost:8080/geoserver/rest/workspaces/topp/ i get:

404
RequestURI=/geoserver/accessDenied.jsp

What i do wrong?


October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users