[Pywps-devel] Bug: PyWPS does not escape properly ExceptionText
Andrea Francia
andrea at andreafrancia.it
Thu Sep 1 15:50:14 CEST 2011
Dear All,
I discovered that the PyWPS does not correctly does escaping of exception
message when it print the status in XML.
This is particularly unfortunate in my case (URLError) where the exception
text contains those characters: '<' and '>'.
<wps:ExecuteResponse xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:xlink="
http://www.w3.org/1999/xlink" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsExecute_response.xsd" service="WPS"
version="1.0.0" xml:lang="en-CA" serviceInstance="
http://139.191.240.49/wps?service=WPS&request=GetCapabilities&version=1.0.0"
statusLocation="http://******/***.xml">
<wps:Process wps:processVersion="0.0.1">
<ows:Identifier>nor_service</ows:Identifier>
<ows:Title>*****</ows:Title>
</wps:Process>
<wps:Status creationTime="2011-08-30T12:24:00Z">
<wps:ProcessFailed>
<wps:ExceptionReport>
<ows:Exception exceptionCode="NoApplicableCode">
<ows:ExceptionText>Failed to execute WPS process [boh]:
<urlopen error unknown url type: http22></ows:ExceptionText>
</ows:Exception>
</wps:ExceptionReport>
</wps:ProcessFailed>
</wps:Status>
</wps:ExecuteResponse>
I wrote a test case that show the problem: https://gist.github.com/1186208
Regards
--
Andrea Francia http://www.andreafrancia.it
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wald.intevation.org/pipermail/pywps-devel/attachments/20110901/42488088/attachment.html
More information about the Pywps-devel
mailing list