简体   繁体   English

与Orbeon一起使用跨上下文时重定向到正确的上下文

[英]Redirect to correct context when using cross context with Orbeon

We are developing an application with Orbeon 4.5.1 We use separated deployment, decribed as follow: http://wiki.orbeon.com/forms/doc/developer-guide/xforms-with-java-applications 我们正在使用Orbeon 4.5.1开发应用程序。我们使用单独的部署,描述如下: http ://wiki.orbeon.com/forms/doc/developer-guide/xforms-with-java-applications

Separated deployment means, we have our own application, that communicate and use another application, in our case, this is Orbeon. 分开的部署意味着,我们拥有自己的应用程序,可以通信和使用另一个应用程序,在我们的例子中,这是Orbeon。

We are using Grails 2.2.4 for our own application, and reach it at: 我们将Grails 2.2.4用于我们自己的应用程序,并通过以下地址访问它:

http://hostname/ourApplication

It all works fine with this. 一切都很好用。 Then we reach Orbeon application, by putting Orbeon afterwards, example like this: 然后,通过将Orbeon放在后面,我们进入Orbeon应用程序,如下所示:

http://hostname/ourApplication/orbeon/fr/orbeon/builder/....

Now we can use the functionality of Orbeon. 现在我们可以使用Orbeon的功能。

But when we hit a link inside Orbeon application, that should still point to Orbeons context, it points to the context for our main application instead! 但是,当我们点击Orbeon应用程序内部的链接时,该链接仍应指向Orbeons上下文,而是指向主应用程序的上下文!

So when we example hit the link: /fr/{bind('application-name-bind')}/{bind('form-name-bind')}/test, we are redirected to: 因此,当我们通过链接示例/ fr / {bind('application-name-bind')} / {bind('form-name-bind')} / test时,我们将重定向至:

http://hostname/ourApplication/fr/{bind('application-name-bind')}/{bind('form-name-bind')}/test

Instead of the correct link: 代替正确的链接:

http://hostname/ourApplication/orbeon/fr/{bind('application-name-bind')}/{bind('form-name-bind')}/test

Some places we have fixed this by putting /orbeon before the link in the Orbeon code, but this is not a solution for us, because it's very hard for us to fix all links, and when we do an upgrade of Orbeon, we have to replace all links again. 在某些地方,我们通过在Orbeon代码中的链接之前放置/ orbeon来解决此问题,但这对我们而言不是解决方案,因为我们很难修复所有链接,并且在升级Orbeon时,我们必须再次替换所有链接。 And some functionality is not working right now, because of this. 因此,某些功能目前无法正常工作。

I dont know whether this is a problem related to the configuration in Orbeon or Grails. 我不知道这是否与Orbeon或Grails中的配置有关。

I will appreciate any help, because we have been stuck here for a while now. 我将不胜感激,因为我们已经在这里停留了一段时间。 Please let me know if any have some suggestions? 请让我知道有什么建议吗?

Have you tried using the oxf.url-rewriting.service.base-uri property in your properties-local.xml? 您是否尝试过在properties-local.xml中使用oxf.url-rewriting.service.base-uri属性?

Documentation 文献资料

Jez 耶兹

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM