anushani / atlasmapper

Automatically exported from code.google.com/p/atlasmapper
0 stars 0 forks source link

Layernames with spaces break are not escaped in Map URL #57

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Add a layer to the map with a space in its WMS name
2. Create a link to this configured map. The Map URL will contain the space 
from the layer name resulting in an invalid URL.

What is the expected output? What do you see instead?
Space in a layername is not escaped properly. As a result the map URL contains 
a space in it and so it this URL is emailed to someone the automatic URL 
detection in email programs will cut the URL in half, resulting in a broken map.

What version of the product are you using?
1.3

Original issue reported on code.google.com by eric.law...@gmail.com on 28 Mar 2013 at 3:20

GoogleCodeExporter commented 9 years ago

Original comment by lafond.g...@gmail.com on 23 Apr 2013 at 4:02

GoogleCodeExporter commented 9 years ago
Fixed, but the fix shown more problems...

New (fixed) issues with layer containing coma;

* java (request.getParameter()) automatically decode the parameter before the 
application can do a split on the string, which result in spliting layer names 
apart when they contains coma. The solution is to get the value directly from 
the query string, before it get decoded, split it on coma, than decode each 
value individually.

* OpenLayers automatically decode the parameters, causing problems with the 
parsing of the parameter value. I had to get the raw value from the URL. 
(basically the same problem on client side, with same solution)

Original comment by lafond.g...@gmail.com on 28 May 2013 at 9:30