Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-131309

Collection filter returns no items for Internal Categories

    Details

      Description

      Customer is reporting that if items are categorized under internal categories in DXP 7.3, the collection filter does not return these items despite the rules being set to return items with the internal category.

      Steps to Reproduce

      1. Startup Liferay and sign in as admin user
      2. Go to the Global site and navigate to Site Administration > Categorization > Categories
      3. Under the Topic section, create a new category called 'Animals'
      4. Under the Audience section, create a new cateogry called 'Faculty'
      5. Go to the default Liferay DXP site
      6. Navigate to Content and Data > Web Content
      7. Create a new web content article titled 'Animals' and assign the category 'Animals'
      8. Create another web content article titled 'Faculty' and assign the cateogry 'Faculty'
      9. Navigate to Site Administration > Site Builder > Collections
      10. Create a new Dynamic Collection
        1. Under Source / Item Type, select 'All Types'
        2. Under Filter, set the rule to be 'Contains Any of the following Categories' and select the Animals category
        3. Click Save
      11. Click on the three-dots icon for the Collection and select 'View Items'
      12. Observe that the web content categorized under 'Animals' is displayed
      13. Go back to Collection settings:
        1. Remove the 'Animals' category
        2. Select the 'Faculty' category
        3. Click Save
      14. Click on the three-dots icon for the Collection and select 'View Items'
        Expected Behavior: You will see the web content categorized under 'Faculty' is displayed
        Actual Behavior: There are no assets displayed

      Testing

      Branch - Reproduced

      6fa97bce4d5b8af0b2a784b6f449d1790f063326
      

      Master - Reproduced

      dab4f086501ebcca5d6ec14f3de9ac47fdad00d7
      

       

      Observations:

      1. **When filter is not being used, internal categories will show up in the result when you click "view items"
      2. Call is being done here: https://github.com/liferay/liferay-portal/blob/a7701997ce065011e14273683fa8a924e8a[...]/main/java/com/liferay/asset/internal/util/AssetHelperImpl.java
         

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              yang.cao Yang Cao
              Reporter:
              il.kim Brian I. Kim
              Participants of an Issue:
              Recent user:
              Clarissa Velazquez
              Engineering Assignee:
              Eudaldo Alonso
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                21 weeks, 1 day ago

                  Packages

                  Version Package
                  7.3.7 CE GA8
                  7.3.10 DXP FP2
                  7.3.X
                  7.4.1 CE GA2 DXP 7,4
                  Master