Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-7287

Fix merge of filter contributions when original filter was contributed inside an action

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.4.2
    • Fix Version/s: 5.5
    • Component/s: None

      Description

      When using the following contributions, the two view_preview filters are not merged.
      There are two ActionFilterRegistry}}s used, one in {{ActionContributionHandler for the embedded filter, and one in FilterContributionHandler for the filters contributed to the filters extension point.

      The FilterContributionHandler does not know about the ActionFilterRegistry defined ActionContributionHandler and so the FilterContributionHandler does not merge the view_preview filter as there is no other view_preview filter defined in its registry.

      <action id="TAB_PREVIEW" link="/incl/tabs/preview_tab.xhtml"
        enabled="true" order="200" label="label.document.preview"
        icon="/icons/file.gif">
        <category>VIEW_ACTION_LIST</category>
        <filter id="view_preview">
          <rule grant="true">
            <condition>#{previewActions.hasPreview}</condition>
          </rule>
        </filter>
      </action>
      
      <filter id="view_preview" append="true">
        <rule grant="false">
          <type>Survey</type>
        </rule>
      </filter>
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: