Skip to content

Commit 1de492a

Browse files
committed
URL Cleanup - fix undesirable code change
Namespace handlers are mapped based on the canonical names for XML namespaces which in Spring do not use "https" as the scheme. See gh-22678
1 parent e435ea7 commit 1de492a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-beans/src/main/java/org/springframework/beans/factory/xml/BeanDefinitionParserDelegate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1446,7 +1446,7 @@ public BeanDefinitionHolder decorateIfRequired(
14461446
if (handler != null) {
14471447
return handler.decorate(node, originalDef, new ParserContext(this.readerContext, this, containingBd));
14481448
}
1449-
else if (namespaceUri != null && namespaceUri.startsWith("https://www.springframework.org/")) {
1449+
else if (namespaceUri != null && namespaceUri.startsWith("http://www.springframework.org/")) {
14501450
error("Unable to locate Spring NamespaceHandler for XML schema namespace [" + namespaceUri + "]", node);
14511451
}
14521452
else {

0 commit comments

Comments
 (0)