Good to see that RESTconfig is officially released with GS 1.7.3.
It's been quite a wait for me since I last touched it in early January.
I am going to post some test results, and hope to get some further
clarifications.
Test 1. Adding a PostGIS table as a new layer
I have a postGIS database, and some tables are already loaded.
When issuing the following command
curl -u admin:geoserver -v -XPOST -H 'Content-type: text/xml' -d
'<featureType><name>boundary</name></featureType>'
http://localhost:8080/geoserver/rest/workspaces/dugway/datastores/dugway/featuretypes
I got this response
* About to connect() to localhost port 8080
* Trying 127.0.0.1... connected
* Connected to localhost (127.0.0.1) port 8080
* Server auth using Basic with user 'admin'
POST /geoserver/rest/workspaces/dugway/datastores/dugway/featuretypes
HTTP/1.1
Authorization: Basic YWRtaxxW46emdlbxxxxxx=
User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5
OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
Host: localhost:8080
Accept: */*
Content-type: text/xml
Content-Length: 48<featureType><name>boundary</name></featureType>HTTP/1.1 500 Internal
Server Error
< Server: Apache-Coyote/1.1
< Transfer-Encoding: chunked
< Date: Tue, 17 Mar 2009 16:16:46 GMT
< Connection: close
* Closing connection #0
:SQL Error building FeatureType for null ERROR: relation "public.null" does
not exist
It seems to me the the FeatureType name "boundary" is not properly parsed.
becauset the table should be "public.boundary"
Something I did wrong ?
Dukie
Raleigh, NC
--
View this message in context: http://www.nabble.com/RESTconfig-test-and-feedback-tp22565209p22565209.html
Sent from the GeoServer - Dev mailing list archive at Nabble.com.