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

Default site page doesn't redirect to login when default page is not allowed by guest and the site login page is hidden

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.1.1 CE GA2, 6.1.20 EE GA2
    • Fix Version/s: 6.1.30 EE GA3, 6.2.0 CE M5
    • Component/s: Application Security
    • Labels:
    • Environment:
      Clean bundle and portal-ext.properties with:
      auth.login.site.url=/login
    • Branch Version/s:
      6.1.x
    • Backported to Branch:
      Committed
    • Story Points:
      3

      Description

      This LPS is created because LPS-34215 not covers request to default site page, using the friendlyURL of a site like localhost:8080/web/site1

      Steps to reproduce:

      1. Configure a page as site login adding to portal-ext.properties:

      auth.login.site.url=/login

      2. Create an empty Site: site1

      3. Add a public page "/home" and make it not viewable by the guest user:
      Manage -> Page: Permissions -> uncheck Guest - view, and save

      4. Add another public page "/login" , and hide it
      Manage -> Page -> Check Hidden, and save.
      Result: the page is not displayed in the navigation bar

      5. Logout, and go to localhost:8080/web/site1/login
      Result: ok, the page is accesible

      6. Logout, and go to localhost:8080/web/site1

      Result: You do not have permission to view this page.

      Expected: redirected to localhost:8080/web/site1/login

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mark.jin Mark Jin (Inactive)
                Reporter:
                jose.jimenez Jose Jimenez
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  4 years, 13 weeks, 2 days ago