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

Getting 400 page not found error instead of /c/portal/status(status.jsp)

    Details

      Description

      IMPORTANT NOTE: Behavior fixed in this issue will be changed after LPS-63997 (for Combo servlet only).

      This issue exists in all liferay versions(6.2 and before) including CE & EE editions.
      Steps to reproduce:

      1. Go to any public facing liferay sites(http://www.sesamestreet.org/)
      (https://www.bcbsal.org/)
      2. Take any <servlet-mapping> -> <url-pattern> values from web.xml (from ROOT folder ->WEB-INF/web.xml) for example: /combo/*
      3. add this to the public domain. www.sesamestreet.org/combo/ and access the page
      4. Will get http 404 error. It suppose to redirect to /c/portal/status to display error page.
      5. Can be reproducible in local in environment too. Just access localhost:8080/combo/

      Issue: in VirtualHostFilter.java
      After this condition:
      if (!friendlyURL.equals(StringPool.SLASH) &&
      !isValidFriendlyURL(friendlyURL)) {
      _log.debug("Friendly URL is not valid");
      After URL is determined not as valid URL, the user should be redirected
      to the /c/portal/status, instead it continuing with filter chain processing.

      If site was access with hostname/combo1/ hostname/combo (without forward slash at end), liferay is redirecting to the /c/portal/status (status.jsp) error page.

        Attachments

        1. fixed-LPS57889-2.png
          fixed-LPS57889-2.png
          49 kB
        2. fixe-LPS57889-1.png
          fixe-LPS57889-1.png
          48 kB
        3. LiferayError.png
          LiferayError.png
          138 kB
        4. reproduced-LPS57889-1.png
          reproduced-LPS57889-1.png
          28 kB
        5. reproduced-LPS57889-2.png
          reproduced-LPS57889-2.png
          26 kB

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  6.1.X EE
                  6.2.4 CE GA5
                  6.2.X EE
                  7.0.0 Alpha 1