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

Wrong error message shown when accessing a restricted page

    Details

      Description

      Steps to reproduce

      1. Start a clean bundle
      2. Login as admin
      3. Create a new private page
      4. Create a new user
      5. Note that the new user is not a member of the Liferay site
      6. Update the log com.liferay.portal.events.ServicePreAction for warn in Server Administration->Log levels
      7. Logout
      8. Login as the new user
      9. User is redirected back to the private page

      Actual results
      A "Not found" error is shown in UI,
      And the below log is printed in log.

      34:20,911 WARN  [http-nio-8080-exec-1][ServicePreAction:434] User 32550 is not allowed to access the private pages of group 20143
      

      The log is not consistent with UI error.

      Expected results
      A "Forbidden" error message is shown in UI

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              joyce.wang Joyce Wang
              Reporter:
              hai.yu Hai Yu
              Participants of an Issue:
              Recent user:
              Csaba Turcsan
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 15 weeks, 1 day ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.0 DXP FP11
                  7.0.0 DXP SP2
                  7.0.3 CE GA4
                  7.1.X
                  Master