[Geoserver-devel] [JIRA] (GEOS-8050) GeoServerDataDirectory::parsedStyle's resourceLocator does not preserve URL #fragments

Matt Kruszewski created an issue

GeoServer / BugGEOS-8050

GeoServerDataDirectory::parsedStyle’s resourceLocator does not preserve URL #fragments

Issue Type:

BugBug

Assignee:

Unassigned

Created:

24/Mar/17 9:04 PM

Priority:

MediumMedium

Reporter:

Matt Kruszewski

GeoServerDataDirectory::parsedStyle’s resourceLocator does not preserve URL #fragments (wikipedia) when locating a resource.

Supporting URL fragments would be generally useful to designate subordinate resources, e.g., an individual icon inside a sprite sheet. This pattern has already been established for bulk WKT shapes (link), for which you can write:

 <OnlineResource xlink:type="simple" xlink:href="example.properties#zig" />

The parsedStyle function’s resourceLocator delegates to GeoserverResourceLoader, which uses only the base of the resource URL to locate the resource. That is correct, but then the resourceLocator attempts to recreate the original URL that for the resource, but only by re-adding the query parameters. It should more faithfully recreate that URL by also including #fragments.

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v1000.844.2#100035-sha1:71171a4)

Atlassian logo