Ticket #2970 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

saveMap() incorrectly writes metadata entries in VALIDATION block

Reported by: dmorissette Owned by: dmorissette
Priority: normal Milestone: 5.4 release
Component: MapServer C Library Version: unspecified
Severity: normal Keywords:
Cc: sdlime

Description

Reported by Murty Maganti on mapserver-users:

When I call mapObj.save(), I see a new tag ‘VALIDATION’ in layer section 
of map file. It just contains metadata of layer. There is no mention of 
this item in the online documentation. What is this item ‘VALIDATION’? 
Is it replacement of METADATA or METADATA will  continue to be there.

It turns out that there is a typo in the writeWeb() and writeLayer() functions (mapfile.c) and as a result they write the metadata hashtable contents in the VALIDATION block.

Simple fix, but we need a ticket since that problem is present in both trunk and 5.4

Change History

Changed 6 years ago by sdlime

Do you want to change or should I take the ticket? -Steve

Changed 6 years ago by dmorissette

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

Fixed in branch-5.4 r8885 (will be in 5.4.0-rc1) and trunk r8886.

Created ticket #2971 about adding docs for this new feature.

Note: See TracTickets for help on using tickets.