[
https://issues.apache.org/jira/browse/OFBIZ-9993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16354093#comment-16354093 ]
Dennis Balkir commented on OFBIZ-9993:
--------------------------------------
So I made a few mistakes with this:
# I used the MiniLang tag <result-to-result> but it didn't do what I expected, so actually the field I tried to put into the result map of genericBasePermissionCheck did not really find its way into the result. I changed that, this works now
# I had to add the old if-phrases into the genericBasePermissionCheck simple-method (which is still only there to call the groovy-service), because there were some cases in which the fields did not have the values they should have had and this will check for those cases
# I recognized, that I forgot to put "_" in front of the {{mainAction}} field while using {{hasEntityPermission}}, this resulted in the method not getting the permissions right. Somehow I managed to not forget it for my other conversions, which makes this kind of weird. It works fine now though
The testIntegration succeed now and the manual checking of the method seems to work too
> Convert CommonPermissionServices.xml mini lang to groovy
> --------------------------------------------------------
>
> Key: OFBIZ-9993
> URL:
https://issues.apache.org/jira/browse/OFBIZ-9993> Project: OFBiz
> Issue Type: Sub-task
> Components: framework
> Affects Versions: Trunk
> Reporter: Dennis Balkir
> Assignee: Nicolas Malin
> Priority: Minor
> Attachments: OFBIZ-9993_org.apache.ofbiz.common.permission.CommonPermissionServices_convert.patch, OFBIZ-9993_org.apache.ofbiz.common.permission.CommonPermissionServices_convert.patch, OFBIZ-9993_org.apache.ofbiz.common.permission.CommonPermissionServices_convert.patch
>
>
> Migration of the CommonPermissionServices.xml to Groovy
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)