Bug report #3088

QgisMapServer: trimmed xml

Added by Mavka - about 10 years ago. Updated about 10 years ago.

Status:Closed
Priority:Low
Assignee:nobody -
Category:Build/Install
Affected QGIS version: Regression?:No
Operating System:Windows Easy fix?:No
Pull Request or Patch supplied: Resolution:fixed
Crashes QGIS or corrupts data: Copied to github as #:13148

Description

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.

History

#1 Updated by Jürgen Fischer about 10 years ago

  • Resolution set to fixed
  • Status changed from Open to Closed

fixed in 2e43a95e (SVN r14346).

Also available in: Atom PDF