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

inconsistent index/Transaction issues // version 5.2.5

    Details

      Description

      Basically I set a user inactive and throw an exception afterwards. The method (checkDatabaseCache) which is
      executed and throws the exception is generated through the serviceBuilder and marked as transactional. In
      addition, it should be transactional anyway, since it starts with check (according to liferay-theme-loader_5_2_0.dtd).
      After processing the method we have the following issue: In the database, the user is still set as active, as it
      should be since the transaction got rolled back, but the cache returns the user as inactive. Now we can set the
      user active in the backend which we should not be able to do. This means, we have temporary inconsistent
      states. In this very simple case, it might not look as such a bad matter, but this is a very serious problem and
      should be fixed quickly!

      Hier noch ein paar kleine Schnipsel:
      Aus der enterprise_admin/user_action.jsp:

      ###########

      <portlet:actionURL windowState="<%= WindowState.MAXIMIZED.toString() %>" var="editUserTestTransactionURL">
      <portlet:param name="struts_action" value="/enterprise_admin/edit_user" />
      <portlet:param name="<%= Constants.CMD %>" value="testtransaction" />
      <portlet:param name="redirect" value="<%= redirect %>" />
      <portlet:param name="p_u_i_d" value="<%= String.valueOf(userId) %>" />
      </portlet:actionURL>

      <liferay-ui:icon image="testtransaction" url="<%= editUserTestTransactionURL %>" />
      ###########

      Aus der EditUserAction.java (cmd - Abfrage
      ###########
      else if(cmd.equals("testtransaction"))

      { TestTransactionLocalServiceUtil.checkDatabaseCache(); }

      ###########

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                8 years, 20 weeks, 1 day ago

                Packages

                Version Package
                --Sprint 11/12
                6.2.0 CE M2