[Geoserver-devel] [jira] (GEOS-5133) Missing auth in cURL REST example

Paul Winkler created BugGEOS-5133
Missing auth in cURL REST example

Issue Type:

BugBug

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=“http://jetty.mortbay.org/”>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:

MajorMajor

Reporter:

Paul Winkler

This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your [JIRA administrators](https://jira.codehaus.org/secure/ContactAdministrators!default.jspa). For more information on JIRA, see: [http://www.atlassian.com/software/jira](http://www.atlassian.com/software/jira)