[Geoserver-devel] [JIRA] (GEOS-7498) Bad REST response for styles with same name in workspace

Emanuele Tajariol created an issue

GeoServer / BugGEOS-7498

Bad REST response for styles with same name in workspace

Issue Type:

BugBug

Affects Versions:

2.8.3

Assignee:

Unassigned

Attachments:

image-2016-04-15-10-40-43-342.png

Components:

REST

Created:

15/Apr/16 10:51 AM

Labels:

style workspace REST

Priority:

MediumMedium

Reporter:

Emanuele Tajariol

There are 2 styles defined with the same name, one is a global style, the other is within a workspace:

This is the REST request for the globas style:
http://localhost:8080/geoserver/rest/styles.xml
{{<styles>
<style>
<name>restteststyle</name>
<atom:link xmlns:atom=“http://www.w3.org/2005/Atom” rel=“alternate” href=“http://localhost:8080/geoserver/rest/styles/restteststyle.xml” type=“application/xml”/>
</style>
</styles>}}

Asking for details in the returned URL:
http://localhost:8080/geoserver/rest/styles/restteststyle.xml
{{<style>
<name>restteststyle</name>
<workspace>
<name>testWorkspace</name>
</workspace>
<format>sld</format>
<languageVersion>
<version>1.0.0</version>
</languageVersion>
<filename>restteststyle.sld</filename>
</style>}}
it returns info about the style in the workspace instead the global one.

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v7.2.0-OD-05-030#72002-sha1:7e8526a)

Atlassian logo