pywps icon indicating copy to clipboard operation
pywps copied to clipboard

Escape XML responses

Open matprov opened this issue 3 years ago • 1 comments

Description

XML responses should be escaped, in order to expose valid XML.

For example, in a service that uses pywps package, we currently get this response when querying ?request=GetCapabilities&service=WPS:

...
    <ows:Title>Maximum number of consecutive frost days (Tn < 0).</ows:Title>
...

To be valid, the response should be:

...
    <ows:Title>Maximum number of consecutive frost days (Tn &lt; 0).</ows:Title>
...

matprov avatar Sep 28 '21 14:09 matprov

I have added an example process to Emu with characters that should be encoded: https://github.com/bird-house/emu/pull/115

The encoding of < and > is working in my local test with pywps 4.4.5.

cehbrecht avatar Sep 29 '21 15:09 cehbrecht