Opened 14 years ago

Closed 14 years ago

#3469 closed defect (fixed)

broken Capabilities XML

Reported by: tomkralidis Owned by: tomkralidis
Priority: normal Milestone: 6.0 release
Component: WCS Server Version: svn-trunk (development)
Severity: major Keywords: capabilities, xml
Cc: sdlime, assefa

Description

In mapwcs.c, msWCSGetCapabilities_ContentMetadata, if line #747 (http://trac.osgeo.org/mapserver/browser/trunk/mapserver/mapwcs.c#L747) fails, a broken Capabilities XML document is output.

The following patch fixes this issue:

Index: mapwcs.c
===================================================================
--- mapwcs.c    (revision 10209)
+++ mapwcs.c    (working copy)
@@ -744,8 +744,10 @@
 
   for(i=0; i<map->numlayers; i++)
   {
-      if( msWCSGetCapabilities_CoverageOfferingBrief((GET_LAYER(map, i)), params) != MS_SUCCESS )
+      if( msWCSGetCapabilities_CoverageOfferingBrief((GET_LAYER(map, i)), params) != MS_SUCCESS ) {
+          msIO_printf("</ContentMetadata>\n");
           return MS_FAILURE;
+      }
   }
 
   /* done */

Will test and apply.

Change History (1)

comment:1 by tomkralidis, 14 years ago

Resolution: fixed
Status: newclosed

Fixed in r10216.

Note: See TracTickets for help on using tickets.