Opened 15 years ago

Closed 15 years ago

#2970 closed defect (fixed)

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 (2)

comment:1 by sdlime, 15 years ago

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

comment:2 by dmorissette, 15 years ago

Resolution: fixed
Status: newclosed

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.