Nesting required-permissions in service definition

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

Nesting required-permissions in service definition

Rene Scheibe
We are using nested 'required-permissions' elements in our service
definitions to implement AND & OR joining. See below:

<required-permissions join-type="OR">
    <check-permission permission="SOME_PERMISSION" action="_UPDATE"/>
    <required-permissions join-type="AND">
        <permission-service service-name="facilityGenericPermission"
main-action="CREATE"/>
        <permission-service service-name="facilityGenericPermission"
main-action="UPDATE"/>
    </required-permissions>
</required-permissions>

This works create but the services.xsd does not specify such nesting.
Therefore warnings show up when starting OFBiz.

The question now is, if the services.xsd should be updated?

Regards,
René
--
René Scheibe * [hidden email]
TNG Technology Consulting GmbH, Betastr. 13a, 85774 Unterföhring
Geschäftsführer: Henrik Klagges, Gerhard Müller, Christoph Stock
Sitz: Unterföhring * Amtsgericht München * HRB 135082
Reply | Threaded
Open this post in threaded view
|

Re: Nesting required-permissions in service definition

Jacques Le Roux
Administrator
Yes, a patch could be contributed. Just verify before that you are using the right xsd version and that it's has not been already
fixed.

Jacques

From: "Rene Scheibe" <[hidden email]>

> We are using nested 'required-permissions' elements in our service
> definitions to implement AND & OR joining. See below:
>
> <required-permissions join-type="OR">
>    <check-permission permission="SOME_PERMISSION" action="_UPDATE"/>
>    <required-permissions join-type="AND">
>        <permission-service service-name="facilityGenericPermission"
> main-action="CREATE"/>
>        <permission-service service-name="facilityGenericPermission"
> main-action="UPDATE"/>
>    </required-permissions>
> </required-permissions>
>
> This works create but the services.xsd does not specify such nesting.
> Therefore warnings show up when starting OFBiz.
>
> The question now is, if the services.xsd should be updated?
>
> Regards,
> René
> --
> René Scheibe * [hidden email]
> TNG Technology Consulting GmbH, Betastr. 13a, 85774 Unterföhring
> Geschäftsführer: Henrik Klagges, Gerhard Müller, Christoph Stock
> Sitz: Unterföhring * Amtsgericht München * HRB 135082
>