From 448a42916d5227e2b0b23ea1ed558d27ee0a2c9f Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Fri, 30 Dec 2011 11:31:24 -0600 Subject: [PATCH] SEC-1880: Corrected error message when using both logout-success-url and success-handler-ref --- .../security/config/http/LogoutBeanDefinitionParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/src/main/java/org/springframework/security/config/http/LogoutBeanDefinitionParser.java b/config/src/main/java/org/springframework/security/config/http/LogoutBeanDefinitionParser.java index e4d5de5000..6f3d6aff0d 100644 --- a/config/src/main/java/org/springframework/security/config/http/LogoutBeanDefinitionParser.java +++ b/config/src/main/java/org/springframework/security/config/http/LogoutBeanDefinitionParser.java @@ -63,7 +63,7 @@ class LogoutBeanDefinitionParser implements BeanDefinitionParser { if (StringUtils.hasText(successHandlerRef)) { if (StringUtils.hasText(logoutSuccessUrl)) { - pc.getReaderContext().error("Use " + ATT_LOGOUT_URL + " or " + ATT_LOGOUT_HANDLER + ", but not both", + pc.getReaderContext().error("Use " + ATT_LOGOUT_SUCCESS_URL + " or " + ATT_LOGOUT_HANDLER + ", but not both", pc.extractSource(element)); } builder.addConstructorArgReference(successHandlerRef);