ckan / ckanext-geoview

CKAN Geospatial ResourceView
MIT License
43 stars 58 forks source link

URL parameter handling inconsistent with/without proxy #32

Open letmaik opened 8 years ago

letmaik commented 8 years ago

WIth proxy, a WMS URL like http://services.nationalmap.gov/arcgis/services/nhd/MapServer/WMSServer?request=GetCapabilities&service=WMS is transformed to http://services.nationalmap.gov/arcgis/services/nhd/MapServer/WMSServer before adding the parameters again.

But, when not using the proxy this stripping doesn't happen, so the result is something like: http://services.nationalmap.gov/arcgis/services/nhd/MapServer/WMSServer?request=GetCapabilities&service=WMS&REQUEST=GetCapabilities&SERVICE=WMS

The only work-around currently is to define the resource url without parameters: http://services.nationalmap.gov/arcgis/services/nhd/MapServer/WMSServer Otherwise some servers just fail with something like "cannot parse request".

Both scenarios, with and without proxy should behave identically.

mattfullerton commented 8 years ago

See also https://github.com/ckan/ckanext-geoview/pull/23