[jira] Created: (OFBIZ-1388) Bug in lookup windows URL

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
32 messages Options
12
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (OFBIZ-1388) Bug in lookup windows URL

Nicolas Malin (Jira)
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
            Reporter: Bilgin Ibryam
            Priority: Minor
             Fix For: SVN trunk


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 | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-1388) Bug in lookup windows URL

Nicolas Malin (Jira)

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

Jacques Le Roux updated OFBIZ-1388:
-----------------------------------

    Affects Version/s: Release Branch 4.0

This is not related toa specific product and the same issue exists for the quick lookup button. This problem does exist in release4.0

> 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
>
>
> 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 | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1388) Bug in lookup windows URL

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

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

That's right Jacques,  i just gave one example to generate the bug.
Any proposals how to fix it?

> 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
>
>
> 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 | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1388) Bug in lookup windows URL

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

BJ Freeman commented on OFBIZ-1388:
-----------------------------------

may be off but don't think this is a valid url
https://localhost:8443/ordermgr/control/additem/product 

controller will only  handle additem but not pass the /product.
unless i have missed something.

> 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
>
>
> 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 | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1388) Bug in lookup windows URL

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

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

BJ,
I am not sure what you mean by "not valid url" but this is exactly how it looks after adding to cart a configurable product, or product with survey and in some other cases...
And if you use quick lookup button, while the url is like this, the lookup screen is not the expected one...

> 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
>
>
> 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 | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1388) Bug in lookup windows URL

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

BJ Freeman commented on OFBIZ-1388:
-----------------------------------

I am using ver 4.0
and it works fine
I don't see the URL you are specifying.
by not valid I mean
additem is valid but to add \product is not the way to pass parms
normallyou it &proudct= or
?product

I tried this on
https://demo.hotwaxmedia.com/ordermgr/control/additem
when I tried to add the PC001 got this

The Following Errors Occurred:
Configuration Is Not Valid

got this also on my version 4.0

> 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
>
>
> 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 | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1388) Bug in lookup windows URL

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

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

I cannot believe that so many people donot know how to add PC001 to cart from order manager. I created another issue (OFBIZ-1424) that could make adding some products(like PC001) easier.
Anyway, back to this issue: you can add PC001 by choosing "Configurables  PCs " category from left (Browse Categories screen ) corner of your order entry screen. Then you go to product details screens, configure it, and add. Exactly after adding the product, you will see the url...
You will have the same effect if you try to add products from "Account Activation" category from Browse Categories screen...

> 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
>
>
> 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 | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1388) Bug in lookup windows URL

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

BJ Freeman commented on OFBIZ-1388:
-----------------------------------

my apologies I miss read you instructions.


> 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
>
>
> 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 | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1388) Bug in lookup windows URL

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

BJ Freeman commented on OFBIZ-1388:
-----------------------------------

Ok been able to reproduce
this is what is being sent to the popup
tracing through
                      <a href="javascript:call_fieldlookup2(document.quickaddform.add_product_id,'LookupProduct');">
                        <img src="/images/fieldlookup.gif"" width="15" height="14" border="0" alt="Click here For Field Lookup"/>
                      </a>


> 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
>
>
> 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 | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1388) Bug in lookup windows URL

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

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

I found one way to fix this bug.
Instead of doing request like "LookupProduct" , which is modified by control servlet depending on current url, we can do the lookup request like this: "<@ofbizUrl>LookupProduct</@ofbizUrl>".

The applied patch fixes the bug in order manager. It is possible to have similar bugs in other places in ofbiz, that i am not aware.

> 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
>
>
> 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 | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-1388) Bug in lookup windows URL

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

Bilgin Ibryam updated OFBIZ-1388:
---------------------------------

    Attachment: lookup.patch

> 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 | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1388) Bug in lookup windows URL

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

BJ Freeman commented on OFBIZ-1388:
-----------------------------------

how about adding it to the jscript?
I am still following it down to see what may need to be done for any lookups.
and why it works once but not after this particular situation.


> 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 | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1388) Bug in lookup windows URL

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ 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 | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1388) Bug in lookup windows URL

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

BJ Freeman commented on OFBIZ-1388:
-----------------------------------

sorry I did the patch but did not put it in


> 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 | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-1388) Bug in lookup windows URL

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

BJ Freeman updated OFBIZ-1388:
------------------------------

    Attachment: JsLookup.patch

sorry thought I had uploaded this alread


> 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: JsLookup.patch, 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 | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-1388) Bug in lookup windows URL

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

BJ Freeman updated OFBIZ-1388:
------------------------------

    Comment: was deleted

> 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: JsLookup.patch, 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 | Threaded
Open this post in threaded view
|

[jira] Assigned: (OFBIZ-1388) Bug in lookup windows URL

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

Jacques Le Roux reassigned OFBIZ-1388:
--------------------------------------

    Assignee: Jacques Le Roux

> 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
>            Assignee: Jacques Le Roux
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: JsLookup.patch, 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 | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1388) Bug in lookup windows URL

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

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

BJ,

Would  you clarify what for is used your patch - JsLookup.patch ?
It looks like doesn't resolve the bug

> 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
>            Assignee: Jacques Le Roux
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: JsLookup.patch, 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 | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1388) Bug in lookup windows URL

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

BJ Freeman commented on OFBIZ-1388:
-----------------------------------

function call_fieldlookup2(target, viewName) {  
//    var fieldLookup = new fieldLookup1(target, arguments);  
    var fieldLookup = new fieldLookup1(target, null);  
    fieldLookup.popup2(viewName);
}
I nulled the second parameter you noticed it is not initialized or used.

fieldLookup1  takes the second parm and stores its in gobal this.args.
popup2 looks at this.args. and appends them. I believe this is how you are getting the effect.

since the orginal fieldLookup1(target, arguments);   arguments may have garbage in it.

Why did it not change your on your system
it seem to fix the problem on mine.



> 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
>            Assignee: Jacques Le Roux
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: JsLookup.patch, 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 | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1388) Bug in lookup windows URL

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

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

Your patch doesnot work for me (latest trunk)

> 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
>            Assignee: Jacques Le Roux
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: JsLookup.patch, 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.

12