xforms:submission + oxf.xforms.forward-submission-headers

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

xforms:submission + oxf.xforms.forward-submission-headers

ldeck
Hi there,

I've got the following model which works with orbeon 3.7, but in attempting to update to orbeon 4.3CE is not. 

// properties-local.xml
<property as="xs:string"  name="oxf.xforms.forward-submission-headers" value="Authorization Cookie AnotherHeader OrTwo"/>

// model.xml
<xforms:action ev:event="xforms-model-construct-done">
….    
        <xforms:send submission="check-permissions" />    
</xforms:action>
….

<xforms:submission id="check-permissions"
  method="get"
  serialization="none"
  resource="{xxforms:property('rest.service.uri')}/...."
  replace="none"
  f:url-type="resource"
>
  <xforms:action ev:event="xforms-submit-error">
      <xforms:setvalue ref="instance('parameters-instance')/HasWriteAccess" value="'false'" />
  </xforms:action>
  <xforms:action ev:event="xforms-submit-done">
      <xforms:setvalue ref="instance('parameters-instance')/HasWriteAccess" value="'true'" />
  </xforms:action>
</xforms:submission>   


If anyone's able to point out what I'm missing, that'd be great.

Thanks!
Lachlan


Debug logging under 3.7:
… submission - checking whether optimized submission is allowed {resource: "http://....", noscript: "false", is ajax portlet: "false", is asynchronous: "false", container type: "servlet", norewrite: "false", url type: "resource", local-submission-forward: "true", local-submission-include: "true"}
… submission - skipping optimized submission {reason: "resource URL has protocol", resource: "http://...."}
…. connection - forwarding cookies {cookie: "JSESSIONID=0CCD8C96B5C916C56F9A3CDF6F032A51"}
… connection - forwarding header {name: "Cookie", value: "[Ljava.lang.String;@4aee808a"}
…. ….
…. connection - opening URL connection {URL: "http://..."}
200 response

Debug logging under 4.3:
start submission {id: "check-permissions-and-save-result"}
XPathCache$  - makeObject({xxforms:property('rest.service.uri')}/...)
DEBUG XPathCache$  - makeObject(&)
DEBUG XFormsServer  -             start connecting {type: "regular"}
INFO  ProcessorService  - Session listener - Session created.
DEBUG XFormsServer  -             end connecting {time (ms): "193"}
DEBUG XFormsServer  -             start handling result
DEBUG XFormsServer  -               evaluated model variables {count: "2"}
DEBUG XFormsServer  -             end handling result {time (ms): "1"}
DEBUG XFormsServer  -           end submission {time (ms): "198"}
DEBUG XFormsServer  -           evaluated model variables {count: "2"}
ERROR XFormsServer  -           xforms-submit-error - setting throwable {throwable: "
+----------------------------------------------------------------------------------------------------------------------+
|An Error has Occurred                                                                                                 |
|----------------------------------------------------------------------------------------------------------------------|
|xf:submission for submission id: check-permissions, error code received when submitting instance: 401 |
|----------------------------------------------------------------------------------------------------------------------|
|Application Call Stack                                                                                                |
|----------------------------------------------------------------------------------------------------------------------|
|oxf:/my/app/model.xml                                               |processing submission response| 115|
|??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????|
|element=<xforms:submission id="check-permissions" method="get" serialization="none" resource="{xxforms|
|----------------------------------------------------------------------------------------------------------------------|
|----------------------------------------------------------------------------------------------------------------------|
|Exception: org.orbeon.oxf.xforms.submission.XFormsSubmissionException                                                 |
|----------------------------------------------------------------------------------------------------------------------|
|.orbeon.oxf.xforms.submission.XFormsModelSubmission|getReplacer                   |XFormsModelSubmission.java    | 730|
|rg.orbeon.oxf.xforms.submission.RegularSubmission$1|call                          |RegularSubmission.java        | 101|
|rg.orbeon.oxf.xforms.submission.RegularSubmission$1|call                          |RegularSubmission.java        |  71|
|org.orbeon.oxf.xforms.submission.BaseSubmission    |submitCallable                |BaseSubmission.java           | 100|
|org.orbeon.oxf.xforms.submission.RegularSubmission |connect                       |RegularSubmission.java        | 124|
|.orbeon.oxf.xforms.submission.XFormsModelSubmission|doSubmit                      |XFormsModelSubmission.java    | 464|
|.orbeon.oxf.xforms.submission.XFormsModelSubmission|performDefaultAction          |XFormsModelSubmission.java    | 296|
|.oxf.xforms.event.Dispatch$$anonfun$dispatchEvent$1|apply$mcV$sp                  |Dispatch.scala                | 137|
|.oxf.xforms.event.Dispatch$$anonfun$dispatchEvent$1|apply                         |Dispatch.scala                |  73|
|.oxf.xforms.event.Dispatch$$anonfun$dispatchEvent$1|apply                         |Dispatch.scala                |  73|
|org.orbeon.oxf.xforms.event.Dispatch$              |withEvent$1                   |Dispatch.scala                |  38|
|org.orbeon.oxf.xforms.event.Dispatch$              |dispatchEvent                 |Dispatch.scala                |  72|
|g.orbeon.oxf.xforms.action.actions.XFormsSendAction|execute                       |XFormsSendAction.scala        |  51|
|org.orbeon.oxf.xforms.action.XFormsAction          |execute                       |XFormsAction.scala            |  36|
|rg.orbeon.oxf.xforms.action.XFormsActionInterpreter|runSingleIteration            |XFormsActionInterpreter.java  | 205|
|rg.orbeon.oxf.xforms.action.XFormsActionInterpreter|runAction                     |XFormsActionInterpreter.java  | 151|
|ction.actions.XFormsActionAction$$anonfun$execute$1|apply                         |XFormsActionAction.scala      |  53|
|ction.actions.XFormsActionAction$$anonfun$execute$1|apply                         |XFormsActionAction.scala      |  41|
|scala.collection.Iterator$class                    |foreach                       |Iterator.scala                | 727|
|scala.collection.AbstractIterator                  |foreach                       |Iterator.scala                |1157|

401 response


--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: xforms:submission + oxf.xforms.forward-submission-headers

ldeck
Just some further info:

if the user request is via localhost:8080/mymodule…  no problems.

But if via a apache proxy to somehostname/mymodule   it fails for the newer version of orbeon.


On 20/08/2013, at 11:50 AM, Lachlan Deck <[hidden email]> wrote:

> Hi there,
>
> I've got the following model which works with orbeon 3.7, but in attempting to update to orbeon 4.3CE is not.
>
> // properties-local.xml
> <property as="xs:string"  name="oxf.xforms.forward-submission-headers" value="Authorization Cookie AnotherHeader OrTwo"/>
>
> // model.xml
> <xforms:action ev:event="xforms-model-construct-done">
> ….    
>         <xforms:send submission="check-permissions" />    
> </xforms:action>
> ….
>
> <xforms:submission id="check-permissions"
>   method="get"
>   serialization="none"
>   resource="{xxforms:property('rest.service.uri')}/...."
>   replace="none"
>   f:url-type="resource"
> >
>   <xforms:action ev:event="xforms-submit-error">
>       <xforms:setvalue ref="instance('parameters-instance')/HasWriteAccess" value="'false'" />
>   </xforms:action>
>   <xforms:action ev:event="xforms-submit-done">
>       <xforms:setvalue ref="instance('parameters-instance')/HasWriteAccess" value="'true'" />
>   </xforms:action>
> </xforms:submission>  
>
>
> If anyone's able to point out what I'm missing, that'd be great.
>
> Thanks!
> Lachlan
>
>
> Debug logging under 3.7:
> … submission - checking whether optimized submission is allowed {resource: "http://....", noscript: "false", is ajax portlet: "false", is asynchronous: "false", container type: "servlet", norewrite: "false", url type: "resource", local-submission-forward: "true", local-submission-include: "true"}
> … submission - skipping optimized submission {reason: "resource URL has protocol", resource: "http://...."}
> …. connection - forwarding cookies {cookie: "JSESSIONID=0CCD8C96B5C916C56F9A3CDF6F032A51"}
> … connection - forwarding header {name: "Cookie", value: "[Ljava.lang.String;@4aee808a"}
> …. ….
> …. connection - opening URL connection {URL: "http://..."}
> 200 response
>
> Debug logging under 4.3:
> start submission {id: "check-permissions-and-save-result"}
> XPathCache$  - makeObject({xxforms:property('rest.service.uri')}/...)
> DEBUG XPathCache$  - makeObject(&)
> DEBUG XFormsServer  -             start connecting {type: "regular"}
> INFO  ProcessorService  - Session listener - Session created.
> DEBUG XFormsServer  -             end connecting {time (ms): "193"}
> DEBUG XFormsServer  -             start handling result
> DEBUG XFormsServer  -               evaluated model variables {count: "2"}
> DEBUG XFormsServer  -             end handling result {time (ms): "1"}
> DEBUG XFormsServer  -           end submission {time (ms): "198"}
> DEBUG XFormsServer  -           evaluated model variables {count: "2"}
> ERROR XFormsServer  -           xforms-submit-error - setting throwable {throwable: "
> +----------------------------------------------------------------------------------------------------------------------+
> |An Error has Occurred                                                                                                 |
> |----------------------------------------------------------------------------------------------------------------------|
> |xf:submission for submission id: check-permissions, error code received when submitting instance: 401 |
> |----------------------------------------------------------------------------------------------------------------------|
> |Application Call Stack                                                                                                |
> |----------------------------------------------------------------------------------------------------------------------|
> |oxf:/my/app/model.xml                                               |processing submission response| 115|
> |??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????|
> |element=<xforms:submission id="check-permissions" method="get" serialization="none" resource="{xxforms|
> |----------------------------------------------------------------------------------------------------------------------|
> |----------------------------------------------------------------------------------------------------------------------|
> |Exception: org.orbeon.oxf.xforms.submission.XFormsSubmissionException                                                 |
> |----------------------------------------------------------------------------------------------------------------------|
> |.orbeon.oxf.xforms.submission.XFormsModelSubmission|getReplacer                   |XFormsModelSubmission.java    | 730|
> |rg.orbeon.oxf.xforms.submission.RegularSubmission$1|call                          |RegularSubmission.java        | 101|
> |rg.orbeon.oxf.xforms.submission.RegularSubmission$1|call                          |RegularSubmission.java        |  71|
> |org.orbeon.oxf.xforms.submission.BaseSubmission    |submitCallable                |BaseSubmission.java           | 100|
> |org.orbeon.oxf.xforms.submission.RegularSubmission |connect                       |RegularSubmission.java        | 124|
> |.orbeon.oxf.xforms.submission.XFormsModelSubmission|doSubmit                      |XFormsModelSubmission.java    | 464|
> |.orbeon.oxf.xforms.submission.XFormsModelSubmission|performDefaultAction          |XFormsModelSubmission.java    | 296|
> |.oxf.xforms.event.Dispatch$$anonfun$dispatchEvent$1|apply$mcV$sp                  |Dispatch.scala                | 137|
> |.oxf.xforms.event.Dispatch$$anonfun$dispatchEvent$1|apply                         |Dispatch.scala                |  73|
> |.oxf.xforms.event.Dispatch$$anonfun$dispatchEvent$1|apply                         |Dispatch.scala                |  73|
> |org.orbeon.oxf.xforms.event.Dispatch$              |withEvent$1                   |Dispatch.scala                |  38|
> |org.orbeon.oxf.xforms.event.Dispatch$              |dispatchEvent                 |Dispatch.scala                |  72|
> |g.orbeon.oxf.xforms.action.actions.XFormsSendAction|execute                       |XFormsSendAction.scala        |  51|
> |org.orbeon.oxf.xforms.action.XFormsAction          |execute                       |XFormsAction.scala            |  36|
> |rg.orbeon.oxf.xforms.action.XFormsActionInterpreter|runSingleIteration            |XFormsActionInterpreter.java  | 205|
> |rg.orbeon.oxf.xforms.action.XFormsActionInterpreter|runAction                     |XFormsActionInterpreter.java  | 151|
> |ction.actions.XFormsActionAction$$anonfun$execute$1|apply                         |XFormsActionAction.scala      |  53|
> |ction.actions.XFormsActionAction$$anonfun$execute$1|apply                         |XFormsActionAction.scala      |  41|
> |scala.collection.Iterator$class                    |foreach                       |Iterator.scala                | 727|
> |scala.collection.AbstractIterator                  |foreach                       |Iterator.scala                |1157|
>
> 401 response
>
>

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: xforms:submission + oxf.xforms.forward-submission-headers

Erik Bruchez
Administrator
Lachlan,

Is this still a current issue?

-Erik

On Mon, Aug 19, 2013 at 9:18 PM, Lachlan Deck <[hidden email]> wrote:

> Just some further info:
>
> if the user request is via localhost:8080/mymodule…  no problems.
>
> But if via a apache proxy to somehostname/mymodule   it fails for the newer version of orbeon.
>
>
> On 20/08/2013, at 11:50 AM, Lachlan Deck <[hidden email]> wrote:
>
>> Hi there,
>>
>> I've got the following model which works with orbeon 3.7, but in attempting to update to orbeon 4.3CE is not.
>>
>> // properties-local.xml
>> <property as="xs:string"  name="oxf.xforms.forward-submission-headers" value="Authorization Cookie AnotherHeader OrTwo"/>
>>
>> // model.xml
>> <xforms:action ev:event="xforms-model-construct-done">
>>       ….
>>         <xforms:send submission="check-permissions" />
>> </xforms:action>
>> ….
>>
>> <xforms:submission id="check-permissions"
>>   method="get"
>>   serialization="none"
>>   resource="{xxforms:property('rest.service.uri')}/...."
>>   replace="none"
>>   f:url-type="resource"
>> >
>>   <xforms:action ev:event="xforms-submit-error">
>>       <xforms:setvalue ref="instance('parameters-instance')/HasWriteAccess" value="'false'" />
>>   </xforms:action>
>>   <xforms:action ev:event="xforms-submit-done">
>>       <xforms:setvalue ref="instance('parameters-instance')/HasWriteAccess" value="'true'" />
>>   </xforms:action>
>> </xforms:submission>
>>
>>
>> If anyone's able to point out what I'm missing, that'd be great.
>>
>> Thanks!
>> Lachlan
>>
>>
>> Debug logging under 3.7:
>> … submission - checking whether optimized submission is allowed {resource: "http://....", noscript: "false", is ajax portlet: "false", is asynchronous: "false", container type: "servlet", norewrite: "false", url type: "resource", local-submission-forward: "true", local-submission-include: "true"}
>> … submission - skipping optimized submission {reason: "resource URL has protocol", resource: "http://...."}
>> …. connection - forwarding cookies {cookie: "JSESSIONID=0CCD8C96B5C916C56F9A3CDF6F032A51"}
>> … connection - forwarding header {name: "Cookie", value: "[Ljava.lang.String;@4aee808a"}
>> …. ….
>> …. connection - opening URL connection {URL: "http://..."}
>> 200 response
>>
>> Debug logging under 4.3:
>> start submission {id: "check-permissions-and-save-result"}
>> XPathCache$  - makeObject({xxforms:property('rest.service.uri')}/...)
>> DEBUG XPathCache$  - makeObject(&)
>> DEBUG XFormsServer  -             start connecting {type: "regular"}
>> INFO  ProcessorService  - Session listener - Session created.
>> DEBUG XFormsServer  -             end connecting {time (ms): "193"}
>> DEBUG XFormsServer  -             start handling result
>> DEBUG XFormsServer  -               evaluated model variables {count: "2"}
>> DEBUG XFormsServer  -             end handling result {time (ms): "1"}
>> DEBUG XFormsServer  -           end submission {time (ms): "198"}
>> DEBUG XFormsServer  -           evaluated model variables {count: "2"}
>> ERROR XFormsServer  -           xforms-submit-error - setting throwable {throwable: "
>> +----------------------------------------------------------------------------------------------------------------------+
>> |An Error has Occurred                                                                                                 |
>> |----------------------------------------------------------------------------------------------------------------------|
>> |xf:submission for submission id: check-permissions, error code received when submitting instance: 401 |
>> |----------------------------------------------------------------------------------------------------------------------|
>> |Application Call Stack                                                                                                |
>> |----------------------------------------------------------------------------------------------------------------------|
>> |oxf:/my/app/model.xml                                               |processing submission response| 115|
>> |??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????|
>> |element=<xforms:submission id="check-permissions" method="get" serialization="none" resource="{xxforms|
>> |----------------------------------------------------------------------------------------------------------------------|
>> |----------------------------------------------------------------------------------------------------------------------|
>> |Exception: org.orbeon.oxf.xforms.submission.XFormsSubmissionException                                                 |
>> |----------------------------------------------------------------------------------------------------------------------|
>> |.orbeon.oxf.xforms.submission.XFormsModelSubmission|getReplacer                   |XFormsModelSubmission.java    | 730|
>> |rg.orbeon.oxf.xforms.submission.RegularSubmission$1|call                          |RegularSubmission.java        | 101|
>> |rg.orbeon.oxf.xforms.submission.RegularSubmission$1|call                          |RegularSubmission.java        |  71|
>> |org.orbeon.oxf.xforms.submission.BaseSubmission    |submitCallable                |BaseSubmission.java           | 100|
>> |org.orbeon.oxf.xforms.submission.RegularSubmission |connect                       |RegularSubmission.java        | 124|
>> |.orbeon.oxf.xforms.submission.XFormsModelSubmission|doSubmit                      |XFormsModelSubmission.java    | 464|
>> |.orbeon.oxf.xforms.submission.XFormsModelSubmission|performDefaultAction          |XFormsModelSubmission.java    | 296|
>> |.oxf.xforms.event.Dispatch$$anonfun$dispatchEvent$1|apply$mcV$sp                  |Dispatch.scala                | 137|
>> |.oxf.xforms.event.Dispatch$$anonfun$dispatchEvent$1|apply                         |Dispatch.scala                |  73|
>> |.oxf.xforms.event.Dispatch$$anonfun$dispatchEvent$1|apply                         |Dispatch.scala                |  73|
>> |org.orbeon.oxf.xforms.event.Dispatch$              |withEvent$1                   |Dispatch.scala                |  38|
>> |org.orbeon.oxf.xforms.event.Dispatch$              |dispatchEvent                 |Dispatch.scala                |  72|
>> |g.orbeon.oxf.xforms.action.actions.XFormsSendAction|execute                       |XFormsSendAction.scala        |  51|
>> |org.orbeon.oxf.xforms.action.XFormsAction          |execute                       |XFormsAction.scala            |  36|
>> |rg.orbeon.oxf.xforms.action.XFormsActionInterpreter|runSingleIteration            |XFormsActionInterpreter.java  | 205|
>> |rg.orbeon.oxf.xforms.action.XFormsActionInterpreter|runAction                     |XFormsActionInterpreter.java  | 151|
>> |ction.actions.XFormsActionAction$$anonfun$execute$1|apply                         |XFormsActionAction.scala      |  53|
>> |ction.actions.XFormsActionAction$$anonfun$execute$1|apply                         |XFormsActionAction.scala      |  41|
>> |scala.collection.Iterator$class                    |foreach                       |Iterator.scala                | 727|
>> |scala.collection.AbstractIterator                  |foreach                       |Iterator.scala                |1157|
>>
>> 401 response
>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
> To post to this group, send email to [hidden email].

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: xforms:submission + oxf.xforms.forward-submission-headers

ldeck
Our rest service that was previously demanding case-sensitive headers has been fixed. So for us the problem is solved outside of orbeon.

But, yes with 4.3 Orbeon is changing the case of the headers listed.
>>> <property as="xs:string"  name="oxf.xforms.forward-submission-headers" value="Authorization Cookie AnotherHeader OrTwo"/>

so with the above headers, "AnotherHeader" becomes "Anotherheader" and so on.


On 12/09/2013, at 2:48 AM, Erik Bruchez <[hidden email]> wrote:

> Lachlan,
>
> Is this still a current issue?
>
> -Erik
>
> On Mon, Aug 19, 2013 at 9:18 PM, Lachlan Deck <[hidden email]> wrote:
>> Just some further info:
>>
>> if the user request is via localhost:8080/mymodule…  no problems.
>>
>> But if via a apache proxy to somehostname/mymodule   it fails for the newer version of orbeon.
>>
>>
>> On 20/08/2013, at 11:50 AM, Lachlan Deck <[hidden email]> wrote:
>>
>>> Hi there,
>>>
>>> I've got the following model which works with orbeon 3.7, but in attempting to update to orbeon 4.3CE is not.
>>>
>>> // properties-local.xml
>>> <property as="xs:string"  name="oxf.xforms.forward-submission-headers" value="Authorization Cookie AnotherHeader OrTwo"/>
>>>
>>> // model.xml
>>> <xforms:action ev:event="xforms-model-construct-done">
>>>      ….
>>>        <xforms:send submission="check-permissions" />
>>> </xforms:action>
>>> ….
>>>
>>> <xforms:submission id="check-permissions"
>>>  method="get"
>>>  serialization="none"
>>>  resource="{xxforms:property('rest.service.uri')}/...."
>>>  replace="none"
>>>  f:url-type="resource"
>>>>
>>>  <xforms:action ev:event="xforms-submit-error">
>>>      <xforms:setvalue ref="instance('parameters-instance')/HasWriteAccess" value="'false'" />
>>>  </xforms:action>
>>>  <xforms:action ev:event="xforms-submit-done">
>>>      <xforms:setvalue ref="instance('parameters-instance')/HasWriteAccess" value="'true'" />
>>>  </xforms:action>
>>> </xforms:submission>
>>>
>>>
>>> If anyone's able to point out what I'm missing, that'd be great.
>>>
>>> Thanks!
>>> Lachlan
>>>
>>>
>>> Debug logging under 3.7:
>>> … submission - checking whether optimized submission is allowed {resource: "http://....", noscript: "false", is ajax portlet: "false", is asynchronous: "false", container type: "servlet", norewrite: "false", url type: "resource", local-submission-forward: "true", local-submission-include: "true"}
>>> … submission - skipping optimized submission {reason: "resource URL has protocol", resource: "http://...."}
>>> …. connection - forwarding cookies {cookie: "JSESSIONID=0CCD8C96B5C916C56F9A3CDF6F032A51"}
>>> … connection - forwarding header {name: "Cookie", value: "[Ljava.lang.String;@4aee808a"}
>>> …. ….
>>> …. connection - opening URL connection {URL: "http://..."}
>>> 200 response
>>>
>>> Debug logging under 4.3:
>>> start submission {id: "check-permissions-and-save-result"}
>>> XPathCache$  - makeObject({xxforms:property('rest.service.uri')}/...)
>>> DEBUG XPathCache$  - makeObject(&)
>>> DEBUG XFormsServer  -             start connecting {type: "regular"}
>>> INFO  ProcessorService  - Session listener - Session created.
>>> DEBUG XFormsServer  -             end connecting {time (ms): "193"}
>>> DEBUG XFormsServer  -             start handling result
>>> DEBUG XFormsServer  -               evaluated model variables {count: "2"}
>>> DEBUG XFormsServer  -             end handling result {time (ms): "1"}
>>> DEBUG XFormsServer  -           end submission {time (ms): "198"}
>>> DEBUG XFormsServer  -           evaluated model variables {count: "2"}
>>> ERROR XFormsServer  -           xforms-submit-error - setting throwable {throwable: "
>>> +----------------------------------------------------------------------------------------------------------------------+
>>> |An Error has Occurred                                                                                                 |
>>> |----------------------------------------------------------------------------------------------------------------------|
>>> |xf:submission for submission id: check-permissions, error code received when submitting instance: 401 |
>>> |----------------------------------------------------------------------------------------------------------------------|
>>> |Application Call Stack                                                                                                |
>>> |----------------------------------------------------------------------------------------------------------------------|
>>> |oxf:/my/app/model.xml                                               |processing submission response| 115|
>>> |??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????|
>>> |element=<xforms:submission id="check-permissions" method="get" serialization="none" resource="{xxforms|
>>> |----------------------------------------------------------------------------------------------------------------------|
>>> |----------------------------------------------------------------------------------------------------------------------|
>>> |Exception: org.orbeon.oxf.xforms.submission.XFormsSubmissionException                                                 |
>>> |----------------------------------------------------------------------------------------------------------------------|
>>> |.orbeon.oxf.xforms.submission.XFormsModelSubmission|getReplacer                   |XFormsModelSubmission.java    | 730|
>>> |rg.orbeon.oxf.xforms.submission.RegularSubmission$1|call                          |RegularSubmission.java        | 101|
>>> |rg.orbeon.oxf.xforms.submission.RegularSubmission$1|call                          |RegularSubmission.java        |  71|
>>> |org.orbeon.oxf.xforms.submission.BaseSubmission    |submitCallable                |BaseSubmission.java           | 100|
>>> |org.orbeon.oxf.xforms.submission.RegularSubmission |connect                       |RegularSubmission.java        | 124|
>>> |.orbeon.oxf.xforms.submission.XFormsModelSubmission|doSubmit                      |XFormsModelSubmission.java    | 464|
>>> |.orbeon.oxf.xforms.submission.XFormsModelSubmission|performDefaultAction          |XFormsModelSubmission.java    | 296|
>>> |.oxf.xforms.event.Dispatch$$anonfun$dispatchEvent$1|apply$mcV$sp                  |Dispatch.scala                | 137|
>>> |.oxf.xforms.event.Dispatch$$anonfun$dispatchEvent$1|apply                         |Dispatch.scala                |  73|
>>> |.oxf.xforms.event.Dispatch$$anonfun$dispatchEvent$1|apply                         |Dispatch.scala                |  73|
>>> |org.orbeon.oxf.xforms.event.Dispatch$              |withEvent$1                   |Dispatch.scala                |  38|
>>> |org.orbeon.oxf.xforms.event.Dispatch$              |dispatchEvent                 |Dispatch.scala                |  72|
>>> |g.orbeon.oxf.xforms.action.actions.XFormsSendAction|execute                       |XFormsSendAction.scala        |  51|
>>> |org.orbeon.oxf.xforms.action.XFormsAction          |execute                       |XFormsAction.scala            |  36|
>>> |rg.orbeon.oxf.xforms.action.XFormsActionInterpreter|runSingleIteration            |XFormsActionInterpreter.java  | 205|
>>> |rg.orbeon.oxf.xforms.action.XFormsActionInterpreter|runAction                     |XFormsActionInterpreter.java  | 151|
>>> |ction.actions.XFormsActionAction$$anonfun$execute$1|apply                         |XFormsActionAction.scala      |  53|
>>> |ction.actions.XFormsActionAction$$anonfun$execute$1|apply                         |XFormsActionAction.scala      |  41|
>>> |scala.collection.Iterator$class                    |foreach                       |Iterator.scala                | 727|
>>> |scala.collection.AbstractIterator                  |foreach                       |Iterator.scala                |1157|
>>>
>>> 401 response
>>>
>>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
>> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
>> To post to this group, send email to [hidden email].
>
> --
> You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
> To post to this group, send email to [hidden email].

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: xforms:submission + oxf.xforms.forward-submission-headers

Erik Bruchez
Administrator
Ok thanks, glad to see that you have a workaround. And the other issue
we know about.

-Erik

On Wed, Sep 11, 2013 at 2:58 PM, Lachlan Deck <[hidden email]> wrote:

> Our rest service that was previously demanding case-sensitive headers has been fixed. So for us the problem is solved outside of orbeon.
>
> But, yes with 4.3 Orbeon is changing the case of the headers listed.
>>>> <property as="xs:string"  name="oxf.xforms.forward-submission-headers" value="Authorization Cookie AnotherHeader OrTwo"/>
>
> so with the above headers, "AnotherHeader" becomes "Anotherheader" and so on.
>
>
> On 12/09/2013, at 2:48 AM, Erik Bruchez <[hidden email]> wrote:
>
>> Lachlan,
>>
>> Is this still a current issue?
>>
>> -Erik
>>
>> On Mon, Aug 19, 2013 at 9:18 PM, Lachlan Deck <[hidden email]> wrote:
>>> Just some further info:
>>>
>>> if the user request is via localhost:8080/mymodule…  no problems.
>>>
>>> But if via a apache proxy to somehostname/mymodule   it fails for the newer version of orbeon.
>>>
>>>
>>> On 20/08/2013, at 11:50 AM, Lachlan Deck <[hidden email]> wrote:
>>>
>>>> Hi there,
>>>>
>>>> I've got the following model which works with orbeon 3.7, but in attempting to update to orbeon 4.3CE is not.
>>>>
>>>> // properties-local.xml
>>>> <property as="xs:string"  name="oxf.xforms.forward-submission-headers" value="Authorization Cookie AnotherHeader OrTwo"/>
>>>>
>>>> // model.xml
>>>> <xforms:action ev:event="xforms-model-construct-done">
>>>>      ….
>>>>        <xforms:send submission="check-permissions" />
>>>> </xforms:action>
>>>> ….
>>>>
>>>> <xforms:submission id="check-permissions"
>>>>  method="get"
>>>>  serialization="none"
>>>>  resource="{xxforms:property('rest.service.uri')}/...."
>>>>  replace="none"
>>>>  f:url-type="resource"
>>>>>
>>>>  <xforms:action ev:event="xforms-submit-error">
>>>>      <xforms:setvalue ref="instance('parameters-instance')/HasWriteAccess" value="'false'" />
>>>>  </xforms:action>
>>>>  <xforms:action ev:event="xforms-submit-done">
>>>>      <xforms:setvalue ref="instance('parameters-instance')/HasWriteAccess" value="'true'" />
>>>>  </xforms:action>
>>>> </xforms:submission>
>>>>
>>>>
>>>> If anyone's able to point out what I'm missing, that'd be great.
>>>>
>>>> Thanks!
>>>> Lachlan
>>>>
>>>>
>>>> Debug logging under 3.7:
>>>> … submission - checking whether optimized submission is allowed {resource: "http://....", noscript: "false", is ajax portlet: "false", is asynchronous: "false", container type: "servlet", norewrite: "false", url type: "resource", local-submission-forward: "true", local-submission-include: "true"}
>>>> … submission - skipping optimized submission {reason: "resource URL has protocol", resource: "http://...."}
>>>> …. connection - forwarding cookies {cookie: "JSESSIONID=0CCD8C96B5C916C56F9A3CDF6F032A51"}
>>>> … connection - forwarding header {name: "Cookie", value: "[Ljava.lang.String;@4aee808a"}
>>>> …. ….
>>>> …. connection - opening URL connection {URL: "http://..."}
>>>> 200 response
>>>>
>>>> Debug logging under 4.3:
>>>> start submission {id: "check-permissions-and-save-result"}
>>>> XPathCache$  - makeObject({xxforms:property('rest.service.uri')}/...)
>>>> DEBUG XPathCache$  - makeObject(&)
>>>> DEBUG XFormsServer  -             start connecting {type: "regular"}
>>>> INFO  ProcessorService  - Session listener - Session created.
>>>> DEBUG XFormsServer  -             end connecting {time (ms): "193"}
>>>> DEBUG XFormsServer  -             start handling result
>>>> DEBUG XFormsServer  -               evaluated model variables {count: "2"}
>>>> DEBUG XFormsServer  -             end handling result {time (ms): "1"}
>>>> DEBUG XFormsServer  -           end submission {time (ms): "198"}
>>>> DEBUG XFormsServer  -           evaluated model variables {count: "2"}
>>>> ERROR XFormsServer  -           xforms-submit-error - setting throwable {throwable: "
>>>> +----------------------------------------------------------------------------------------------------------------------+
>>>> |An Error has Occurred                                                                                                 |
>>>> |----------------------------------------------------------------------------------------------------------------------|
>>>> |xf:submission for submission id: check-permissions, error code received when submitting instance: 401 |
>>>> |----------------------------------------------------------------------------------------------------------------------|
>>>> |Application Call Stack                                                                                                |
>>>> |----------------------------------------------------------------------------------------------------------------------|
>>>> |oxf:/my/app/model.xml                                               |processing submission response| 115|
>>>> |??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????|
>>>> |element=<xforms:submission id="check-permissions" method="get" serialization="none" resource="{xxforms|
>>>> |----------------------------------------------------------------------------------------------------------------------|
>>>> |----------------------------------------------------------------------------------------------------------------------|
>>>> |Exception: org.orbeon.oxf.xforms.submission.XFormsSubmissionException                                                 |
>>>> |----------------------------------------------------------------------------------------------------------------------|
>>>> |.orbeon.oxf.xforms.submission.XFormsModelSubmission|getReplacer                   |XFormsModelSubmission.java    | 730|
>>>> |rg.orbeon.oxf.xforms.submission.RegularSubmission$1|call                          |RegularSubmission.java        | 101|
>>>> |rg.orbeon.oxf.xforms.submission.RegularSubmission$1|call                          |RegularSubmission.java        |  71|
>>>> |org.orbeon.oxf.xforms.submission.BaseSubmission    |submitCallable                |BaseSubmission.java           | 100|
>>>> |org.orbeon.oxf.xforms.submission.RegularSubmission |connect                       |RegularSubmission.java        | 124|
>>>> |.orbeon.oxf.xforms.submission.XFormsModelSubmission|doSubmit                      |XFormsModelSubmission.java    | 464|
>>>> |.orbeon.oxf.xforms.submission.XFormsModelSubmission|performDefaultAction          |XFormsModelSubmission.java    | 296|
>>>> |.oxf.xforms.event.Dispatch$$anonfun$dispatchEvent$1|apply$mcV$sp                  |Dispatch.scala                | 137|
>>>> |.oxf.xforms.event.Dispatch$$anonfun$dispatchEvent$1|apply                         |Dispatch.scala                |  73|
>>>> |.oxf.xforms.event.Dispatch$$anonfun$dispatchEvent$1|apply                         |Dispatch.scala                |  73|
>>>> |org.orbeon.oxf.xforms.event.Dispatch$              |withEvent$1                   |Dispatch.scala                |  38|
>>>> |org.orbeon.oxf.xforms.event.Dispatch$              |dispatchEvent                 |Dispatch.scala                |  72|
>>>> |g.orbeon.oxf.xforms.action.actions.XFormsSendAction|execute                       |XFormsSendAction.scala        |  51|
>>>> |org.orbeon.oxf.xforms.action.XFormsAction          |execute                       |XFormsAction.scala            |  36|
>>>> |rg.orbeon.oxf.xforms.action.XFormsActionInterpreter|runSingleIteration            |XFormsActionInterpreter.java  | 205|
>>>> |rg.orbeon.oxf.xforms.action.XFormsActionInterpreter|runAction                     |XFormsActionInterpreter.java  | 151|
>>>> |ction.actions.XFormsActionAction$$anonfun$execute$1|apply                         |XFormsActionAction.scala      |  53|
>>>> |ction.actions.XFormsActionAction$$anonfun$execute$1|apply                         |XFormsActionAction.scala      |  41|
>>>> |scala.collection.Iterator$class                    |foreach                       |Iterator.scala                | 727|
>>>> |scala.collection.AbstractIterator                  |foreach                       |Iterator.scala                |1157|
>>>>
>>>> 401 response
>>>>
>>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
>>> To post to this group, send email to [hidden email].
>>
>> --
>> You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
>> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
>> To post to this group, send email to [hidden email].
>
> --
> You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
> To post to this group, send email to [hidden email].

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].