ICEfaces
  1. ICEfaces
  2. ICE-3900

Cannot determine if user in role - using inputFile, menuItem, panelGroup with renderedOnUserRole

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.8
    • Fix Version/s: 1.8
    • Component/s: None
    • Labels:
      None
    • Environment:
      Windows, jBoss4.2.x, jBoss5.x, jdk1.6

      Description

      When i have panelGroup and menuItem with attribute renderedOnUserRole and i try upload a file with inputFile. I got the follow exception:

      16:57:28,745 WARN [lifecycle] Cannot determine if user in role. User information is not available.
      java.lang.RuntimeException: Cannot determine if user in role. User information is not available.
      at com.icesoft.faces.context.BridgeExternalContext$4.isUserInRole(BridgeExternalContext.java:146)
      at com.icesoft.faces.webapp.http.servlet.ServletEnvironmentRequest.isUserInRole(ServletEnvironmentRequest.java:207)
      at com.icesoft.faces.webapp.http.servlet.ServletExternalContext.isUserInRole(ServletExternalContext.java:243)
      at com.icesoft.faces.component.ext.taglib.Util.isRenderedOnUserRole(Util.java:111)
      at com.icesoft.faces.component.ext.HtmlPanelGrid.isRendered(HtmlPanelGrid.java:136)
      at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1018)
      at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1026)
      at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1026)
      at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1026)
      at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1026)
      at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1026)
      at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1026)
      at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1026)
      at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:540)
      at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:78)
      at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
      at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
      at com.icesoft.faces.webapp.xmlhttp.PersistentFacesState.execute(PersistentFacesState.java:229)
      at com.icesoft.faces.webapp.xmlhttp.PersistentFacesState.executeAndRender(PersistentFacesState.java:255)
      at com.icesoft.faces.webapp.xmlhttp.PersistentFacesState.setupAndExecuteAndRender(PersistentFacesState.java:267)
      at com.icesoft.faces.webapp.xmlhttp.PersistentFacesState$RenderRunner.run(PersistentFacesState.java:361)
      at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061)
      at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:575)
      at java.lang.Thread.run(Thread.java:619)

      and upload doesn't work.
      If I dont use renderedOnUserRole then upload works.

      Thanks

        Issue Links

          Activity

          Hide
          Deryk Sinotte added a comment -

          Marking as fixed in 1.8.0 (as per work on ICE-3707). Details are available in the duplicate case ICE-3808.

          Show
          Deryk Sinotte added a comment - Marking as fixed in 1.8.0 (as per work on ICE-3707 ). Details are available in the duplicate case ICE-3808 .
          Hide
          Deryk Sinotte added a comment -

          Actually marking as fixed this time.

          Show
          Deryk Sinotte added a comment - Actually marking as fixed this time.

            People

            • Assignee:
              Unassigned
              Reporter:
              Alexandre Cesarino
            • Votes:
              4 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: