[Geoserver-devel] [JIRA] (GEOS-7295) OpenLayers preview does not work if authkey community module is enabled

Stefano Costa created an issue

GeoServer / BugGEOS-7295

OpenLayers preview does not work if authkey community module is enabled

Issue Type:

BugBug

Affects Versions:

2.8.0, 2.9-beta

Assignee:

Stefano Costa

Components:

Community modules, WMS

Created:

04/Nov/15 1:37 PM

Priority:

MediumMedium

Reporter:

Stefano Costa

The authkey community module contains a URLMangler implementation to automatically add the authkey parameter to each request’s KVP map.

Problem is, this breaks the OpenLayers-based layer preview, as the generated JavaScript looks like this:

source: new ol.source.ImageWMS({
          ...
          url: 'http://localhost:8080/geoserver/?authkey=ba0eb646-0726-4ba0-a050-bc27aca67701/cite/wms',
          ...
        })

But should instead look like this:

source: new ol.source.ImageWMS({
          ...
          url: 'http://localhost:8080/geoserver/cite/wms?authkey=ba0eb646-0726-4ba0-a050-bc27aca67701',
         ...
        })

I.e. the query string is wrongly appended to the base URL.

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v7.0.0-OD-08-005#70107-sha1:5fb2f7e)

Atlassian logo