[Geoserver-devel] [jira] (GEOS-6768) externalGraphic with relative path and query parameters problem

Tobias Warneke created an issue

GeoServer / BugGEOS-6768

externalGraphic with relative path and query parameters problem

Issue Type:

BugBug

Affects Versions:

2.6.1

Assignee:

Andrea Aime

Created:

18/Nov/14 2:47 AM

Priority:

MajorMajor

Reporter:

Tobias Warneke

I don’t know, if this should be here or in GeoTools Issues.

I implemented a ExternalGraphicFactory which is working. (getIcon gets called). So I wanted to provide some additional parameters using the URL of my online resource.

Here are the tests I did.

myimage.png -> worked

myimage.png?param=testparam –> stripped parameter I got URL myimage.png

<absolute-path>/myimage.png?param=testparam –> worked

and this is my hack at the moment for relative paths:

myimage.png&param=testparam –> work (path and parameter separated by a &)

Here is the snipped of my external graphics:

<ExternalGraphic>
<OnlineResource xlink:href=“myimage.png” />
<Format>myformat</Format>
</ExternalGraphic>

The logging does say:
18 Nov 09:43:46 DEBUG [geotools.styling] - Looks like myimage.png?param=testparam is a relative path…

Here the parameter is still there but in my factory class the param - part is not there.

However, this is not a problem with GeoServer 2.3, 2.5.

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c)

Atlassian logo