You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by da...@apache.org on 2006/12/04 17:15:17 UTC

svn commit: r482227 - /webservices/axis2/trunk/java/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingInHandler.java

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