You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rampart-dev@ws.apache.org by na...@apache.org on 2009/06/16 12:54:21 UTC
svn commit: r785158 -
/webservices/rampart/trunk/java/modules/rampart-core/src/main/java/org/apache/rampart/handler/PostDispatchVerificationHandler.java
Author: nandana
Date: Tue Jun 16 10:54:18 2009
New Revision: 785158
URL: http://svn.apache.org/viewvc?rev=785158&view=rev
Log:
Applying the patch for RAMPART-204. Thanks Bob.
Modified:
webservices/rampart/trunk/java/modules/rampart-core/src/main/java/org/apache/rampart/handler/PostDispatchVerificationHandler.java
Modified: webservices/rampart/trunk/java/modules/rampart-core/src/main/java/org/apache/rampart/handler/PostDispatchVerificationHandler.java
URL: http://svn.apache.org/viewvc/webservices/rampart/trunk/java/modules/rampart-core/src/main/java/org/apache/rampart/handler/PostDispatchVerificationHandler.java?rev=785158&r1=785157&r2=785158&view=diff
==============================================================================
--- webservices/rampart/trunk/java/modules/rampart-core/src/main/java/org/apache/rampart/handler/PostDispatchVerificationHandler.java (original)
+++ webservices/rampart/trunk/java/modules/rampart-core/src/main/java/org/apache/rampart/handler/PostDispatchVerificationHandler.java Tue Jun 16 10:54:18 2009
@@ -95,9 +95,13 @@
*/
public InvocationResponse invoke(MessageContext msgContext)
throws AxisFault {
- Policy policy = msgContext.getEffectivePolicy();
-
+ if (!msgContext.isEngaged(WSSHandlerConstants.SECURITY_MODULE_NAME)) {
+ return InvocationResponse.CONTINUE;
+ }
+
+ Policy policy = msgContext.getEffectivePolicy();
+
if(msgContext.getProperty(RampartMessageData.KEY_RAMPART_POLICY) != null) {
policy = (Policy)msgContext.getProperty(RampartMessageData.KEY_RAMPART_POLICY);
}