Skip to content
Permalink
Browse files
Applying patch for RAMPART-305 provided by AmilaJ
  • Loading branch information
Thilina Mahesh Buddhika committed Feb 19, 2011
1 parent a1618a1 commit 2bb20a9aa6db6d2d0d1a956f5baf14ae64c42f87
Showing 1 changed file with 12 additions and 5 deletions.
@@ -36,7 +36,7 @@
public class RampartSender implements Handler {

private static Log mlog = LogFactory.getLog(RampartConstants.MESSAGE_LOG);

private static HandlerDescription EMPTY_HANDLER_METADATA =
new HandlerDescription("default Handler");

@@ -54,10 +54,11 @@ public void init(HandlerDescription handlerdesc) {
}

public InvocationResponse invoke(MessageContext msgContext) throws AxisFault {

if (!msgContext.isEngaged(WSSHandlerConstants.SECURITY_MODULE_NAME)) {
return InvocationResponse.CONTINUE;
}
return InvocationResponse.CONTINUE;
}


MessageBuilder builder = new MessageBuilder();
try {
@@ -67,7 +68,13 @@ public InvocationResponse invoke(MessageContext msgContext) throws AxisFault {
} catch (WSSPolicyException e) {
throw new AxisFault(e.getMessage(), e);
} catch (RampartException e) {
throw new AxisFault(e.getMessage(), e);
// If a framework exception is occurred while processing a security fault
// send the original fault to the client.
if (msgContext.isProcessingFault()) {
return InvocationResponse.CONTINUE;
} else {
throw new AxisFault(e.getMessage(), e);
}
}

if(mlog.isDebugEnabled()){

0 comments on commit 2bb20a9

Please sign in to comment.