Different behavior in Orbeon while sending data to HTTP service using GET and POST
Hello,
Recently we noticed different behavior in how Orbeon sends to HTTP service after successfully saving the form. We configured 'save-draft' and 'send' buttons as follows:
Difference between using 'POST' and 'GET' is that in case of 'GET' after save, Orbeon redirects correctly to specified relative URL. However, in case of 'POST' it could not handle relative URL and redirected incorrectly.
Is this a bug? Or Orbeon cannot handle POST to relative URLs in send action?
Re: Different behavior in Orbeon while sending data to HTTP service using GET and POST
Administrator
Hi Rovsh,
Which version of Orbeon Forms are you using? If you're on 4.4 (or newer), I'd recommend you define your own process, in which you use the send action. See:
Re: Different behavior in Orbeon while sending data to HTTP service using GET and POST
This post was updated on .
Hi Alex,
We are using Orbeon ver 4.2. Indeed, we defined our own process for the send, and save-draft buttons as follows:
<property as="xs:string" name="oxf.fr.detail.process.send.*.*" value='require-uploads then require-valid then save then success-message("save-success") then send("oxf.fr.detail.send.success") recover send("oxf.fr.detail.send.error")'/>
<property as="xs:string" name="oxf.fr.detail.process.save-draft.*.*" value='save then success-message("save-draft-success") then send("oxf.fr.detail.save-draft.success") recover send("oxf.fr.detail.send.error")'/>
However, there is a difference between how Orbeon redirects on 'GET' and 'POST'.
Re: Different behavior in Orbeon while sending data to HTTP service using GET and POST
Hi Alex,
We are using Orbeon 4.2 with powerful buttons.
I took a look on the link you sent. Indeed, we defined our own process for the send, and save-draft buttons as follows:
<property as="xs:string" name="oxf.fr.detail.process.send.*.*" value='require-uploads then require-valid then save then success-message("save-success") then send("oxf.fr.detail.send.success") recover send("oxf.fr.detail.send.error")'/>
<property as="xs:string" name="oxf.fr.detail.process.save-draft.*.*" value='save then success-message("save-draft-success") then send("oxf.fr.detail.save-draft.success") recover send("oxf.fr.detail.send.error")'/>
However, there is a difference between how Orbeon redirects on 'GET' and 'POST'.
Re: Different behavior in Orbeon while sending data to HTTP service using GET and POST
Administrator
Hi Rovsh,
And do you think it is a bug? Would be able to check if it is still the case with 4.4? If it is, would you have step that we can follow to reproduce this?
Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet