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

              joyce.wang Joyce Wang
              hai.yu Hai Yu
              Kiyoshi Lee Kiyoshi Lee
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                6 years, 17 weeks, 5 days 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