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

Full stacktrace is printed in logs within a WARN message when "Remember Me" cookie is not valid

    Details

      Description

      The full stacktrace is printed when a WARN message is logged because of a BadPadding exceptions when trying to retrieve old "Remember Me" cookies. This causes in some occasions that:

      • Logs from customers who have upgraded their servers grow considerably, making them unusable.
      • They worry too much about a WARN message that has no consequences. If the user logs in again the cookie will be updated and the message will no longer appear.

      Steps to reproduce:

      1. Start a 6.2 server in http://localhost:6200.
      2. Log in with 'Test' user and check the 'Remember Me' checkbox.
      3. Start a master server in http://localhost:8080.
      4. Using the same browser as in step 2, navigate to http://localhost:8080.
      5. Check the logs.

      Current result (see logs attached):

      • An ERROR from AutoLogin filter is logged with no stacktrace.
      • A WARN from RememberMeAutoLogin is logged, including a full stacktrace exception.

      Expected result:

      • An ERROR from AutoLogin filter is logged with no stacktrace.
      • A DEBUG full stacktrace from RememberMeAutoLogin is logged if debug traces are enabled.

        Attachments

          Activity

            People

            Assignee:
            gabor.lovas Gábor Lovas
            Reporter:
            cristina.rodriguez Cristina Rodriguez
            Participants of an Issue:
            Recent user:
            Sophia Zhang
            Engineering Assignee:
            Cristina Rodriguez
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

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

                Packages

                Version Package
                7.3.7 CE GA8
                7.3.10 DXP FP2
                7.3.X
                7.4.0 CE GA1 DXP 7,4
                7.4.13 DXP GA1
                Master