Opened 20 years ago

Last modified 20 years ago

#766 new defect

[layers] and [layers_esc] tags do not receive all active layers

Reported by: stevem@… Owned by: sdlime
Priority: high Milestone:
Component: MapServer CGI Version: 4.2
Severity: major Keywords:
Cc:

Description

When there are two active layers, the MapServer CGI does not replace the 
[layers] tag with the space-separated list of all active layers as it should. A 
similar problem holds true for the [layers_esc] tag.

Example:

Suppose one invokes the MapServer CGI with this URL in a web browser:

http://localhost/cgi-bin/mapserv?map=/home/steve/mymap.map&layers=lots+poles

so that there are two layers activated: 'lots' and 'poles'. The resulting web 
page contains a map with both of those layers visible, but when the source of 
the resulting web page is examined, it turns out that the [layers] tag has only 
received "poles" and not "lots poles". Thus, when the page is resubmitted via 
an HTML form, only the 'poles' layer is drawn.

This is a problem that did not exist in MapServer version 4.0.

Change History (3)

comment:1 by stevem@…, 20 years ago

Severity: blockerenhancement

comment:2 by stevem@…, 20 years ago

Severity: enhancementmajor

comment:3 by sdlime, 20 years ago

This has been fixed in 4.3, there is a problem with some OS's versions of 
snprintf. I'll see about moving the change backwards into 4.2.1 as well...

Steve
Note: See TracTickets for help on using tickets.