[Geoserver-devel] Rest problem

Can anyone confirm this is a bug and not just that I need more coffee :slight_smile:

I created an image mosaic in a datastore called ian in the topp workspace using the GUI as usual - all seems well I can preview it etc.

When I ask a list of data stores in topp using the rest URL (http://localhost:8080/geoserver/rest/workspaces/topp.html) I see
Workspace “topp”

states_shapefile

<atom:link xmlns:atom=“http://www.w3.org/2005/Atom” rel=“alternate” href=“http://localhost:8080/geoserver/rest/workspaces/topp/datastores/states_shapefile.xml” type=“application/xml”/>

taz_shapes

<atom:link xmlns:atom=“http://www.w3.org/2005/Atom” rel=“alternate” href=“http://localhost:8080/geoserver/rest/workspaces/topp/datastores/taz_shapes.xml” type=“application/xml”/>

And my datastore doesn’t show up! this is making my automation task hard to complete.

Ian Turton

OK looks like I need more coffee - seems that html and xml handle listing workspaces differently.
So http://localhost:8080/geoserver/rest/workspaces/topp/coveragestores/ian.xml does work.

Ian

···

On 7 February 2014 10:38, Ian Turton <ijturton@anonymised.com03…> wrote:

Can anyone confirm this is a bug and not just that I need more coffee :slight_smile:

I created an image mosaic in a datastore called ian in the topp workspace using the GUI as usual - all seems well I can preview it etc.

When I ask a list of data stores in topp using the rest URL (http://localhost:8080/geoserver/rest/workspaces/topp.html) I see
Workspace “topp”

states_shapefile

<atom:link xmlns:atom=“http://www.w3.org/2005/Atom” rel=“alternate” href=“http://localhost:8080/geoserver/rest/workspaces/topp/datastores/states_shapefile.xml” type=“application/xml”/>

taz_shapes

<atom:link xmlns:atom=“http://www.w3.org/2005/Atom” rel=“alternate” href=“http://localhost:8080/geoserver/rest/workspaces/topp/datastores/taz_shapes.xml” type=“application/xml”/>

And my datastore doesn’t show up! this is making my automation task hard to complete.

Ian Turton

–
Ian Turton

Ian,
with:

http://localhost:8080/geoserver/rest/workspaces/topp/datastores.xml

···

you are asking for DATASTORES
if you are looking for COVERAGESTORES try using:
http://localhost:8080/geoserver/rest/workspaces/topp/coveragestores.xml

cheers,
Carlo

2014-02-07 Ian Turton <ijturton@anonymised.com403…>:

OK looks like I need more coffee - seems that html and xml handle listing workspaces differently.
So http://localhost:8080/geoserver/rest/workspaces/topp/coveragestores/ian.xml does work.

Ian


Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk


Geoserver-devel mailing list
Geoserver-devel@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

–

==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information.

Dott. Carlo Cancellieri
@cancellieric
Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


On 7 February 2014 10:38, Ian Turton <ijturton@anonymised.com> wrote:

Can anyone confirm this is a bug and not just that I need more coffee :slight_smile:

I created an image mosaic in a datastore called ian in the topp workspace using the GUI as usual - all seems well I can preview it etc.

When I ask a list of data stores in topp using the rest URL (http://localhost:8080/geoserver/rest/workspaces/topp.html) I see
Workspace “topp”

states_shapefile

<atom:link xmlns:atom=“http://www.w3.org/2005/Atom” rel=“alternate” href=“http://localhost:8080/geoserver/rest/workspaces/topp/datastores/states_shapefile.xml” type=“application/xml”/>

taz_shapes

<atom:link xmlns:atom=“http://www.w3.org/2005/Atom” rel=“alternate” href=“http://localhost:8080/geoserver/rest/workspaces/topp/datastores/taz_shapes.xml” type=“application/xml”/>

And my datastore doesn’t show up! this is making my automation task hard to complete.

Ian Turton

–
Ian Turton