Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Escape XML responses #628

Open
matprov opened this issue Sep 28, 2021 · 1 comment
Open

Escape XML responses #628

matprov opened this issue Sep 28, 2021 · 1 comment
Labels

Comments

@matprov
Copy link

matprov commented Sep 28, 2021

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>
...
@cehbrecht
Copy link
Collaborator

I have added an example process to Emu with characters that should be encoded:
bird-house/emu#115

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants