Normally I can see
the client's request headers using the oxf:request
processor.
But using the
oxf:request processor in a pipeline that's picking up an xforms submission (ie
page-flow.xml picking up the @resource URL from the xmforms:submission), the
headers look like they're coming from the machine running Orbeon Forms - not the
client that made the submission - is there some way of passing through the
request details from the client?
(eg remote-host is
showing the Orbeon Forms machine, not the IP of the client,
etc)
Steve
-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
Steve,
On Mar 4, 2009, at 4:15 PM, Steve Bayliss wrote: > Normally I can see the client's request headers using the > oxf:request processor. > > But using the oxf:request processor in a pipeline that's picking up > an xforms submission (ie page-flow.xml picking up the @resource URL > from the xmforms:submission), the headers look like they're coming > from the machine running Orbeon Forms - not the client that made the > submission - is there some way of passing through the request > details from the client? > > (eg remote-host is showing the Orbeon Forms machine, not the IP of > the client, etc) Are you getting to that target page after a submission replace="all"? If you are, if you have a recent nightly build, and if you have the property oxf.xforms.local-submission-forward set to true (which is the default), the request you see should come from the browser and not the server. (You need to make sure that an "optimized submission" is done. With recent builds you will find more information in the log telling you what happens when a submission is performed.) Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/avernet -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Alex
Thanks for that. I don't see an oxf.xforms.local-submission-forward property, so I guess I'm on a build previous to this feature - so that sounds like I'll need to upgrade. You ask if I have a submission with replace="all" - I have replace="instance"; looking at the docs on this, this should also work ok? (I have essentially one instance with some user-entered query parameters, and another instance for the search results - so my submission submits the query parameters, and gets the results back to a different instance. Though theoretically these two instances can be combined, it seems much cleaner to separate them). Regards Steve -----Original Message----- From: Alessandro Vernet [mailto:[hidden email]] Sent: 05 March 2009 02:14 To: [hidden email] Subject: [ops-users] Re: xforms submissions and request headers Steve, On Mar 4, 2009, at 4:15 PM, Steve Bayliss wrote: > Normally I can see the client's request headers using the > oxf:request processor. > > But using the oxf:request processor in a pipeline that's picking up > an xforms submission (ie page-flow.xml picking up the @resource URL > from the xmforms:submission), the headers look like they're coming > from the machine running Orbeon Forms - not the client that made the > submission - is there some way of passing through the request > details from the client? > > (eg remote-host is showing the Orbeon Forms machine, not the IP of > the client, etc) Are you getting to that target page after a submission replace="all"? If you are, if you have a recent nightly build, and if you have the property oxf.xforms.local-submission-forward set to true (which is the default), the request you see should come from the browser and not the server. (You need to make sure that an "optimized submission" is done. With recent builds you will find more information in the log telling you what happens when a submission is performed.) Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/avernet -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Alex
Now tried with the latest nightly - still no luck. local-submission-forward is true, but I'm using replace="instance" I can set headers in the submission using xforms:header/xforms:name etc - these are getting through. So I can fudge it by including the request headers in the data to the page, and then including these headers in the submission... Regards Steve -----Original Message----- From: Steve Bayliss [mailto:[hidden email]] Sent: 05 March 2009 09:32 To: [hidden email] Subject: [ops-users] RE: Re: xforms submissions and request headers Alex Thanks for that. I don't see an oxf.xforms.local-submission-forward property, so I guess I'm on a build previous to this feature - so that sounds like I'll need to upgrade. You ask if I have a submission with replace="all" - I have replace="instance"; looking at the docs on this, this should also work ok? (I have essentially one instance with some user-entered query parameters, and another instance for the search results - so my submission submits the query parameters, and gets the results back to a different instance. Though theoretically these two instances can be combined, it seems much cleaner to separate them). Regards Steve -----Original Message----- From: Alessandro Vernet [mailto:[hidden email]] Sent: 05 March 2009 02:14 To: [hidden email] Subject: [ops-users] Re: xforms submissions and request headers Steve, On Mar 4, 2009, at 4:15 PM, Steve Bayliss wrote: > Normally I can see the client's request headers using the oxf:request > processor. > > But using the oxf:request processor in a pipeline that's picking up an > xforms submission (ie page-flow.xml picking up the @resource URL > from the xmforms:submission), the headers look like they're coming > from the machine running Orbeon Forms - not the client that made the > submission - is there some way of passing through the request > details from the client? > > (eg remote-host is showing the Orbeon Forms machine, not the IP of the > client, etc) Are you getting to that target page after a submission replace="all"? If you are, if you have a recent nightly build, and if you have the property oxf.xforms.local-submission-forward set to true (which is the default), the request you see should come from the browser and not the server. (You need to make sure that an "optimized submission" is done. With recent builds you will find more information in the log telling you what happens when a submission is performed.) Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/avernet -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
Steve,
On Mar 5, 2009, at 4:40 AM, Steve Bayliss wrote: > Now tried with the latest nightly - still no luck. local-submission- > forward > is true, but I'm using replace="instance" To optimize submissions replace="instance" you need to set oxf.xforms.local-submission-include to true. Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/avernet -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
>> Now tried with the latest nightly - still no luck. local-
>> submission-forward >> is true, but I'm using replace="instance" > > To optimize submissions replace="instance" you need to set > oxf.xforms.local-submission-include to true. And check the doc here : http://www.orbeon.com/ops/doc/reference-xforms-configuration#local-submissions -Erik -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Still no joy - I have oxf.xforms.local-submission-include set to true. And
I've tried oxf.xforms.forward-submission-headers naming the specific headers I want. -----Original Message----- From: Erik Bruchez [mailto:[hidden email]] Sent: 06 March 2009 02:45 To: [hidden email] Subject: [ops-users] Re: xforms submissions and request headers >> Now tried with the latest nightly - still no luck. local- >> submission-forward >> is true, but I'm using replace="instance" > > To optimize submissions replace="instance" you need to set > oxf.xforms.local-submission-include to true. And check the doc here : http://www.orbeon.com/ops/doc/reference-xforms-configuration#local-submissio ns -Erik -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
Steve,
On Mar 5, 2009, at 11:05 PM, Steve Bayliss wrote: > Still no joy - I have oxf.xforms.local-submission-include set to > true. And > I've tried oxf.xforms.forward-submission-headers naming the specific > headers > I want. I think we'd have to test this locally to sort this out. Would you be able to create a little package that we could put in the app directory and that you can share with us so we can reproduce this issue here? Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/avernet -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |