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

After upgrade Liferay 7.0 to 7.1 the method AssetEntryLocalServiceUtil.getAssetCategoryAssetEntries don't return results

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Duplicate
    • Affects Version/s: 7.1.X
    • Fix Version/s: None
    • Component/s: Asset Framework
    • Labels:
    • Fix Priority:
      3

      Description

      In Liferay 7.0 if you have several categories and several web contents with category and call to method AssetEntryLocalServiceUtil.getAssetCategoryAssetEntries(categoryId) this one returns the AssetEntry with relationships this categoryId.

      After the upgrade to Liferay 7.1 this method returns the result that you create before but if you create new web content with category it doesn't find the new web content because the new relationship saves in other table assetentryassetcategoryrel and this method searches in assetentries_assetcategories

      Steps to reproduce

      1. Start at Liferay 7.0.
      2. Create a new category.
      3. Create new web content with before category.
      4. Call AssetEntryLocalServiceUtil.getAssetCategoryAssetEntries with categoryId created before.
      5. The method returns a result.
      6. Upgrade Liferay to 7.1
      7. Create new web content with a category.
      8. Call AssetEntryLocalServiceUtil.getAssetCategoryAssetEntries with categoryId.

       Expected behavior

      The method returns all assetEntry with this category.

        Actual behavior

      The method only returns the assetEntry create before the upgrade.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              yang.cao Yang Cao
              Reporter:
              pablo.calvo Pablo Calvo (Inactive)
              Participants of an Issue:
              Recent user:
              Yang Cao
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 6 weeks, 6 days ago

                  Packages

                  Version Package