I used mondrian-18.104.22.16885 with its roles support and it worked perfectly.
After migration to version 22.214.171.12403 I discovered that for same schema configuration roles work with some problems.
For example Role defined like this:
<CubeGrant cube="Sales" access="all">
<HierarchyGrant rollupPolicy="Partial" hierarchy="[Customers]" access="custom">
<MemberGrant member="[Customers].[USA]" access="none"/>
<MemberGrant member="[Customers].[USA].[CA]" access="all"/>
Cube cube = olapConnection.getOlapSchema().getCubes().get("Sales");
Hierarchy hierarchy = cube.getHierarchies().get("Customers");
Member defautlMember = hierarchy.getDefaultMember();
For version 126.96.36.19985 defautlMember object refers to [Customers].[All Customers]
For version 188.8.131.5203 defaultMember is null. Moreover hierarchy.getRootMembers() has member [Customers].[All Customers]
but this member does not have any child member.
In both cases I connect with XMLA with olap4j 1.0
I discovered that rollupPolicy="Partial" brings these problems, but without this configuration we can not benefit data hiding:
Maybe role managment differs somehow?
Please share your suggestion about this case.