mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-26 22:02:41 +00:00
SEC-2948: Fix error message for wrong xsd schema
When using the wrong xsd schema < 4.0 a message was shown that the schema needed to be version 3.2. In reality this schema had to be version 4.0.
This commit is contained in:
parent
aed288da05
commit
ca0ffb8b5d
@ -85,8 +85,8 @@ public final class SecurityNamespaceHandler implements NamespaceHandler {
|
|||||||
public BeanDefinition parse(Element element, ParserContext pc) {
|
public BeanDefinition parse(Element element, ParserContext pc) {
|
||||||
if (!namespaceMatchesVersion(element)) {
|
if (!namespaceMatchesVersion(element)) {
|
||||||
pc.getReaderContext()
|
pc.getReaderContext()
|
||||||
.fatal("You cannot use a spring-security-2.0.xsd or spring-security-3.0.xsd or spring-security-3.1.xsd schema "
|
.fatal("You cannot use a spring-security-2.0.xsd or spring-security-3.0.xsd or spring-security-3.1.xsd schema or spring-security-3.2.xsd schema "
|
||||||
+ "with Spring Security 3.2. Please update your schema declarations to the 3.2 schema.",
|
+ "with Spring Security 4.0. Please update your schema declarations to the 4.0 schema.",
|
||||||
element);
|
element);
|
||||||
}
|
}
|
||||||
String name = pc.getDelegate().getLocalName(element);
|
String name = pc.getDelegate().getLocalName(element);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user