#11 REST Config Plugin does not unescape URL

open
nobody
None
5
2010-09-22
2010-09-22
Anonymous
No

The REST Configuration Plugin does not unescape values in the URL. For instance, if I have a feature at:

user-workspace,spaceInFeatureName.zip,Feature with Space

The URL will escape the spaces in the name with "%20"s, and the URL will be:

http://localhost:8181/geoserver/rest/workspaces/user-workspace/datastores/spaceInFeatureName.zip/Feature%20with%20Space

When I try this link, the REST Plugin thinks that the feature name is actually "Feature%20with%20Space" and will not find the feature. If the REST Plugin correctly unescaped the URL, it would search for "Feature with Space" and find the feature.

This issue is in both 2.0.2 and the 2.1-beta1 releases of geoserver and the rest plugin.

Stack trace from the 2.1-beta1 release attached.

Discussion

  • Stack trace from the 2.1-beta1 release.

     
    Attachments