Skip to content

Commit f6ea99d

Browse files
Prepare for Spring Security 6.4
Closes gh-15155
1 parent ddcaeb5 commit f6ea99d

File tree

13 files changed

+5318
-333
lines changed

13 files changed

+5318
-333
lines changed

.github/dependabot.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,31 @@ updates:
5454
update-types:
5555
- version-update:semver-major
5656
- version-update:semver-minor
57+
- package-ecosystem: gradle
58+
target-branch: 6.3.x
59+
directory: /
60+
schedule:
61+
interval: daily
62+
time: '03:00'
63+
timezone: Etc/UTC
64+
labels:
65+
- 'type: dependency-upgrade'
66+
registries:
67+
- spring-milestones
68+
ignore:
69+
- dependency-name: com.nimbusds:nimbus-jose-jwt
70+
- dependency-name: org.python:jython
71+
- dependency-name: org.apache.directory.server:*
72+
- dependency-name: org.junit:junit-bom
73+
update-types:
74+
- version-update:semver-major
75+
- dependency-name: org.mockito:mockito-bom
76+
update-types:
77+
- version-update:semver-major
78+
- dependency-name: '*'
79+
update-types:
80+
- version-update:semver-major
81+
- version-update:semver-minor
5782
- package-ecosystem: gradle
5883
target-branch: main
5984
directory: /
@@ -83,6 +108,7 @@ updates:
83108
update-types:
84109
- version-update:semver-major
85110
- version-update:semver-minor
111+
86112
- package-ecosystem: github-actions
87113
target-branch: 5.8.x
88114
directory: /
@@ -93,6 +119,26 @@ updates:
93119
- 'in: build'
94120
ignore:
95121
- dependency-name: sjohnr/*
122+
- package-ecosystem: github-actions
123+
target-branch: 6.2.x
124+
directory: /
125+
schedule:
126+
interval: weekly
127+
labels:
128+
- 'type: task'
129+
- 'in: build'
130+
ignore:
131+
- dependency-name: sjohnr/*
132+
- package-ecosystem: github-actions
133+
target-branch: 6.3.x
134+
directory: /
135+
schedule:
136+
interval: weekly
137+
labels:
138+
- 'type: task'
139+
- 'in: build'
140+
ignore:
141+
- dependency-name: sjohnr/*
96142
- package-ecosystem: github-actions
97143
target-branch: main
98144
directory: /
@@ -125,6 +171,11 @@ updates:
125171
directory: /docs
126172
schedule:
127173
interval: weekly
174+
- package-ecosystem: npm
175+
target-branch: 6.3.x
176+
directory: /docs
177+
schedule:
178+
interval: weekly
128179
- package-ecosystem: npm
129180
target-branch: 6.2.x
130181
directory: /docs

.github/workflows/release-scheduler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
matrix:
1313
# List of active maintenance branches.
14-
branch: [ main, 6.2.x, 6.1.x, 5.8.x ]
14+
branch: [ main, 6.3.x, 6.2.x, 5.8.x ]
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Checkout

config/src/main/java/org/springframework/security/config/SecurityNamespaceHandler.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2009-2022 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -96,7 +96,7 @@ public BeanDefinition parse(Element element, ParserContext pc) {
9696
pc.getReaderContext()
9797
.fatal("You cannot use a spring-security-2.0.xsd or spring-security-3.0.xsd or "
9898
+ "spring-security-3.1.xsd schema or spring-security-3.2.xsd schema or spring-security-4.0.xsd schema "
99-
+ "with Spring Security 6.3. Please update your schema declarations to the 6.3 schema.",
99+
+ "with Spring Security 6.4. Please update your schema declarations to the 6.4 schema.",
100100
element);
101101
}
102102
String name = pc.getDelegate().getLocalName(element);
@@ -221,7 +221,7 @@ private boolean namespaceMatchesVersion(Element element) {
221221

222222
private boolean matchesVersionInternal(Element element) {
223223
String schemaLocation = element.getAttributeNS("http://www.w3.org/2001/XMLSchema-instance", "schemaLocation");
224-
return schemaLocation.matches("(?m).*spring-security-6\\.3.*.xsd.*")
224+
return schemaLocation.matches("(?m).*spring-security-6\\.4.*.xsd.*")
225225
|| schemaLocation.matches("(?m).*spring-security.xsd.*")
226226
|| !schemaLocation.matches("(?m).*spring-security.*");
227227
}

config/src/main/resources/META-INF/spring.schemas

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,21 @@
1-
http\://www.springframework.org/schema/security/spring-security.xsd=org/springframework/security/config/spring-security-6.3.xsd
1+
#
2+
# Copyright 2002-2024 the original author or authors.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# https://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
17+
http\://www.springframework.org/schema/security/spring-security.xsd=org/springframework/security/config/spring-security-6.4.xsd
18+
http\://www.springframework.org/schema/security/spring-security-6.4.xsd=org/springframework/security/config/spring-security-6.4.xsd
219
http\://www.springframework.org/schema/security/spring-security-6.3.xsd=org/springframework/security/config/spring-security-6.3.xsd
320
http\://www.springframework.org/schema/security/spring-security-6.2.xsd=org/springframework/security/config/spring-security-6.2.xsd
421
http\://www.springframework.org/schema/security/spring-security-6.1.xsd=org/springframework/security/config/spring-security-6.1.xsd
@@ -23,7 +40,8 @@ http\://www.springframework.org/schema/security/spring-security-2.0.xsd=org/spri
2340
http\://www.springframework.org/schema/security/spring-security-2.0.1.xsd=org/springframework/security/config/spring-security-2.0.1.xsd
2441
http\://www.springframework.org/schema/security/spring-security-2.0.2.xsd=org/springframework/security/config/spring-security-2.0.2.xsd
2542
http\://www.springframework.org/schema/security/spring-security-2.0.4.xsd=org/springframework/security/config/spring-security-2.0.4.xsd
26-
https\://www.springframework.org/schema/security/spring-security.xsd=org/springframework/security/config/spring-security-6.3.xsd
43+
https\://www.springframework.org/schema/security/spring-security.xsd=org/springframework/security/config/spring-security-6.4.xsd
44+
https\://www.springframework.org/schema/security/spring-security-6.4.xsd=org/springframework/security/config/spring-security-6.4.xsd
2745
https\://www.springframework.org/schema/security/spring-security-6.3.xsd=org/springframework/security/config/spring-security-6.3.xsd
2846
https\://www.springframework.org/schema/security/spring-security-6.2.xsd=org/springframework/security/config/spring-security-6.2.xsd
2947
https\://www.springframework.org/schema/security/spring-security-6.1.xsd=org/springframework/security/config/spring-security-6.1.xsd

0 commit comments

Comments
 (0)