[jira] [Commented] (OFBIZ-10886) Unable to create new quote from cart at eCommerce store

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-10886) Unable to create new quote from cart at eCommerce store

Nicolas Malin (Jira)

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

Pawan Verma commented on OFBIZ-10886:
-------------------------------------

At first glance, the code at QuoteServices.groovy::createQuote line no 165 seems suspect to me.
{code:java}
// Set ProductStore's payToPartyId as internal organisation for quote.
if (productStore?.payToPartyId) {
    Map serviceResult = run service: 'createQuoteRole', with: [
        quoteId: newEntity.quoteId,
        partyId: productStore.payToPartyId,
        roleTypeId: 'INTERNAL_ORGANIZATIO'
    ]
}
{code}
At there, the code is written to Set ProductStore's payToPartyId as an internal organisation for a quote, but the logged-in user is used while creating QuoteRole and createQuoteRole service need ORDERMGR_CREATE permission to run.

If I bypass it by passing system userLogin, I get the same permission error for createQuoteItem service.

> Unable to create new quote from cart at eCommerce store
> -------------------------------------------------------
>
>                 Key: OFBIZ-10886
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-10886
>             Project: OFBiz
>          Issue Type: Bug
>         Environment: https://demo-trunk.ofbiz.apache.org/ecommerce/
>            Reporter: Sanjay Yadav
>            Assignee: Sasikant Biswal
>            Priority: Major
>         Attachments: ShoppingCartBug.png
>
>
> Steps to regenerate issue -
>  # Go to url [https://demo-trunk.ofbiz.apache.org/ecommerce/]
>  # Login with any registered user.
>  # Select Demo Catalog.
>  # Select product Round Gizmo product and add to cart.
>  # Go to View Cart option
>  # Scroll down and click button 'Create New Quote From Cart'
>  # It throws exception as shown in attached snapshot.
> Also,
> Tried updating quantity field. User is able to update field but updated value does not save while moving to next check out page. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)