Details
-
Type: Bug
-
Status: Closed
-
Priority: 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
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
-
Hide
- ice-bug.zip
- 3.33 MB
- Alexandre Cesarino
-
- ice-bug/.classpath 0.6 kB
- ice-bug/.project 1 kB
- ice-bug/src/roles.properties 0.0 kB
- ice-bug/src/test/UploadBean.java 1 kB
- ice-bug/src/users.properties 0.0 kB
- ice-bug/web/index.jsp 0.3 kB
- ice-bug/web/layout.jspx 2 kB
- ice-bug/web/login.jspx 1 kB
- ice-bug/web/menuheader.jspx 1.0 kB
- ice-bug/web/META-INF/MANIFEST.MF 0.0 kB
- ice-bug/web/pages/main.jspx 0.8 kB
- ice-bug/web/pages/menu.jspx 0.5 kB
- ice-bug/web/pages/t_main.jspx 0.6 kB
- ice-bug/web/WEB-INF/faces-config.xml 0.6 kB
- ice-bug/web/WEB-INF/jboss-web.xml 0.4 kB
- ice-bug/.../backport-util-concurrent-3.1.jar 324 kB
- ice-bug/web/.../commons-fileupload-1.2.1.jar 56 kB
- ice-bug/web/.../lib/icefaces-1.7.2-SP1.jar 990 kB
- ice-bug/web/.../icefaces-comps-1.7.2-SP1.jar 1.71 MB
- ice-bug/.../icefaces-facelets-1.7.2-SP1.jar 596 kB
- ice-bug/web/WEB-INF/web.xml 5 kB
- ice-bug/web/WEB-INF/web.xml.bak 1 kB
-
Hide
- ice-bug.war
- 3.32 MB
- Alexandre Cesarino
-
- META-INF/MANIFEST.MF 0.1 kB
- WEB-INF/classes/roles.properties 0.0 kB
- WEB-INF/classes/test/UploadBean.class 2 kB
- WEB-INF/classes/users.properties 0.0 kB
- WEB-INF/faces-config.xml 0.6 kB
- WEB-INF/jboss-web.xml 0.4 kB
- WEB-INF/.../backport-util-concurrent-3.1.jar 324 kB
- WEB-INF/lib/commons-fileupload-1.2.1.jar 56 kB
- WEB-INF/lib/icefaces-1.7.2-SP1.jar 990 kB
- WEB-INF/lib/icefaces-comps-1.7.2-SP1.jar 1.71 MB
- WEB-INF/.../icefaces-facelets-1.7.2-SP1.jar 596 kB
- WEB-INF/web.xml 5 kB
- index.jsp 0.3 kB
- layout.jspx 2 kB
- login.jspx 1 kB
- menuheader.jspx 1.0 kB
- pages/main.jspx 0.8 kB
- pages/menu.jspx 0.5 kB
- pages/t_main.jspx 0.6 kB
Issue Links
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Actually marking as fixed this time.
Show
Deryk Sinotte
added a comment - Actually marking as fixed this time.
Marking as fixed in 1.8.0 (as per work on
ICE-3707). Details are available in the duplicate caseICE-3808.