Uploaded image for project: 'Nuxeo Studio'
  1. Nuxeo Studio
  2. NXS-545

Users & groups feature should add minimalist contributions

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 48
    • Fix Version/s: 53
    • Component/s: Roles & Permissions
    • Tags:
    • Backlog priority:
      320
    • Sprint:
      nxNest Sprint 9.1.1
    • Story Points:
      2

      Description

      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. "

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 4 hours
                  4h
                  Remaining:
                  Time Spent - 1 hour Remaining Estimate - 3 hours
                  3h
                  Logged:
                  Time Spent - 1 hour Remaining Estimate - 3 hours
                  1h