axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davidills...@apache.org
Subject svn commit: r482227 - /webservices/axis2/trunk/java/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingInHandler.java
Date Mon, 04 Dec 2006 16:15:17 GMT
Author: davidillsley
Date: Mon Dec  4 08:15:14 2006
New Revision: 482227

URL: http://svn.apache.org/viewvc?view=rev&rev=482227
Log:
Improve WS-Addressing action validation
(Throw fault when wsa:Action header is present but empty)

Modified:
    webservices/axis2/trunk/java/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingInHandler.java

Modified: webservices/axis2/trunk/java/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingInHandler.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingInHandler.java?view=diff&rev=482227&r1=482226&r2=482227
==============================================================================
--- webservices/axis2/trunk/java/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingInHandler.java
(original)
+++ webservices/axis2/trunk/java/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingInHandler.java
Mon Dec  4 08:15:14 2006
@@ -305,6 +305,12 @@
         if(log.isTraceEnabled()){
             log.trace("extractActionInformation: soapAction='"+soapAction+"' wsa:Action='"+wsaAction+"'");
         }
+        
+        // Need to validate that the content of the wsa:Action header is not null or whitespace
+        if((wsaAction==null) || "".equals(wsaAction.trim())){
+            AddressingFaultsHelper.triggerActionNotSupportedFault(messageContext, wsaAction);
+        }
+        
         // The isServerSide check is because the underlying Options object is
         // shared between request and response MessageContexts for Sync
         // invocations. If the soapAction is set outbound and a wsa:Action is



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message