[PATCH] issue767: Do not encode the complete legend url
Wald Commits
scm-commit at wald.intevation.org
Tue Jul 30 12:33:09 CEST 2013
# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1375180385 -7200
# Node ID fe496c477173ee7d2f6c1574464a5e39f9d80d19
# Parent 4eaa7c84c0a54580d11a34c3d4982902f77dd314
issue767: Do not encode the complete legend url
Otherwise stuff like http:// gets escaped twice, leading to invalid
urls and no legend being shown.
diff -r 4eaa7c84c0a5 -r fe496c477173 gwt-client/src/main/java/org/dive4elements/river/client/server/MapPrintServiceImpl.java
--- a/gwt-client/src/main/java/org/dive4elements/river/client/server/MapPrintServiceImpl.java Tue Jul 30 11:19:54 2013 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/server/MapPrintServiceImpl.java Tue Jul 30 12:33:05 2013 +0200
@@ -212,7 +212,7 @@
Map<String, Object> legend = new LinkedHashMap<String, Object>();
List<Object> classes = new ArrayList<Object>(1);
Map<String, Object> clazz = new LinkedHashMap<String, Object>();
- String lgu = encode(MapUtils.getLegendGraphicUrl(layer.url, layer.layers, dpi));
+ String lgu = MapUtils.getLegendGraphicUrl(layer.url, encode(layer.layers), dpi);
clazz.put("icon", lgu);
clazz.put("name", layer.description);
classes.add(clazz);
More information about the Dive4elements-commits
mailing list