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

"Has aspect" list of aspects in Share manage rules page does not contain custom aspects in some cases

    Details

      Description

      Scenario:
      Add a custom aspect in the data model & create a rule in share which has the condition "Has aspect" for this custom aspect.

      Steps to reproduce:
      1: Create a custom model with the following aspect added to it:
      <aspect name="custom:myAspect">
      </aspect>

      2: In share, add your new custom aspect to the visible list in share-config-custom.xml and add message bundles for the aspect:
      <alfresco-config>

      <!-- Document Library config section -->
      <config evaluator="string-compare" condition="DocumentLibrary" replace="true">

      <!-- Used by the "Manage Aspects" action For custom aspects, remember to also add the relevant i18n string(s) cm_myaspect=My Aspect -->
      <aspects>
      <!-- Aspects that a user can see in UI. Used by Rules, aspects are the listed aspects for rule's "has-aspect" action condition. -->
      <visible>
      <aspect name="cm:generalclassifiable" />
      <aspect name="cm:complianceable" />
      <aspect name="cm:dublincore" />
      <aspect name="cm:effectivity" />
      <aspect name="cm:summarizable" />
      <aspect name="cm:versionable" />
      <aspect name="cm:templatable" />
      <aspect name="cm:emailed" />
      <aspect name="emailserver:aliasable" />
      <aspect name="cm:taggable" />
      <aspect name="app:inlineeditable" />
      <aspect name="cm:geographic" />
      <aspect name="exif:exif" />
      <aspect name="audio:audio" />
      <aspect name="cm:indexControl" />
      <aspect name="dp:restrictable" />
      <aspect name="custom:myAspect" />
      </visible>
      </aspects>
      </config>
      </alfresco-config>

      3: Create a rule for a folder in Share and select the "Has Aspect" condition. Note that our Aspect is not in the list!

      4. Go back to the repository data model and add a title to the aspect:
      <aspect name="custom:myAspect">
      <title>My Aspect</title>
      </aspect>

      5. Create a rule again and observe that the aspect now appears in the condition list of Has Aspect.

      Conclusion:
      A <title> is needed for aspects to be rendered in the rule conditions area. <title> is not a mandatory field in the data model nor in share. You are able to manage aspects without a title in the data model from the manage aspects action. <title> should not be necessary for creating conditions for rules since localized names for aspects are usually provided in message bundles.

        Attachments

          Structure

            Activity

              People

              • Assignee:
                closedbugs Closed Bugs (Inactive)
                Reporter:
                marcus.svensson Marcus Svartmark (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 hours
                  4h

                    Structure Helper Panel