Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-4153

RecordsManagementAdminServiceImpl.getCustomConstraintDefinition(s) hard-wired to RM cutom model namespace

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Resolution: Fixed
    • Affects Version/s: 3.2 R
    • Fix Version/s: 3.2.1
    • Component/s: Installer
    • Labels:
      None
    • Environment:
      Found on 3.2 Ent, Confirmed by code inspection on ESC branch
    • Bug Priority:
      Category 4

      Description

      The getCustomConstraintDefinitions and getCustomConstraintDefinition methods on RecordsManagementAdminServiceImpl work by iterating through constraints defined within the Records Management custom model and filtering out those constraints that aren't RecordsManagementLOV constraints.

      If one extends Records Management by adding a new RecordsManagementLOV constraint under a new namespace, this will not be picked up.

      To reproduce, create a new custom model, place into Alfresco explorer and activate:

      <model name="es:escCustom" xmlns="http://www.alfresco.org/model/dictionary/1.0">
      <description>Test case based on ESC 0.3 custom model</description>
      <author>alfresco@surevine.com, simonw@surevine.com</author>
      <version>0.3</version>
      <namespaces>
      <namespace uri="http://www.alfresco.org/model/enhancedSecurity/0.3" prefix="es"/>
      </namespaces>
      <constraints>
      <constraint name="es:validOpenMarkings" type="org.alfresco.module.org_alfresco_module_dod5015.caveat.RMListOfValuesConstraint">
      <title>TestCase</title>
      <parameter name="allowedValues">
      <list>
      <value>FINANCE</value>
      <value>LEGAL</value>
      <value>MANAGEMENT</value>
      <value>ACCOUNTS</value>
      <value>OPENGROUP1</value>
      <value>OPENGROUP2</value>
      </list>
      </parameter>
      <parameter name="caseSensitive"><value>true</value></parameter>
      <parameter name="matchLogic"><value>OR</value></parameter>
      </constraint>
      </constraints>
      </model>

      Then start Alfresco, call /api/rma/admin/rmconstraints. Returns Supplemental Marking and Transport Marking constraints but not this constraint. Stop alfresco, copy the above constraint into Alfresco's cached copy of recordsCustomModel.xml in /alf_data under the "rmc:" namespace, restart Alfresco, call /api/rma/admin/rmconstraints and the constraint is returned.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                closedbugs Closed Bugs
                Reporter:
                swhite Simon
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: