-
Notifications
You must be signed in to change notification settings - Fork 153
Export of encrypted submissions using Briefcase UI fails #902
Comments
I believe all your namespace declarations are invalid. What if you make them raw URIs as they should be? |
I believe that might have been an issue caused by me retrieving the XML from the
Might have misunderstood... but the namespace declarations looks okay in this format. Edit: Confirmed just in case seems the Python requests output is what is also returned on briefcase my bad for attaching the wrong example; hopefully the above one contains valid namespaces ? CC: @lognaturel |
Great! Next step will be to look at the XML either raw from Collect or from a server that does work and compare that (Central, Aggregate, KoBo). You can also review the spec at https://getodk.github.io/xforms-spec/encryption You can also write the XML you have from Ona locally and modify it until it works. Like what if you remove the extra nested
That's quite possible too. What if you remove that? The namespace is indeed supposed to be on the |
Quick update on this issue: We've tested it out on both ona.io and kc.kobotoolbox.org; the issue is replicatable on both instances as of July 6th. Still haven't test with ODK Central. Will update this comment as soon as that's done |
I still suspect there's something not quite right about the structure of submissions being pulled. Do Formhub-derived systems recreate the submissions or wrap them in some way? If you think this is a general issue, it would be good to get a reproduction from submissions that don't come from a Formhub-derived system. Like I said, this could be done by directly taking a raw encrypted submission from Collect and trying to identify a case that fails or comparing the submission XML with what you pull out of your system. We verify pulling and exporting encrypted submissions from Central and Aggregate in regression testing. If you believe that this worked for Formhub-based systems previously, you could try doing a bisect to try to identify what might have changed. |
Formhub derived systems wrap the submissions into a response document identical to the one defined here for ODK Aggregate(https://docs.getodk.org/briefcase-api/#response-document). This seems to have worked before in releases that were before this PR; It was technically a bug that became a feature in a way... The XML did have multiple namespaces but it exported even though briefcase wasn't able to read the submission date. A way I've been able to export the data with the current changes is by:
From the above, it seems that ODK Aggregate might have removed the namespaces from the XML received from ODK collect...? If so this issue should be closed; Seems like it's more of an issue with the Formhub derived systems |
Software versions
Briefcase v1.18.0, Java v1.8.0_292
Problem description
Exporting encrypted submissions fail due to duplicate
xmlns
tag in the stored ODK Briefcase pulled submission (error attached below). The extraxmlns
tag is not present when retrieved from https://stage-api.ona.io; seems it's added during the download processSteps to reproduce the problem
Expected behavior
When submissions are pulled the additional xmlns attribute should not be added to the downloaded submission and the export should complete sucessfully. The extra
xmlns
seems to be the one from thesubmission
node...Other information
xmlns
attributes successfully exports the submissionBriefcase submission XML:
Server XML:
The text was updated successfully, but these errors were encountered: