cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject svn commit: r1235327 - /cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java
Date Tue, 24 Jan 2012 16:17:54 GMT
Author: ay
Date: Tue Jan 24 16:17:53 2012
New Revision: 1235327

URL: http://svn.apache.org/viewvc?rev=1235327&view=rev
Log:
[CXF-4060] oneway camel scenario is accessing the user principal too late, resulting in IllegalStateException

Modified:
    cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java

Modified: cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java?rev=1235327&r1=1235326&r2=1235327&view=diff
==============================================================================
--- cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java
(original)
+++ cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java
Tue Jan 24 16:17:53 2012
@@ -300,8 +300,9 @@ public abstract class AbstractHTTPDestin
         inMessage.put(Message.FIXED_PARAMETER_ORDER, isFixedParameterOrder());
         inMessage.put(Message.ASYNC_POST_RESPONSE_DISPATCH, Boolean.TRUE);
         inMessage.put(SecurityContext.class, new SecurityContext() {
+            private Principal pp = req.getUserPrincipal(); 
             public Principal getUserPrincipal() {
-                return req.getUserPrincipal();
+                return pp;
             }
             public boolean isUserInRole(String role) {
                 return req.isUserInRole(role);



Mime
View raw message