Hello,
I'm trying to get layers list in specific work space by a non admin-user
but permitted by GeoFence rules! I got this error message.
I'm running GeoServer 2.20.2 on Tomcat 9.0.58, Linux LMDE 5 (Debian 11
x64), Java v8
admin user can get response from GeoServer without any problem.
my rule in GeoFence is:
curl -v -u tah...@gmail.com:t1234567 GET
http://xxx.xxx.xxx.xxx:8080/geoserver/rest/workspaces/gheZoi4J30eK0g0tuy8QExyZenOInEzo/layers
-H "accept: text/html" -H "content-type: application/json"
* Trying 62.116.165.149:80...
* Connected to GET (62.116.165.149) port 80 (#0)
* Server auth using Basic with user ' tah...@gmail.com'
> GET / HTTP/1.1
> Host: GET
> Authorization: Basic dGFoZXJpQGdtYWlsLmNvbTp0MTIzNDU2Nw==
> User-Agent: curl/7.74.0
> accept: text/html
> content-type: application/json
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 503 Service Unavailable
< Content-Length: 175
<
* Connection #0 to host GET left intact
<HTML><HEAD><meta http-equiv="content-type"
content="text/html;charset=utf-8"><TITLE>503 Service
Unavailable</TITLE></HEAD><BODY><H1>503 Service
Unavailable</H1></BODY></HTML>* Trying 194.5.195.11:8080...
* Connected to 194.5.195.11 (194.5.195.11) port 8080 (#1)
* Server auth using Basic with user ' tah...@gmail.com'
> GET
/geoserver/rest/workspaces/gheZoi4J30eK0g0tuy8QExyZenOInEzo/layers HTTP/1.1
> Host: 194.5.195.11:8080
> Authorization: Basic dGFoZXJpQGdtYWlsLmNvbTp0MTIzNDU2Nw==
> User-Agent: curl/7.74.0
> accept: text/html
> content-type: application/json
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 403
< Access-Control-Allow-Origin: *
< X-Frame-Options: SAMEORIGIN
< Content-Type: text/html;charset=utf-8
< Content-Language: en
< Content-Length: 649
< Date: Sat, 26 Mar 2022 02:49:14 GMT
<
* Connection #1 to host 194.5.195.11 left intact
<!doctype html><html lang="en"><head><title>HTTP Status 403 –
Forbidden</title><style type="text/css">body
{font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b
{color:white;background-color:#525D76;} h1 {font-size:22px;} h2
{font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a
{color:black;} .line
{height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP
Status 403 – Forbidden</h1><hr class="line" /><p><b>Type</b> Status
Report</p><p><b>Message</b> Forbidden</p><p><b>Description</b> The
server understood the request but refuses to authorize it.</p><hr
class="line" /><h3>Apache Tomcat/9.0.58</h3></body></html>%
_______________________________________________
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