Bilgin Ibryam (JIRA) wrote:
[ https://issues.apache.org/jira/browse/OFBIZ-1634?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12571240#action_12571240 ]
Bilgin Ibryam commented on OFBIZ-1634:
--------------------------------------

While trying to reproduce the bug, I saw 2 strange issues here (both cannot be 
reproduced locally!)

1) If you go directly (w/o clicking around in ecommerce before that) to the product screen http://demo.hotwaxmedia.com/ecommerce/control/product/~category_id=PROMOTIONS/~product_id=GZ-2644 the "Review Product" link looks like that: href="/ecommerce/control/reviewProduct;jsessionid=A399361B726899A88B27E5CA2F7B4C75.jvm1?category_id=PROMOTIONS&product_id=GZ-2644"
BUT when you click on it, the server does NOT get the parameters, you can see 
that in the browser and at the  server logs:
2008-02-21 17:37:29,055 (TP-Processor20) [ RequestHandler.java:243:INFO ] 
[Processing Request]: reviewProduct 
sessionId=A399361B726899A88B27E5CA2F7B4C75.jvm1
2008-02-21 17:37:29,055 (TP-Processor20) [ LoginWorker.java:264:INFO ] 
reqParams Map: []
2008-02-21 17:37:29,056 (TP-Processor20) [ LoginWorker.java:265:INFO ] 
queryString:

Locally, the link looks the same, but when i click on it, the logs looks like 
that:
2008-02-22 01:49:24,953 (http-0.0.0.0-8080-Processor3) [ 
RequestHandler.java:243:INFO ] [Processing Request]: reviewProduct 
sessionId=23CCE5697BB17CD923DC858A0D2097A8.jvm1
2008-02-22 01:49:24,953 (http-0.0.0.0-8080-Processor3) [ 
LoginWorker.java:264:INFO ] reqParams Map: [product_id=FA-001, 
category_id=PROMOTIONS]
2008-02-22 01:49:24,953 (http-0.0.0.0-8080-Processor3) [ LoginWorker.java:265:INFO 
] queryString: product_id=FA-001&category_id=PROMOTIONS

You can see that when testing locally, product_id and category_id are not lost and the product can be reviewed.
Any ideas why these reqParams are lost on the demo server?


I've noticed this behavior in the demo server in different screens, too.
For example sometime when I log in and then go to Facility and then click in one of the facilities, the url is messed up by the ;jsessionid=A399361B726899A88B27E5CA2F7B4C75.jvm1? string (probably in the wrong position) and so the facility is not found: if you then click again everything works fine (I think there is also a Jira issue for this, but not sure). I've tried to search in the past for the issue, but I didn't find the problem in OFBiz... my suspect is that there is something weird happening between OFBiz and the web server.

Jacopo

2) The second issue is a more common one and easier to reproduce (on the demo 
server):
If the request on ecomerce looks like that: <security auth="true" 
https="false"/> for example editShoppingList and reviewProduct links, click on it will 
require auth and you will get the login screen. BUT at this stage the URL  is http ( not https).  If you 
enter username and pass, they will be not accepted. The error message is:

The Username was empty, please re-enter.
The Password was empty, please re-enter.

Now the URL is https and you have to enter AGAIN your user name and pass to log in.
Cannot review a product.
------------------------

                Key: OFBIZ-1634
                URL: https://issues.apache.org/jira/browse/OFBIZ-1634
            Project: OFBiz
         Issue Type: Bug
         Components: ecommerce
   Affects Versions: SVN trunk
           Reporter: BJ Freeman
           Priority: Minor
            Fix For: SVN trunk


http://demo.hotwaxmedia.com/ecommerce/control/product/~category_id=PROMOTIONS/~product_id=GZ-2644
click on
Be The First To Review This Product!
login (i did as admin)
get a blank page with this message
Cannot review an unknown product.


Reply via email to