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

AssetCatetory sarch dosen't work both on 6.1 GA2 EE and CE

    Details

      Description

      Dear Lifeary Support,
      we have found some asset search problems by using last version of Liferay 6.1 GA2 both CE and EE.

      If you create a new Vocabulary and add a new Category, you will reproduce the issue by using serach box filtered by categories.
      We have added two categories named "Saluto" and "Salve" (see screenshot 01). So, for example, if you put into serach box the first char 's', any category will be found by the AssetCategoryService (see screenshot 02).

      Parameters posted to server are:
      ---------------------------------------------------------------------------------
      doAsUserId
      end -1
      groupId 10180
      name %s%
      obc
      p_auth 8hWQgGtV
      serviceClassName com.liferay.portlet.asset.service.AssetCategoryServiceUtil
      serviceMethodName getJSONVocabularyCategories
      serviceParameters ["groupId","name","vocabularyId","start","end","obc"]
      start -1
      vocabularyId 11702
      ---------------------------------------------------------------------------------

      On the contrary, by using the second char 'a' (see screenshot 03) the AssetCategoryService will found two results, as expected.

      Parameters posted to server are:
      ---------------------------------------------------------------------------------
      doAsUserId
      end -1
      groupId 10180
      name %a%
      obc
      p_auth 8hWQgGtV
      serviceClassName com.liferay.portlet.asset.service.AssetCategoryServiceUtil
      serviceMethodName getJSONVocabularyCategories
      serviceParameters ["groupId","name","vocabularyId","start","end","obc"]
      start -1
      vocabularyId 11702
      ---------------------------------------------------------------------------------

      Could you investigate the problem and tell us possible solution?
      This issue wasn't in Liferay 6.1 GA1 both CE and EE. We reckon that there are some problems in this method:

      public List<AssetCategory> getVocabularyCategories(
      long groupId, String name, long vocabularyId, int start, int end,
      OrderByComparator obc)
      throws SystemException

      { return assetCategoryFinder.filterFindByG_N_V( groupId, name, vocabularyId, start, end, obc); }

      Best Regards,
      Francesco.

        Attachments

        1. ScreenHunter_01.jpg
          ScreenHunter_01.jpg
          17 kB
        2. ScreenHunter_02.jpg
          ScreenHunter_02.jpg
          20 kB
        3. ScreenHunter_03.jpg
          ScreenHunter_03.jpg
          19 kB

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 24 weeks, 2 days ago

                Packages

                Version Package
                6.2.0 CE M4