Uploaded image for project: 'ZZZ: PUBLIC - Old Liferay Portal (Use Liferay Portal Standard Edition)'
  1. ZZZ: PUBLIC - Old Liferay Portal (Use Liferay Portal Standard Edition)
  2. LEP-2319

User sees "You do not have the roles required to access this portlet." when auto-completing a previously visited URL (Related to IE does not make a new request to the server when the user auto-completes a previously visited URL)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.2.1
    • Fix Version/s: 4.2.2, 4.3.0
    • Component/s: None
    • Labels:
      None

      Description

      HOW TO REPRODUCE

      If you System.out req.getRequestURL() in VirtualHostFilter or MainServlet, the URL that was auto-completed should be dispalyed in the console, but it never shows up

      Here are my test results:
      VirtualHostFilter=http://localhost:8080/c/portal/css_cached
      MainServlet:completeURL=http://localhost:8080/c/portal/css_cached
      MainServlet:queryString=themeId=classic&colorSchemeId=01
      MainServlet:completeURL=http://localhost:8080/c/portal/javascript_cached
      MainServlet:queryString=themeId=classic&languageId=en_US&colorSchemeId=01
      MainServlet:completeURL=http://localhost:8080/c/portal/render_portlet
      MainServlet:completeURL=http://localhost:8080/c/portal/render_portlet
      ...

      A new request IS sent to the server for FF, so this is an IE issue

      See here for possible solutions:
      http://en.wikipedia.org/wiki/XMLHTTP#Microsoft_Internet_Explorer_cache_issues

      Adding the following code to ServicePostAction fixes this issue; The original request (URL) is sent to the server, and the user is redirected to the login page instead of seeing "You do not have the roles required to access this portlet."

      res.setHeader( "Pragma", "no-cache" );
      res.addHeader( "Cache-Control", "must-revalidate" );
      res.addHeader( "Cache-Control", "no-cache" );
      res.addHeader( "Cache-Control", "no-store" );
      res.setDateHeader("Expires", 0);

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              edward.shin Edward Shin (Inactive)
              Reporter:
              edward.shin Edward Shin (Inactive)
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  4.2.2
                  4.3.0