You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Jacques Le Roux (JIRA)" <ji...@apache.org> on 2019/04/02 11:09:00 UTC

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

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

Jacques Le Roux edited comment on OFBIZ-10886 at 4/2/19 11:08 AM:
------------------------------------------------------------------

Being logged as DemoCustomer I get this error on trunk demo and locally


The Following Errors Occurred:

Error running Groovy method [createQuoteFromCart] in Groovy file [component://order/groovyScripts/quote/QuoteServices.groovy]: (org.apache.ofbiz.service.GenericServiceException: Error running Groovy method [createQuote] in Groovy file [component://order/groovyScripts/quote/QuoteServices.groovy]: (org.apache.ofbiz.service.ServiceAuthException: You do not have permission to invoke the service [createQuoteRole]))

So this is a permission issue, when you sign in as admin it works. We need to decide what to do with that. It seems to me that in the context of ecommerce an user logged in (ie not anonymous) should be able to create quotes from a cart. If you add the ORDERENTRY Security Group to DemoCustomer it works. But I guess we need more something like allowing a signed in user to create a quote like even an anonymous user is able to create an order... 


was (Author: jacques.le.roux):
Being logged as DemoCustomer I get this error on trunk demo and locally


The Following Errors Occurred:

Error running Groovy method [createQuoteFromCart] in Groovy file [component://order/groovyScripts/quote/QuoteServices.groovy]: (org.apache.ofbiz.service.GenericServiceException: Error running Groovy method [createQuote] in Groovy file [component://order/groovyScripts/quote/QuoteServices.groovy]: (org.apache.ofbiz.service.ServiceAuthException: You do not have permission to invoke the service [createQuoteRole]))

So this is a permission issue, when you sign in as admin it works. We need to decide what to do with that. It seems to me that in the context of ecommerce an user logged in (ie not anonymous) should be able to create quote from a cart. If you add the ORDERENTRY Security Group to DemoCustomer it works. But I guess we need more something like allowing a signed in user to create a quote like even an anonymous user is able to create an order... 

> 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: Jacques Le Roux
>            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)