ICEfaces
  1. ICEfaces
  2. ICE-3157

Security Context is lost during Ajax Push

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.7
    • Fix Version/s: 1.7.2
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      Tomcat 5.5, Spring Security 2.0

      Description

      Whenever a server side Ajax Push is initiated the Security Context is lost.

      renderManager.getOnDemandRenderer(sessionId).requestRender();
      userController.isAdmin();

      leads to

      Caused by: java.lang.RuntimeException: Cannot determine if user in role. User information is not available.
              at com.icesoft.faces.context.BridgeExternalContext$3.isUserInRole(BridgeExternalContext.java:109)
              at com.icesoft.faces.webapp.http.servlet.ServletEnvironmentRequest.isUserInRole(ServletEnvironmentRequest.java:207)
              at com.icesoft.faces.webapp.http.servlet.ServletExternalContext.isUserInRole(ServletExternalContext.java:241)
              at org.SRDB.springbeans.UserController.isAdmin(UserController.java:59)
              at org.SRDB.springbeans.UserController$$FastClassByCGLIB$$fa7d0066.invoke(<generated>)
              at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
              at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:700)
              at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
              at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
              at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
              at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
              at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:635)
              at org.SRDB.springbeans.UserController$$EnhancerByCGLIB$$9fbfce45.isAdmin(<generated>)
              at sun.reflect.GeneratedMethodAccessor279.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:585)
              at javax.el.BeanELResolver.getValue(BeanELResolver.java:218)
              at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:135)
              at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
              at com.sun.el.parser.AstValue.getValue(AstValue.java:96)
              at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:183)
              at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
              ... 24 more

        Issue Links

          Activity

          Repository Revision Date User Message
          ICEsoft Public SVN Repository #17310 Thu Aug 07 14:55:44 MDT 2008 mark.collette ICE-3157 : Security Context is lost during Ajax Push
          Files Changed
          Commit graph MODIFY /icefaces/branches/icefaces-1.7/icefaces/core/src/com/icesoft/faces/context/BridgeExternalContext.java
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #17307 Thu Aug 07 13:33:39 MDT 2008 mark.collette ICE-3157 : Security Context is lost during Ajax Push
          Files Changed
          Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/context/BridgeExternalContext.java

            People

            • Assignee:
              Unassigned
              Reporter:
              Alexander H.
            • Votes:
              5 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: