[QGIS-trac] [Quantum GIS] #3088: QgisMapServer: trimmed xml

Quantum GIS qgis at qgis.org
Wed Oct 6 11:34:28 EDT 2010


#3088: QgisMapServer: trimmed xml
------------------------------------------------+---------------------------
   Reporter:  Mavka                             |              Owner:  nobody       
       Type:  bug                               |             Status:  new          
   Priority:  major: does not work as expected  |          Milestone:  Version 1.6.0
  Component:  Build/Install                     |            Version:  Trunk        
   Keywords:                                    |   Platform_version:  XP           
   Platform:  Windows                           |           Must_fix:  No           
Status_info:  0                                 |  
------------------------------------------------+---------------------------
 OSGeo4W / qgis build 14343

 Sometimes (not always) xml-answers are trimed.

 '''Example 1:'''

 Q:

 {{{
 http://localhost/qgis/qgis_mapserv.fcgi.exe
 }}}

 A:

 {{{
 <ServiceExceptionReport version="1.3.0" xmlns="http://www.opengis.net/ogc"
 >
  <ServiceException code="ServiceNotSpecified" >Service not specified. The
 SERVICE parameter is mandatory</ServiceException>
 </ServiceExceptionReport
 }}}
 The last quoter '>' is trimmed

 '''Example 2:'''

 Q:

 {{{
 http://localhost/qgis/qgis_mapserv.fcgi.exe?
 SERVICE=WMS&VERSION=1.3.0&
 REQUEST=GetCapabilities
 }}}

 A (incorrect):

 {{{
 ...
     <Exception>
         <Format>text/xml</Format>
     </Exception>
     <Layer queryable="1">
 }}}

 A (correct):

 {{{
 ...
     <Exception>
         <Format>text/xml</Format>
     </Exception>
     <Layer queryable="1">
         <Name>my_layer_name</Name>
     </Layer>
 </Capability>
 </WMS_Capabilities>
 }}}

 But when I use 'WMS Inspector' (Firefox addon), all answers done correct.

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/3088>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list