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

Cache error in ExpandoValuePersistenceImpl

    Details

      Description

      While debugging my app', I found a strange piece of code. This snippet is in the class ExpandoValuePersistenceImpl especially in the method fetchByT_C_C. This method looks for ExpandoValue with TableID, ColumnID and ClassPK.

      After retrieving the records in the database with q.list(), results are cached if vars correspond to the following condition :

      if ((expandoValue.getTableId() != tableId) ||
      (expandoValue.getColumnId() != columnId) ||
      (expandoValue.getClassPK() != classPK)) {
      FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_T_C_C,
      finderArgs, expandoValue);
      }

      Caching is not at all consistent with the system. How a select with "=" criterias, can return data other than those entered in parameters? The "!=" Should probably be replaced by "="

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 25 weeks, 1 day ago

                Packages

                Version Package
                6.2.0 CE M4