I am trying to set the advertise element for coverage using REST from a
script. The command I am using is
curl -w '%{http_code}' -XPUT -H 'Content-type: application/xml' -d
${xml_element}
"http://localhost:8080/geoserver/rest/layers/my.workspace:my.layer.xml
where ${xml_element} =
"<layer><enabled>true</enabled><advertised>true</advertised></layer>"
PUT and POST are set to anonymous in the security/rest.properties file
This worked in an earlier Geoserver 2.2.x trunk (Nov 2011), but does not work
now.
Anybody having issues with REST commands using PUT and POST coverages?
Environment
Jboss 5.1
Postgresql 9.0.x
PostGIS 1.5.x
Geoserver 2.2.x
Thank you.
Robert L Brister
Principal Software Engineer
General Dynamics Information Technology
FNMOC, Monterey, CA
Building 704, Rm 235
Ph: 831-656-5056
Cell: 408-569-5954
[email protected]<mailto:[email protected]>
UNCLASSIFIED//FOR OFFICIAL USE ONLY//
------------------------------------------------------------------------------
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