[
https://issues.apache.org/jira/browse/OFBIZ-12103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17257753#comment-17257753
]
Jacques Le Roux commented on OFBIZ-12103:
-----------------------------------------
Hi Pradeep,
Does this fix not only work for admin? Else I get this error on trunk with
DemoCustomer:
{noformat}
2021-01-03 14:06:52,940 |jsse-nio-8443-exec-1 |CommonPermissionServices
|I| Checking for alternate permission ORDERMGR_ROLE_CREATE
2021-01-03 14:06:52,940 |jsse-nio-8443-exec-1 |ServiceDispatcher
|T| Sync service [ecommerce/genericBasePermissionCheck] finished in [89]
milliseconds
2021-01-03 14:06:52,941 |jsse-nio-8443-exec-1 |ServiceDispatcher
|T| Sync service [ecommerce/orderAdjustmentPermissionCheck] finished in [110]
milliseconds
2021-01-03 14:06:52,941 |jsse-nio-8443-exec-1 |ServiceUtil
|E| {errorMessage=Security Error : to run createOrderAdjustment you must have
the ORDERMGR_CREATE or ORDERMGR_ADMIN permission, responseMessage=error}
2021-01-03 14:06:52,941 |jsse-nio-8443-exec-1 |ServiceDispatcher
|T| [[Sync service failed...- total:0.0,since last(Begin):0.0]] - 'ecommerce /
createOrderAdjustment'
2021-01-03 14:06:52,941 |jsse-nio-8443-exec-1 |TransactionUtil
|W| Calling transaction setRollbackOnly; this stack trace shows where this is
happening:
java.lang.Exception: Service [createOrderAdjustment] threw an unexpected
exception/error
at
org.apache.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:372)
[main/:?]
at
org.apache.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:306)
[main/:?]
at
org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:551)
[main/:?]
at
org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:240)
[main/:?]
at
org.apache.ofbiz.service.GenericDispatcherFactory$GenericDispatcher.runSync(GenericDispatcherFactory.java:93)
[main/:?]
at
org.apache.ofbiz.order.order.OrderServices.recalcOrderTax(OrderServices.java:1836)
[main/:?]
{noformat}
> Unable to cancel item from ecommerce
> ------------------------------------
>
> Key: OFBIZ-12103
> URL: https://issues.apache.org/jira/browse/OFBIZ-12103
> Project: OFBiz
> Issue Type: Bug
> Affects Versions: 17.12.03
> Reporter: Rashi Dhagat
> Assignee: Jacques Le Roux
> Priority: Major
> Attachments: CancelItem.webm, OFBIZ-12103.patch,
> Plugins_OFBIZ-12103.patch
>
>
> Steps to regenerate:
> 1. Open https://demo-stable.ofbiz.apache.org/ecommerce/control/main
> 2. Place an order with multiple items
> 3. Click on order history
> 4. Click on View
> 5. Select an item
> 6. Choose the reason and click on cancel
> Actual: The order item is not canceled.
> Please refer the attachment.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)