[ ] I'd like to contribute [feature X|bugfix Y|docs|something else] to PyWPS. I confirm that my contributions to PyWPS will be compatible with the PyWPS license guidelines at the time of contribution.
[x ] I have already previously agreed to the PyWPS Contributions and Licensing Guidelines
Coverage remained the same at 0.0% when pulling 6896931b926d81b2debe8f907495dd742d705c6c on cehbrecht:fix-lxml-parser into 711219792be8b3d6a175a81152282dc5046d412b on geopython:pywps-4.4.
Overview
This PR configures the lxml default parser to avoid security issues.
For example the default
lxml
parser replaces entities in the XML request with the content of local system files.Changes:
xml_util.py
with a configured lxml parser forlxml.etree.fromstring
andlxml.etree.parse
.xml_util.py
.werkzeug
deprecation warnings:werkzeug.Response
markupsafe
Related Issue / Discussion
https://github.com/geopython/OWSLib/issues/790
Additional Information
This PR is not using
defusedxml.lxml
since it is deprecated: https://pypi.org/project/defusedxml/#defusedxml-lxmlContribution Agreement
(as per https://github.com/geopython/pywps/blob/master/CONTRIBUTING.rst#contributions-and-licensing)