-
Type: Improvement
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 48
-
Fix Version/s: 53
-
Component/s: Roles & Permissions
The feature which allows to populate the users or groups table override the default contribution defining the userDirectory/groupDirectory.
Therefore, every configuration made by a user will be lost and replaced by the one from Studio.
We need to write a smaller contribution which contains only the minimal required information. That way, it will be possible to modify querySizeLimit or schema attributes from the default contribution (default-sql-directories-bundle.xml)
*What to do*
=> Contribution to provide (tested with 6.0, 7.10, 8.3, 8.10 TPs)
<extension target="org.nuxeo.ecm.directory.sql.SQLDirectoryFactory" point="directories"> <directory name="userDirectory"> <passwordField>password</passwordField> <dataFile>data/users.csv</dataFile> <createTablePolicy>$STUDIO_CTP</createTablePolicy> <references> <inverseReference field="groups" directory="groupDirectory" dualReferenceField="members"/> </references> </directory> <directory name="groupDirectory"> <dataFile>data/groups.csv</dataFile> <createTablePolicy>$STUDIO_CTP</createTablePolicy> <references> <inverseReference field="parentGroups" directory="groupDirectory" dualReferenceField="subGroups"/> <tableReference field="members" directory="userDirectory" table="user2group" sourceColumn="groupId" targetColumn="userId" schema="user2group" dataFile="data/user2group.csv"/> <tableReference field="subGroups" directory="groupDirectory" table="group2group" sourceColumn="parentGroupId" targetColumn="childGroupId" schema="group2group"/> </references> </directory> </extension>
=> Don't change the contribution for 5.8 TP or lower since it is not supported anymore and therefore we don't want to introduce something that could change the overall behavior.
=> Help should be updated. Replace "This generates configuration that only works with the SQL users repository." with "This generates configuration that only works with the SQL users repository and the default table names. "
- is required by
-
NXS-3539 Update querySizeLimit value 15 to 50 for Users & Groups
- Resolved