I am trying to generate PDF output of form using form runner and it just fails.Actual url typed on browser is https://xxx.edu/orbeon/fr/a/b/pdf.......... request goes to sunwebserver which redirects to http://internalserverip:8080/orbeon/fr/a/b/pdf
2009-07-22 13:17:48,292 DEBUG ProcessorImpl - XPL processor - connection - opening URL connection {URL: "http://xxx.edu:443/orbeon/xforms-server/xforms-dialog-yuicalendar-min.css"} NOTE: PDF is working with http://internalserverip:8080/orbeon/fr/a/b/pdf though.But doesnt only its behind https+webserver I think XHTML TO PDF processor is not able to identify https neither it used the property below. <property as="xs:anyURI" name="oxf.url-rewriting.service.base-uri" value="http://internalserverip:8080/orbeon"/> can anyone give some directions? |
Administrator
|
I know of at least one deployment where the PDF production works
behind HTTPS in a similar scenario, so there must be a way of making it work. I am not sure about the Sun server, but Tomcat has attributes on the HTTP connector which allow you to tell Tomcat that the external URL is actually using HTTPS. You could look into that. Further, if you have any way of debugging the Java code, you could try looking at XHTMLToPDFProcessor.java. It is a short file, and it includes the resolver for CSS and other resources. -Erik On Wed, Jul 22, 2009 at 12:15 PM, hithesh gazzala<[hidden email]> wrote: > > I am trying to generate PDF output of form using form runner and it just > fails.Actual url typed on browser is > https://xxx.edu/orbeon/fr/a/b/pdf.......... request goes to sunwebserver > which redirects to http://internalserverip:8080/orbeon/fr/a/b/pdf > > 2009-07-22 13:17:48,292 DEBUG ProcessorImpl - XPL processor - connection - > opening URL connection {URL: > "http://xxx.edu:443/orbeon/xforms-server/xforms-dialog-yuicalendar-min.css"} > > NOTE: PDF is working with http://internalserverip:8080/orbeon/fr/a/b/pdf > though.But doesnt only its behind https+webserver > > I think XHTML TO PDF processor is not able to identify https neither it used > the property below. > > <property as="xs:anyURI" name="oxf.url-rewriting.service.base-uri" > value="http://internalserverip:8080/orbeon"/> > > can anyone give some directions? > > > > -- > View this message in context: http://www.nabble.com/PDF-output-fails-when-HTTPS-%2B-Webserver-tp24612738p24612738.html > Sent from the ObjectWeb OPS - Users mailing list archive at Nabble.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 > > -- 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 |
Erik
I took a gap on this issue and resumed to solve this now. Now both in tomcat and jboss this URL conversion is happening right.https://xxx.edu:443/orbeon/xforms-server/xforms-dialog-yuicalendar-min.css Now I am still getting 401 error as orbeon is not sending authorization header in this case. I also enabled <property as="xs:string" name="oxf.http.forward-headers" value="Authorization"/>. My question is :- why is orbeon not using <property as="xs:anyURI" name="oxf.url-rewriting.service.base-uri" value="http://127.0.0.1:8080/orbeon"/> while fetching xforms-dialog-yuicalendar-min.css ? If orbeon would have used that property then request url should be http://127.0.0.1:8080/orbeon/xforms-server/xforms-dialog-yuicalendar-min.css rather than https://xxx.edu:443/orbeon/xforms-server/xforms-dialog-yuicalendar-min.css please point me in right direction , in what i am missing here. thanks hithesh
|
Administrator
|
xforms-dialog-yuicalendar-min.css is in general meant to be retrieved
by your browser, so it should not have an address such as http://127.0.0.1:8080/orbeon. Now when the PDF processor accesses such resources, it should probably behave differently. We are currently looking at rewriting issues, I will add this to the list of things to check. -Erik On Fri, Oct 2, 2009 at 3:22 PM, hithesh gazzala <[hidden email]> wrote: > > Erik > > I took a gap on this issue and resumed to solve this now. Now both in tomcat > and jboss this URL conversion is happening > right.https://xxx.edu:443/orbeon/xforms-server/xforms-dialog-yuicalendar-min.css > > Now I am still getting 401 error as orbeon is not sending authorization > header in this case. I also enabled > <property as="xs:string" name="oxf.http.forward-headers" > value="Authorization"/>. > > My question is :- why is orbeon not using <property as="xs:anyURI" > name="oxf.url-rewriting.service.base-uri" > value="http://127.0.0.1:8080/orbeon"/> while fetching > xforms-dialog-yuicalendar-min.css ? If orbeon would have used that property > then request url should be > http://127.0.0.1:8080/orbeon/xforms-server/xforms-dialog-yuicalendar-min.css > rather than > https://xxx.edu:443/orbeon/xforms-server/xforms-dialog-yuicalendar-min.css > > please point me in right direction , in what i am missing here. > > thanks > hithesh > > > > > > > > Erik Bruchez wrote: >> >> I know of at least one deployment where the PDF production works >> behind HTTPS in a similar scenario, so there must be a way of making >> it work. >> >> I am not sure about the Sun server, but Tomcat has attributes on the >> HTTP connector which allow you to tell Tomcat that the external URL is >> actually using HTTPS. You could look into that. >> >> Further, if you have any way of debugging the Java code, you could try >> looking at XHTMLToPDFProcessor.java. It is a short file, and it >> includes the resolver for CSS and other resources. >> >> -Erik >> >> On Wed, Jul 22, 2009 at 12:15 PM, hithesh >> gazzala<[hidden email]> wrote: >>> >>> I am trying to generate PDF output of form using form runner and it just >>> fails.Actual url typed on browser is >>> https://xxx.edu/orbeon/fr/a/b/pdf.......... request goes to >>> sunwebserver >>> which redirects to http://internalserverip:8080/orbeon/fr/a/b/pdf >>> >>> 2009-07-22 13:17:48,292 DEBUG ProcessorImpl - XPL processor - connection >>> - >>> opening URL connection {URL: >>> "http://xxx.edu:443/orbeon/xforms-server/xforms-dialog-yuicalendar-min.css"} >>> >>> NOTE: PDF is working with http://internalserverip:8080/orbeon/fr/a/b/pdf >>> though.But doesnt only its behind https+webserver >>> >>> I think XHTML TO PDF processor is not able to identify https neither it >>> used >>> the property below. >>> >>> <property as="xs:anyURI" name="oxf.url-rewriting.service.base-uri" >>> value="http://internalserverip:8080/orbeon"/> >>> >>> can anyone give some directions? >>> >>> >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/PDF-output-fails-when-HTTPS-%2B-Webserver-tp24612738p24612738.html >>> Sent from the ObjectWeb OPS - Users mailing list archive at Nabble.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 >>> >>> >> >> >> -- >> 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 >> >> > > -- > View this message in context: http://www.nabble.com/PDF-output-fails-when-HTTPS-%2B-Webserver-tp24612738p25723436.html > Sent from the ObjectWeb OPS - Users mailing list archive at Nabble.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 > > -- 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 |
Sure thanks.
|
Administrator
|
In reply to this post by Erik Bruchez
FYI this is now fixed:
Bug: http://forge.ow2.org/tracker/index.php?func=detail&aid=314496&group_id=168&atid=350207 Commit: http://github.com/orbeon/orbeon-forms/commit/24fadf396637847172a446f6e28f022cfb4f0b25 -Erik On Wed, Oct 7, 2009 at 1:58 PM, hithesh gazzala <[hidden email]> wrote: > > Sure thanks. > -- > View this message in context: http://www.nabble.com/PDF-output-fails-when-HTTPS-%2B-Webserver-tp24612738p25795148.html > Sent from the ObjectWeb OPS - Users mailing list archive at Nabble.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 > > -- 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 |
Thanks this fix is working in 3.8 nightly build by setting that property
<property as="xs:anyURI" name="oxf.url-rewriting.service.base-uri" value="http://127.0.0.1:8080/orbeon"/> All the resources esp CSS are accessed internally rather than going through proxy. |
Free forum by Nabble | Edit this page |