[ 
https://issues.apache.org/jira/browse/OFBIZ-1388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12548193
 ] 

Bilgin Ibryam commented on OFBIZ-1388:
--------------------------------------

>how about adding it to the jscript? 
I am not sure that <@ofbizUrl> will work in js files, didnot test it. Did you 
test it ?
Also it will make all js files depend on <@ofbizUrl>. However i donot see a 
problem in it (for now).

>and why it works once but not after this particular situation. 
If you check ControlServlet, you will see why
You can check these lines 
        String rname = "";
        if (request.getPathInfo() != null) {
            rname = request.getPathInfo().substring(1);
        }
        if (rname.indexOf('/') > 0) {
            rname = rname.substring(0, rname.indexOf('/'));
        }

> Bug in lookup windows URL
> -------------------------
>
>                 Key: OFBIZ-1388
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1388
>             Project: OFBiz
>          Issue Type: Bug
>    Affects Versions: SVN trunk, Release Branch 4.0
>            Reporter: Bilgin Ibryam
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: lookup.patch
>
>
> Hi all,
> I just noticed a bug in lookup windows url generation.
> One way to generate the bug is this:
> Go to order manager and add to cart configurable pc (PC001). You can do it 
> browsing Configurable PCs category on the left corner.
> After you add PC001 to cart, you will be in order entry screen and your URL 
> should look like this: 
> https://localhost:8443/ordermgr/control/additem/product
> At this stage if you try to add another product AND click on the product 
> lookup button, the screen in the lookup window will be orderentry screen but 
> not the product lookup screen!
> Popup screen will not generate LookupProduct request as it is expected, 
> instead the request is "additem/LookupProduct" and then ControlServlet 
> transform it to additem request. You can see that additem is coming from the 
> URL we mentioned /control/additem/product
> Any ideas how to fix this bug?
> Bilgin Ibryam

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to