cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1062011 - /cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/WSS4JInInterceptor.java
Date Fri, 21 Jan 2011 20:31:55 GMT
Author: dkulp
Date: Fri Jan 21 20:31:54 2011
New Revision: 1062011

URL: http://svn.apache.org/viewvc?rev=1062011&view=rev
Log:
[CXF-3170] Also put a GET guard on WSS4JInInterceptor

Modified:
    cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/WSS4JInInterceptor.java

Modified: cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/WSS4JInInterceptor.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/WSS4JInInterceptor.java?rev=1062011&r1=1062010&r2=1062011&view=diff
==============================================================================
--- cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/WSS4JInInterceptor.java
(original)
+++ cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/WSS4JInInterceptor.java
Fri Jan 21 20:31:54 2011
@@ -146,9 +146,13 @@ public class WSS4JInInterceptor extends 
         }               
         return result;
     }
+    public final boolean isGET(SoapMessage message) {
+        String method = (String)message.get(SoapMessage.HTTP_REQUEST_METHOD);
+        return "GET".equals(method) && message.getContent(XMLStreamReader.class)
== null;
+    }
     
     public void handleMessage(SoapMessage msg) throws Fault {
-        if (msg.containsKey(SECURITY_PROCESSED)) {
+        if (msg.containsKey(SECURITY_PROCESSED) || isGET(msg)) {
             return;
         }
         msg.put(SECURITY_PROCESSED, Boolean.TRUE);



Mime
View raw message