Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#2810 closed defect (fixed)

WMS_LAYER_GROUP

Reported by: KHirst Owned by: aboudreault
Priority: normal Milestone: 5.4 release
Component: WMS Server Version: 5.2
Severity: normal Keywords: wms_layer_group
Cc: dmorissette, sdlime

Description

I am using OWS_LAYER_GROUP to create a group hierarchy. I have one group with "/Tropical_Cyclone/WA/System_1" and another with "/Tropical_Cyclone/WA/System_1_EM"

However, all the layers are grouped as "/Tropical_Cyclone/WA/System_1" within the getcapabilities and on WMS Clients.

If I change the second grouping to "/Tropical_Cyclone/WA/EM_System_1", the layers are in 2 correct groups.

Change History (3)

comment:1 by dmorissette, 15 years ago

Cc: dmorissette sdlime added
Component: MapServer C LibraryWMS Server
Milestone: 5.2.1 release
Owner: changed from sdlime to aboudreault

I had a quick look at the code and it's very possible that the source of the problem might be in msWMSIsSubGroup()'s use of strncmp() in mapwms.c.

Assigned to Alan.

comment:2 by aboudreault, 15 years ago

Resolution: fixed
Status: newclosed

Effectively, the function "strncmp" was the problem. I replaced it by "strcmp".

Commited in SVN trunk in r8443.

comment:3 by dmorissette, 15 years ago

Milestone: 5.2.1 release5.4 release
Note: See TracTickets for help on using tickets.