Hi to everyone!

 

I'm developing an application with   apache-ofbiz-12.04.01. 

 

My client have the necessity to put the system in production using a reverse
proxy.

 

So, in local when i test the application, i've an URL of this type :
https://127.0.0.1:8443/customsubmodule/control/main  and everything goes
well,

 

While, my client have an URL of this type :
<https://client.custom.domain/customProxy/customsubmodule/control/main>
https://client.custom.domain/customProxy/customsubmodule/control/main

 

So, as you can see....in client URL there is    "/customProxy" before my
submodule.

 

In my application, i have used always the tag
<@ofbizUrl>myServlet<@ofbizUrl>.

 

There are some problems during the generation or redirect of the Link. I've
seen that many links are generated well, for example  :

 

      <li><a href=" <@ofbizUrl>/logout</@ofbizUrl>"><h4
style="font-size=125%;">${uiLabelMap.CommonLogout}</h4></a></li>

 

Generate well :
https://client.custom.domain/customProxy/customsubmodule/control/
<https://client.custom.domain/customProxy/customsubmodule/control/logout%20>
logout 

 

And in the same way the most of other links. 

 

While there are some other links like :

 

   jQuery("#tree").jstree({

        "plugins" : [ "themes", "json_data","ui" ,"cookies", "types"],

            "json_data" : {

                "data" : rawdata,

                          "ajax" : { "url" :
"<@ofbizUrl>getChild</@ofbizUrl>", "type" : "POST",

 

 

That try to call  :    https://client.custom.domain/customsubmodule/control/
<https://client.custom.domain/customsubmodule/control/getChild%20> getChild
without the proxy :   "/customProxy". before submodule 

So these kinds of submodules are not solved well.because try to call the URL
without the proxy.

 

I've seen in freemarker.properties   that the class used to transform the
tag <@ofbizUrl> is : org.ofbiz.webapp.ftl.OfbizUrlTransform , but seems that
there arent difference during the generation of the link from the first case
and the second case.. I've solved the second case putting a prefix like :

                          "ajax" : { "url" :
"/customProxy<@ofbizUrl>getChild</@ofbizUrl>", "type" : "POST",

 

but i want to solved generally this bug.

Any Idea??? 
Thanks in advance

 

 

Reply via email to