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
XML attached to email is always in edge
data format
#5911
Comments
However, because The current problem is probably occurring from a user upgrading from Orbeon Forms 2018.2 to Orbeon Forms 2022.1. So the data format used was probably 4.8.0. Not changing the format is not great, because of this issue. Changing it to 4.0.0 could break things for more users.
|
There is a problem sending internally the XML in the 4.0.0 format or 4.8.0 format. The data is used by The bind hierarchy comes from the XHTML of the form definition. This means the form definition could follow the 4.0.0, 4.8.0, or 2019.1.0 format. This should be the case only if the form has been republished/upgraded, but that is a common scenario. This means that things can break and we need a better solution. |
The solution is to migrate the form data to the desired format separately. |
|
When we call the
It's "interesting" to see what happens with the data format in these cases. For the uses that run the form, there needs to be agreement between the XML data format sent and received. Right now, the "edge" format is hardcoded and the intent is that the form data is converted to "edge", sent, received on the other side ( Now, "edge" means the latest format supported by Orbeon Forms, which is right now But a form definition can be, even with the latest Orbeon Forms version, still in 4.8.0 format, because form definitions are migrated to "edge" only when loaded in Form Builder or explicitly upgraded from the Admin page. If, for a form definition in 4.8.0 format, you ask to migrate to the "edge" ( For correctness and sanity purposes, we should fix that and use the version from |
Documented the new |
We implement the POST of the data to the email service as a mode change, which always passes the data in
DataFormatVersion.Edge
format.The text was updated successfully, but these errors were encountered: