a30d648b2ad8d0ba2e5f46a3bdfcbe3b52b44abf
If I cancel an order item from ecommerce. I get, the below error displayed on the page. The Following Errors Occurred: Unable to cancel order line : WSCO11640 / 00001 / null There have been a discussion about it in this thread http://markmail.org/message/dfkudyvbksvls333 How it works: you can cancel an order item if you create it or have the ORDERMGR_CREATE or ORDERMGR_UPDATE permissions (I added the later to Sascha's patch, else the order manager would be annoyed ;o) I think this makes sense, because AFAIK there are no other UIs than https://demo-trunk.ofbiz.apache.org/ordermgr/control/editOrderItems?orderId=... and https://demo-trunk.ofbiz.apache.org:8443/ecommerce/control/orderstatus?orderId=... to cancel an order item. So nobody should be able to bypass his/her permissions... Of course, let me know if you think I could have missed something, thanks Note also that we had to remove fullPath="true" in <@ofbizUrl>cancelOrderItem</@ofbizUrl> (orderitems.ftl), to avoid InsecureFormPostToSecureRequest error. I don't think it raises any security issues though, has it's done from a javascript call with hidden orderItemSeqId parameter. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1059180 13f79535-47bb-0310-9956-ffa450edef68
A modified patch from Sascha based on an intial patch from Abdullah Shaikh "permission error on cancel order item from ecommerce" (https://issues.apache.org/jira/browse/OFBIZ-3075) - OFBIZ-3075
Languages
JavaScript
44.6%
Java
23.1%
FreeMarker
18.1%
Groovy
6.4%
CSS
5.3%
Other
2.4%