Hi all,
I am trying to determine through the REST API whether the connection details
for a given datastore is valid. In the web interface a user receives an error
message (https://i.imgur.com/Aa61yFX.png <https://i.imgur.com/Aa61yFX.png>)
when trying to configure a datastore with invalid connection details, but in
the REST API I cannot find a way to determine whether a datastore is valid.
When using the REST API GeoServer lets me create a new datastore with invalid
connection details. When I check for the number of available featuretypes in
the invalid datastore through the REST API, the request completes successfully:
REQUEST:
GET
http://daneel:8080/geoserver/rest/workspaces/world/datastores/da00bb64-f124-4d9c-be2a-89fd94bb09df/featuretypes.xml?list=all
HTTP/1.1
RESPONSE BODY:
<featureTypes/>
However, I would expect GeoServer to return an error since GS cannot determine
the number of featuretypes in the datastore, since it cannot connect to the
datastore. Can this be seen as a bug? Or is there another way to validate
datastore configurations through the REST API?
Cheers,
Anton
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users