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

Pradeep Choudhary commented on OFBIZ-11608:
-------------------------------------------

We have added user login check into 'restoreAutoSaveList' event to fix the 
authorization error, which is thrown while restoring autoSaveListId for 
anonymous user.

It restricts to restore autoSaveListId only for logged in user.

Need to fix authorization issue at the service level instead of restricting it 
in the event.

> Added Item does not exist in the cart if user (Anonymous user) revisits the 
> eCommerce store
> -------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-11608
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-11608
>             Project: OFBiz
>          Issue Type: Improvement
>    Affects Versions: Release Branch 16.11, Trunk
>         Environment: [link title|http://example.com]
>            Reporter: Pradeep Choudhary
>            Priority: Minor
>
> Steps to regenerate:
> 1. Set the 'autoSaveCart' field to 'Y' in product_store entity (for Store 
> 9000).
> 2. Open Firefox browser, as it deletes the cookies as soon as the user closes 
> the browser application. (To reproduce it on chrome, need to disable setting 
> for 'Continue running background apps when Google Chrome is closed')
> 3. Visit the [eCommerce store|https://localhost:8443/ecommerce/control/main]
> 4. Add items to the cart without logging in (as an anonymous user)
> 5. Close the browser application.
> 6. Revisit the eCommerce store.
> Actual:
> Shopping Cart is showing empty.
> Expected:
> Previously added items should persist in the item for the anonymous user 
> also. 
> Note:
> It is working fine, if the user logged In to the application, add items to 
> cart, closes the application. Revisits the store, previously added items 
> persist in the cart.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to