[Geoserver-devel] [JIRA] (GEOS-9070) OpenLayers2 will never be used in layers preview

Gnafu created an issue

GeoServer / BugGEOS-9070

OpenLayers2 will never be used in layers preview

Issue Type:

BugBug

Affects Versions:

2.14.1, 2.15-RC

Assignee:

Unassigned

Components:

WMS

Created:

17/Dec/18 5:11 PM

Priority:

MediumMedium

Reporter:

Gnafu

If Internet Explorer 8 is used the preview page does not use Openlayers2, but still uses OL3.

The pattern to match the user agent doesn’t actually match any real IE user agent headers.
https://github.com/geoserver/geoserver/blob/master/src/wms/src/main/java/org/geoserver/wms/map/OpenLayers3MapOutputFormat.java#L66

To reproduce:

  • Start the 2.15.x binary package
  • Use Chrome to select IE7 and IE8 user agents strings (or download an IE8 test VM from Microsoft)
  • Open a layer preview
  • The page will serve OpenLayers3
  • Use the custom User Agent “MSIE 7.” or “MSIE 8.”
  • The page will serve OpenLayers2

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100096-sha1:3789493)

Atlassian logo