Folks,
when I send an SLD parameter of a WMS request to GeoServer and this parameter is URL-encoded (being an URL with spaces, etc.) GeoServer decodes the URL before requesting it, obviously failing to find it.
Is it designed to do so, or there is a way to alter this behavior ?
Here's an example of the request and the error I get.
Request:
http://212.239.25.140:8080/geoserver/wms?request=GetMap&version=1.1.1&format=image/png&srs=EPSG:3034&bbox=2490110.530493,148073.686996,6458889.469507,2793926.313005&width=600&height=400&transparent=false&bgcolor=0xB6C4E7&sld=http://212.239.25.140:8080/cocoon/sa/app/specie--Amphicorina%20eimeri.sld&wfs=http://212.239.25.140:8080/geoserver/wfs
Error:
Apr 16, 2007 2:17:27 PM org.vfny.geoserver.wms.requests.GetMapKvpReader parseSldParam
WARNING: Creating remote SLD url: Server returned HTTP response code: 505 for URL: http://212.239.25.140:8080/cocoon/sa/app/specie--Amphicorina eimeri.sld
java.io.IOException: Server returned HTTP response code: 505 for URL: http://212.239.25.140:8080/cocoon/sa/app/specie--Amphicorina eimeri.sld
Regards,
--------------------
Luca Morandini
www.lucamorandini.it
--------------------
Hi Luca,
Without looking at the code I would guess that all params probably get
url decoded when they are read. You are right, SLD is a case of one that
should not be since it could be another remote url such as in this case.
Or it could be that it just needs to be re-encoded. I have opened a
jira for this and scheduled for 1.5.1.
http://jira.codehaus.org/browse/GEOS-1043
Thanks for the bug report!!
-Justin
Luca Morandini wrote:
Folks,
when I send an SLD parameter of a WMS request to GeoServer and this
parameter is URL-encoded (being an URL with spaces, etc.) GeoServer
decodes the URL before requesting it, obviously failing to find it.
Is it designed to do so, or there is a way to alter this behavior ?
Here's an example of the request and the error I get.
Request:
http://212.239.25.140:8080/geoserver/wms?request=GetMap&version=1.1.1&format=image/png&srs=EPSG:3034&bbox=2490110.530493,148073.686996,6458889.469507,2793926.313005&width=600&height=400&transparent=false&bgcolor=0xB6C4E7&sld=http://212.239.25.140:8080/cocoon/sa/app/specie--Amphicorina%20eimeri.sld&wfs=http://212.239.25.140:8080/geoserver/wfs
Error:
Apr 16, 2007 2:17:27 PM org.vfny.geoserver.wms.requests.GetMapKvpReader
parseSldParam
WARNING: Creating remote SLD url: Server returned HTTP response code:
505 for URL:
http://212.239.25.140:8080/cocoon/sa/app/specie--Amphicorina eimeri.sld
java.io.IOException: Server returned HTTP response code: 505 for URL:
http://212.239.25.140:8080/cocoon/sa/app/specie--Amphicorina eimeri.sld
Regards,
--------------------
Luca Morandini
www.lucamorandini.it
--------------------
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
Justin Deoliveira
The Open Planning Project
jdeolive@anonymised.com
Justin Deoliveira wrote:
Without looking at the code I would guess that all params probably get
url decoded when they are read. You are right, SLD is a case of one that
should not be since it could be another remote url such as in this case.
I had this sneaking suspicion myself 
Or it could be that it just needs to be re-encoded. I have opened a
jira for this and scheduled for 1.5.1.
Thanks, but... any estimate for 1.5.1 release date ?
Regards,
--------------------
Luca Morandini
www.lucamorandini.it
--------------------
Or it could be that it just needs to be re-encoded. I have opened a
jira for this and scheduled for 1.5.1.
Thanks, but... any estimate for 1.5.1 release date ?
Not exactly sure, but from the sounds of it should be soon. On the order
of a few weeks or so... An alternative would be to watch the bug report
and grab the first nightly build after the fix gets committed.
-Justin
Regards,
--------------------
Luca Morandini
www.lucamorandini.it
--------------------
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
Justin Deoliveira
The Open Planning Project
jdeolive@anonymised.com