Ticket #2810 (closed defect: fixed)

Opened 5 years ago

Last modified 4 years ago

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

Changed 4 years ago by dmorissette

  • cc dmorissette, sdlime added
  • owner changed from sdlime to aboudreault
  • component changed from MapServer C Library to WMS Server
  • milestone set to 5.2.1 release

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.

Changed 4 years ago by aboudreault

  • status changed from new to closed
  • resolution set to fixed

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

Commited in SVN trunk in r8443.

Changed 4 years ago by dmorissette

  • milestone changed from 5.2.1 release to 5.4 release
Note: See TracTickets for help on using tickets.