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

Inconsistent 404 error for invalid links.

    Details

      Description

      Issues: Currently, portal behaves inconsistently when directing different invalid links.

      Steps to reproduce:

      1. Set "layout.friendly.url.page.not.found=/html/portal/404.html" AND "sites.friendly.url.page.not.found=/html/portal/404.html" in portal-ext.propeties.
      2. Place the attached 404.html into ROOT/html/portal/ in Tomcat
      3. Start the server and log in as default user.
      4. Navigate to Site Administration > Content > Documents and Media.
      5. Upload a new Document and copy the URL for it. Delete the Document afterwards
      6. Add a WCD portlet in a page.
      7. Create a web content with following hyperlinks:
        A: Use URL to Document uploaded in Step 5.
        (Something like http://localhost:8080/documents/20181/0/Test/fa5f067f-4f43-4338-aeea-82f487cac503)
        B: Use URL to Document uploaded in Step 5, change the Repository ID to 99999.
        (i.e. changing 20181 into 99999)
      8. Now A is a link with a valid repository ID but B is a link with an invalid one. Click on Link A and B separately.

      Expected Behaviour: Both links should be directed to the error page (404.html).

      Actual Behaviour: Only link A is redirected to the error page and link B just leads to refreshing page.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              felix.zhang Felix Zhang
              Reporter:
              john.zhao John Zhao (Inactive)
              Participants of an Issue:
              Recent user:
              Marta Elicegui
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 35 weeks, 4 days ago

                  Packages

                  Version Package
                  6.2.4 CE GA5
                  6.2.X EE
                  7.0.0 M4