Hi, I'm using orbeon 3.6 and I'm having the following problem.
<xxf:submission action="<A HREF="http://">http://my_internal_server:7001/app/xforms-server" method="POST"
Instead it should send
The result is that the submission is then sent to the wrong url and the file is not uploaded. I also get a javascript error (Firebug):
Is this a problem with orbeon or a problem with the reverse proxy configuration? Antoine -- 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 |
Hi,
I found the problem.
In XFormsServer.java I had to remove the action attribute
and rebuild orbeon.
It seems OK now.
Thanks,
Antoine
-- 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
|
Yes and I think this has now been changed in recent versions.
-Erik On Jan 14, 2009, at 4:18 AM, <Antoine.DE- [hidden email]> <[hidden email] > wrote: > Hi, > > I found the problem. > > In XFormsServer.java I had to remove the action attribute and > rebuild orbeon. > It seems OK now. > > Thanks, > Antoine > > > > From: [hidden email] [mailto:[hidden email] > ] > Sent: Wednesday, January 14, 2009 11:04 AM > To: [hidden email] > Subject: [ops-users] File upload is not working behind a reverse proxy > > Hi, > > I'm using orbeon 3.6 and I'm having the following problem. > Our internal server is located behind a reverse proxy, when trying > to use the file upload control orbeon seems to be sending a request > to the server. The response to this request contains the following: > > <xxf:submission action="http://my_internal_server:7001/app/xforms- > server" method="POST" > replace="instance"/> > > Instead it should send > <xxf:submission action="https://my_public_url/app/xforms-server" > method="POST" > replace="instance"/> > > > The result is that the submission is then sent to the wrong url and > the file is not uploaded. > > I also get a javascript error (Firebug): > o.responseText has no properties > var xmlString = o.responseText.replace(/</g, "<").replace(/>/ > g... > > > Is this a problem with orbeon or a problem with the reverse proxy > configuration? > > > > Antoine > > > -- > 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 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
|
In reply to this post by Antoine.DE-TROOSTEMBERGH
Antoine,
On Jan 14, 2009, at 4:18 AM, <Antoine.DE- [hidden email]> <[hidden email] > wrote: > I found the problem. > > In XFormsServer.java I had to remove the action attribute and > rebuild orbeon. > It seems OK now. Are you saying that you had a do a chance to Orbeon Forms this to work? 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 |
Well, unfortunately no. I was still using the sources of 3.7 :-(
It is still not working, do you know what else I should do to make this work? Or is it realy too much trouble? We realy do not want to migrating to 3.7 until the final release is out. Antoine -----Original Message----- From: Alessandro Vernet [mailto:[hidden email]] Sent: Thursday, January 15, 2009 3:16 AM To: [hidden email] Subject: [ops-users] Re: RE: File upload is not working behind a reverse proxy Antoine, On Jan 14, 2009, at 4:18 AM, <Antoine.DE- [hidden email]> <[hidden email] > wrote: > I found the problem. > > In XFormsServer.java I had to remove the action attribute and > rebuild orbeon. > It seems OK now. Are you saying that you had a do a chance to Orbeon Forms this to work? 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
|
On Jan 15, 2009, at 12:32 AM, <Antoine.DE-
[hidden email]> <[hidden email] > wrote: > Well, unfortunately no. I was still using the sources of 3.7 :-( > It is still not working, do you know what else I should do to make > this work? Or is it realy too much trouble? You're saying that the change to Orbeon Forms you mentioned earlier in this thread didn't have the expected effect; is that right? 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 |
Yes, that's it.
What I've done now is to put the correct url in the nef properties file and get it from there. This means it is "hard coded" somewhere, which is not great. If you have a clean solution for this it would be great. Antoine -----Original Message----- From: Alessandro Vernet [mailto:[hidden email]] Sent: Thursday, January 22, 2009 4:01 AM To: [hidden email] Subject: [ops-users] Re: RE: Re: RE: File upload is not working behind a reverse proxy On Jan 15, 2009, at 12:32 AM, <Antoine.DE- [hidden email]> <[hidden email] > wrote: > Well, unfortunately no. I was still using the sources of 3.7 :-( > It is still not working, do you know what else I should do to make > this work? Or is it realy too much trouble? You're saying that the change to Orbeon Forms you mentioned earlier in this thread didn't have the expected effect; is that right? 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
|
On Jan 22, 2009, at 2:19 AM, <Antoine.DE-
[hidden email]> <[hidden email] > wrote: > What I've done now is to put the correct url in the nef properties > file and get it from there. > This means it is "hard coded" somewhere, which is not great. What is the "nef properties file" you're referring to? Are we still talking about the upload issue in noscript mode? Independently from the reverse proxy, some quick testing I did locally convinced me that the upload control in noscript mode is not working right now. Do you see something different in the version you are using? 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 |
I'm not talking about the noscript mode but the normal mode.
The problem is that we have the following architecture: Reverse-proxy.url | | v Load-balancing.url / \ / \ Internal-server-1.url Internal-server-2.url Users from the "inside" acces the application through the Load-balancing.url and user from the "outside" through the Reverse-proxy.url From the inside everything is working well. But for the outside when doing a file upload orbeon tells the browser to do a submit on a url (got with externalContext.getRequest().getRequestURL() ) but the problem is that for orbeon the server url is Load-balancing.url and not Reverse-proxy.url so the client is doing a submit to an internal url that does not exist on the internet! What I did now is to remove the externalContext.getRequest().getRequestURL() and replace it with externalContext.getRequest().getContextPath() + "/xforms-server" So now instead off doing the submit to http://Internal-server.url/app/xforms-server I do a submit to /app/xforms-server, which should always be correct. I hope I have not broken anything else in doing this but I seems to be working. Antoine -----Original Message----- From: Alessandro Vernet [mailto:[hidden email]] Sent: Friday, January 23, 2009 3:23 AM To: [hidden email] Subject: [ops-users] Re: RE: Re: RE: Re: RE: File upload is not working behind a reverse proxy On Jan 22, 2009, at 2:19 AM, <Antoine.DE- [hidden email]> <[hidden email] > wrote: > What I've done now is to put the correct url in the nef properties > file and get it from there. > This means it is "hard coded" somewhere, which is not great. What is the "nef properties file" you're referring to? Are we still talking about the upload issue in noscript mode? Independently from the reverse proxy, some quick testing I did locally convinced me that the upload control in noscript mode is not working right now. Do you see something different in the version you are using? 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
|
That sounds good. You haven't checked if this works out of the box
with a current nightly build, right? -Erik On Jan 23, 2009, at 1:19 AM, <Antoine.DE- [hidden email]> <[hidden email] > wrote: > I'm not talking about the noscript mode but the normal mode. > > The problem is that we have the following architecture: > > Reverse-proxy.url > | > | > v > Load-balancing.url > / \ > / \ > Internal-server-1.url Internal-server-2.url > > Users from the "inside" acces the application through the Load- > balancing.url and user from the "outside" through the Reverse- > proxy.url > From the inside everything is working well. > > But for the outside when doing a file upload orbeon tells the > browser to do a submit on a url (got with > externalContext.getRequest().getRequestURL() ) but the problem is > that for orbeon the server url is Load-balancing.url and not Reverse- > proxy.url so the client is doing a submit to an internal url that > does not exist on the internet! > > What I did now is to remove the > externalContext.getRequest().getRequestURL() and replace it with > externalContext.getRequest().getContextPath() + "/xforms-server" > > So now instead off doing the submit to http://Internal-server.url/app/xforms-server > I do a submit to /app/xforms-server, which should always be correct. > > I hope I have not broken anything else in doing this but I seems to > be working. > > > Antoine > > -----Original Message----- > From: Alessandro Vernet [mailto:[hidden email]] > Sent: Friday, January 23, 2009 3:23 AM > To: [hidden email] > Subject: [ops-users] Re: RE: Re: RE: Re: RE: File upload is not > working behind a reverse proxy > > On Jan 22, 2009, at 2:19 AM, <Antoine.DE- > [hidden email]> <[hidden email] >> wrote: > >> What I've done now is to put the correct url in the nef properties >> file and get it from there. >> This means it is "hard coded" somewhere, which is not great. > > What is the "nef properties file" you're referring to? Are we still > talking about the upload issue in noscript mode? > > Independently from the reverse proxy, some quick testing I did locally > convinced me that the upload control in noscript mode is not working > right now. Do you see something different in the version you are > using? > > 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 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 |
Yes it does, but we do not want to update to a beta version, so whenever you are ready to have a final version out ...
Thanks, Antoine -----Original Message----- From: Erik Bruchez [mailto:[hidden email]] Sent: Friday, January 23, 2009 6:59 PM To: [hidden email] Subject: [ops-users] Re: RE: Re: RE: Re: RE: Re: RE: File upload is not working behind a reverse proxy That sounds good. You haven't checked if this works out of the box with a current nightly build, right? -Erik On Jan 23, 2009, at 1:19 AM, <Antoine.DE- [hidden email]> <[hidden email] > wrote: > I'm not talking about the noscript mode but the normal mode. > > The problem is that we have the following architecture: > > Reverse-proxy.url > | > | > v > Load-balancing.url > / \ > / \ > Internal-server-1.url Internal-server-2.url > > Users from the "inside" acces the application through the Load- > balancing.url and user from the "outside" through the Reverse- > proxy.url > From the inside everything is working well. > > But for the outside when doing a file upload orbeon tells the > browser to do a submit on a url (got with > externalContext.getRequest().getRequestURL() ) but the problem is > that for orbeon the server url is Load-balancing.url and not Reverse- > proxy.url so the client is doing a submit to an internal url that > does not exist on the internet! > > What I did now is to remove the > externalContext.getRequest().getRequestURL() and replace it with > externalContext.getRequest().getContextPath() + "/xforms-server" > > So now instead off doing the submit to http://Internal-server.url/app/xforms-server > I do a submit to /app/xforms-server, which should always be correct. > > I hope I have not broken anything else in doing this but I seems to > be working. > > > Antoine > > -----Original Message----- > From: Alessandro Vernet [mailto:[hidden email]] > Sent: Friday, January 23, 2009 3:23 AM > To: [hidden email] > Subject: [ops-users] Re: RE: Re: RE: Re: RE: File upload is not > working behind a reverse proxy > > On Jan 22, 2009, at 2:19 AM, <Antoine.DE- > [hidden email]> <[hidden email] >> wrote: > >> What I've done now is to put the correct url in the nef properties >> file and get it from there. >> This means it is "hard coded" somewhere, which is not great. > > What is the "nef properties file" you're referring to? Are we still > talking about the upload issue in noscript mode? > > Independently from the reverse proxy, some quick testing I did locally > convinced me that the upload control in noscript mode is not working > right now. Do you see something different in the version you are > using? > > 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 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 |
Free forum by Nabble | Edit this page |