You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I remember banging my head about this, trying to find a solution that worked across the board. I think the issue is that the json content may contain characters that will confuse the xml parser, hence the need to put everything inside CDATA tags.
I thought that the XML parser removed the CDATA tags automatically. Sorry I don't have a better answer...
Description
When dumping (as json) a complex-input with format json then the data gets tagged with
CDATA
:pywps/pywps/inout/inputs.py
Line 243 in 9fa56cc
Is this necessary?
This needs to be handled when loading the json dump again ... currently this is not the case.
See also #444.
Environment
Steps to Reproduce
We have a workflow process with a workflow document in json:
https://github.com/roocs/rook/blob/858130631bf0a37c19a78e8e94961b7159846833/rook/processes/wps_orchestrate.py#L13
The json document is send with the wps request ... not as reference.
When we use the pywps scheduler extension the
WPSRequest
is dumped as a json file:pywps/pywps/processing/job.py
Line 71 in 9fa56cc
In this case the workflow document (json format) is tagged by
CDATA
:pywps/pywps/inout/inputs.py
Line 243 in 9fa56cc
When the json dump is loaded the
CDATA
tag is still part of the workflow document:pywps/pywps/processing/job.py
Line 81 in 9fa56cc
... and the json loader for the workflow document will fail.
https://github.com/roocs/rook/blob/858130631bf0a37c19a78e8e94961b7159846833/rook/processes/wps_orchestrate.py#L52
Additional Information
PR #444
The text was updated successfully, but these errors were encountered: