ICEfaces
  1. ICEfaces
  2. ICE-5151

Check isUserInRole on initial request

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: 1.8.1
    • Fix Version/s: 1.8.2-EE-Beta, 1.8.2-EE-GA
    • Component/s: None
    • Labels:
      None
    • Environment:
      -

      Description

      In certain cases, the user's role is not initialized until after the first request. The fix is to check isUserInRole on the initial request in ServletEnvironmentRequest.java:

      public boolean isUserInRole(String role) {
          
           if (initialRequest.isUserInRole(role)) {
               return true;
              }
              
              return authorization.isUserInRole(role);
          }

      There are 2 forums posts regarding this issue:

      http://www.icefaces.org/JForum/posts/list/13040.page
      http://www.icefaces.org/JForum/posts/list/12530.page

        Activity

          People

          • Assignee:
            Ted Goddard
            Reporter:
            Tyler Johnson
          • Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: