Skip to content

Commit 65e7295

Browse files
committed
changed hack to remove with a hack to remove the result of double gwc that GeoServer sometimes adds (i.e. '/gwc/gwc' becomes '/gwc' ).
1 parent 1278f73 commit 65e7295

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

geowebcache/rest/src/main/java/org/geowebcache/rest/converter/XStreamListAliasWrapper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ public void marshal(Object source, HierarchicalStreamWriter writer, MarshallingC
9393
UriComponents uriComponents = MvcUriComponentsBuilder.fromMethodName(
9494
controllerClass, alias + "Get", name)
9595
.buildAndExpand("");
96-
// build URI with URI.normalize() to remove double slashes
96+
// remove the repeated gwc that GeoServer (sometimes) adds to the URL
9797
String normalizedLayerUri = URI.create(
98-
uriComponents.encode().toUriString().replace("$", ""))
98+
uriComponents.encode().toUriString().replace("/gwc/gwc", "/gwc"))
9999
.normalize()
100100
.toASCIIString();
101101
writer.addAttribute("href", normalizedLayerUri + ".xml");

0 commit comments

Comments
 (0)