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

Inactive sites returns a 404 instead of a proper error message

    Details

      Description

      Reproduction steps:

      1. Start a Vanilla DXP 7.1 (FP-15)
      2. Create a "Test" Site
      3. Create a new page "Home"
      4. Access the home page, note that verything works properly
      5. Deactivate the site in Site Settings
      6. Try to access the site again -> you will get a white non customizable 404 Page cannot be found (Existing INACTIVE site.PNG)
      7. Try to access a RANDOM nonexistent site like web/randomsite (Nonexistent site.PNG)
      8. Observe that you get a nice, styled 404 error message, which implies that the site couldn't be found

      For some reason, the nonexistent pages are being handled differently. This white 404 default error cannot be either styled nor handled. This behaviour is not consistent.

       Reproduced on
      7.1.x 22d99711f8bc6321afcd5110b430271114096830
      master a50b7ce4acf06f0c2728dbcc104069223dd2071d

      There was a previous attempt to fix this issue: LPS-84414, but it produced LPS-84695 as regression. This solution does not have this regression.

        Attachments

          Activity

            People

            Assignee:
            yang.cao Yang Cao
            Reporter:
            attila.bakay Attila Bakay
            Participants of an Issue:
            Recent user:
            Jason Pince
            Engineering Assignee:
            Attila Bakay
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              29 weeks, 2 days ago

                Packages

                Version Package
                7.1.10 DXP FP18
                7.1.X
                7.2.10 DXP FP5
                7.2.10.2 DXP SP2
                7.2.X
                7.3.10 DXP GA1
                Master