Layer style hrefs are wrong
---------------------------
Key: GEOS-3417
URL: http://jira.codehaus.org/browse/GEOS-3417
Project: GeoServer
Issue Type: Bug
Components: REST
Affects Versions: 2.0-RC1
Reporter: David Winslow
Assignee: David Winslow
When fetching a layer from restconfig on a recent trunk build, the styles
included in the JSON response are invalid. Here is a simple python script that
reproduces this issue consistently for me (it will require python2.6 to run).
{code}#!/usr/bin/env python
import json
from urllib2 import urlopen, HTTPError
GS_BASE = """http://localhost:8080/geoserver/rest"""
def getJSON(url):
return json.loads(urlopen(url).read())
try:
layer = getJSON("%s/layers/states.json" % GS_BASE)
style_href = layer["layer"]["defaultStyle"]["href"]
style = getJSON(style_href)
except HTTPError, e:
print "Couldn't load %s due to %s" % (e.geturl(), str(e))
{code}
The issue appears to be caused by the RESTConfig module using names to identify
objects from URLs, but ids to generate URL references.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel