File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
main/java/org/springframework/security/config
test/java/org/springframework/security/config Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2024 the original author or authors.
2
+ * Copyright 2002-2025 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -94,9 +94,7 @@ public SecurityNamespaceHandler() {
94
94
public BeanDefinition parse (Element element , ParserContext pc ) {
95
95
if (!namespaceMatchesVersion (element )) {
96
96
pc .getReaderContext ()
97
- .fatal ("You cannot use a spring-security-2.0.xsd or spring-security-3.0.xsd or "
98
- + "spring-security-3.1.xsd schema or spring-security-3.2.xsd schema or spring-security-4.0.xsd schema "
99
- + "with Spring Security 7.0. Please update your schema declarations to the 7.0 schema." ,
97
+ .fatal ("You cannot use any XSD older than spring-security-7.0.xsd. Either change to spring-security.xsd or spring-security-7.0.xsd" ,
100
98
element );
101
99
}
102
100
String name = pc .getDelegate ().getLocalName (element );
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2022 the original author or authors.
2
+ * Copyright 2002-2025 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -77,7 +77,8 @@ public void pre32SchemaAreNotSupported() {
77
77
.isThrownBy (() -> new InMemoryXmlApplicationContext (
78
78
"<user-service id='us'><user name='bob' password='bobspassword' authorities='ROLE_A' /></user-service>" ,
79
79
"3.0.3" , null ))
80
- .withMessageContaining ("You cannot use a spring-security-2.0.xsd" );
80
+ .withMessageContaining (
81
+ "You cannot use any XSD older than spring-security-7.0.xsd. Either change to spring-security.xsd or spring-security-7.0.xsd" );
81
82
}
82
83
83
84
// SEC-1868
You can’t perform that action at this time.
0 commit comments