Issue Type: Bug Bug
Affects Versions: 2.1.x
Assignee: Andrea Aime
Components: Documentation, REST
Created: 29/May/12 3:04 PM
Description:

http://docs.geoserver.org/stable/en/user/restconfig/rest-config-examples/rest-config-examples-curl.html

The example of fetching xml representation of a workspace does not show providing credentials:
curl -XGET -H 'Accept: text/xml' http://localhost:8080/geoserver/rest/workspaces/acme

If you try that with geoserver 2.1.3, you get:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 401 Bad credentials</title>
</head>
<body><h2>HTTP ERROR: 401</h2><pre>Bad credentials</pre>
<p>RequestURI=/geoserver/rest/workspaces/doitt.xml</p><p><i><small><a href="">Powered by Jetty://</a></small></i></p><br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>

</body>
</html>

The fix is just to add "-u admin:geoserver" to the example.

Project: GeoServer
Priority: Major Major
Reporter: Paul Winkler
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to