[SWS-675] XwssSecurityInterceptor in combination with <sws:interceptors> Created: 03/Jan/11  Updated: 04/May/12  Resolved: 05/Jan/11

Status: Closed
Project: Spring Web Services
Component/s: Core
Affects Version/s: 2.0 RC2
Fix Version/s: 2.0 GA

Type: Bug Priority: Minor
Reporter: Arjen Poutsma Assignee: Arjen Poutsma
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 0.45d
Original Estimate: Not Specified

Reference URL: http://forum.springsource.org/showpost.php?p=336815&postcount=7

 Description   

The following config:

 
<sws:interceptors>
<bean id="wsSecurityInterceptor" class="org.springframework.ws.soap.security.xwss.X wsSecurityInterceptor">
<description>
This interceptor validates incoming messages according to the policy defined in
'securityPolicy.xml'.
The policy defines that all incoming requests must have a UsernameToken with a password digest
in it.
The actual authentication is performed by the Spring callback handler.
</description>
<property name="secureResponse" value="false"/>
<property name="policyConfiguration"
value="/WEB-INF/spring/securityPolicy.xml"/>
<property name="callbackHandlers">
<list>
<bean class="org.springframework.ws.soap.security.xwss.c allback.SpringDigestPasswordValidationCallbackHand ler">
<property name="userDetailsService" ref="securityService"/>
<property name="userCache" ref="userCache"/>
</bean>
<bean class="com.xifin.security.UserValidationCallbackHa ndler">
<property name="userCache" ref="userCache"/>
</bean>
</list>
</property>
</bean>
 
</sws:interceptors>

results in the following exception:

2010-12-30 16:35:37,699 DEBUG SoapMessageDispatcher[handleHeaders() line 120] - Handling MustUnderstand header {http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}Security
2010-12-30 16:35:37,702 WARN SoapMessageDispatcher[createMustUnderstandFault() line 162] - Could not handle mustUnderstand headers: {http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}Security. Returning fault
2010-12-30 16:35:37,704 DEBUG sent[receive() line 181] - Sent response [SaajSoapMessage http://schemas.xmlsoap.org/soap/envelope/}Fault] for request [SaajSoapM



 Comments   
Comment by Arjen Poutsma [ 05/Jan/11 ]

Fixed!

Comment by Arjen Poutsma [ 04/May/12 ]

Closing old issues

Generated at Thu Dec 14 00:34:16 UTC 2017 using JIRA 6.4.14#64029-sha1:ae256fe0fbb912241490ff1cecfb323ea0905ca5.