Opened 14 years ago

Closed 14 years ago

#561 closed defect (fixed)

getMap-Request STYLE=undefined when Layer-name contains spaces (SLD)

Reported by: astrid_emde Owned by: dev
Priority: critical Milestone: 2.6.1 release
Component: wms Version: 2.6 rc1
Keywords: Cc:

Description

  • Mapbender does not request the right style in MapRequest, when the name contains spaces - the requested STYLE is then undefined and the MapServer reports an error as undefined is not a defined STYLE
  • looks like Mapbender validates the STYLE by layer-name

Change History (2)

comment:1 by mschulz, 14 years ago

Priority: majorcritical

The problem arises with every layer name that has special characters, e.g. also the namespace separator ":" that is very common to geoserver layers.

The problem is that in map_obj.js, function getMapUrl, the validLayers array is looped and the layername is encoded, so that the following check for the style fails because the layernames aren't equal anymore.

Note: See TracTickets for help on using tickets.