Login  Register

Relative path for submission?

Posted by Dan Kereliuk on Jan 20, 2011; 8:47pm
URL: https://discuss.orbeon.com/Relative-path-for-submission-tp3228459.html

So I have a submission that looks something like this (the irrelevant attributes have been omitted to keep it simple):

<xf:submission method="post" action="/exist/queries/login.xql" replace="instance" f:url-norewrite="true"/> 

When I fire this submission, it appears to fail, as the instance to be replaced remains blank. However, when using the same submission above but with the full absolute path given (http://localhost:8080/exist/queries/login.xql), the replace works perfectly. I can also see the full expected XML when using replace="all", whether I use the relative path or the absolute one. The only time it fails is on replace="instance" with a relative path.

I'm using Orbeon 3.8 deployed on Tomcat 6.0 alongside eXist 1.4. The query is being executed from the file system by eXist's XQueryServlet (hence the '.xql' instead of 'xq'). I've set the crossContext in Tomcat, and I've set the "oxf.xforms.local-submission-forward" and "oxf.xforms.local-submission-include" properties to "true" in Orbeon's config files.

I really need to be able to use relative paths so I can avoid writing out the host portion, which will change constantly for me as I sync changes back and forth between my development server and my production server.