From 4d99ee289649e351f29476f6ebcd8661d5c51931 Mon Sep 17 00:00:00 2001 From: Josh Cummings Date: Wed, 18 Mar 2020 08:23:04 -0600 Subject: [PATCH] Allow port=0 in XSD Issue gh-8138 --- .../springframework/security/config/spring-security-5.4.rnc | 2 +- .../springframework/security/config/spring-security-5.4.xsd | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/src/main/resources/org/springframework/security/config/spring-security-5.4.rnc b/config/src/main/resources/org/springframework/security/config/spring-security-5.4.rnc index 337d5008af..86c6885a99 100644 --- a/config/src/main/resources/org/springframework/security/config/spring-security-5.4.rnc +++ b/config/src/main/resources/org/springframework/security/config/spring-security-5.4.rnc @@ -16,7 +16,7 @@ request-matcher = attribute request-matcher {"mvc" | "ant" | "regex" | "ciRegex"} port = ## Specifies an IP port number. Used to configure an embedded LDAP server, for example. - attribute port { xsd:positiveInteger } + attribute port { xsd:nonNegativeInteger } url = ## Specifies a URL. attribute url { xsd:token } diff --git a/config/src/main/resources/org/springframework/security/config/spring-security-5.4.xsd b/config/src/main/resources/org/springframework/security/config/spring-security-5.4.xsd index e7849864ba..1e15988a9d 100644 --- a/config/src/main/resources/org/springframework/security/config/spring-security-5.4.xsd +++ b/config/src/main/resources/org/springframework/security/config/spring-security-5.4.xsd @@ -43,7 +43,7 @@ - + Specifies an IP port number. Used to configure an embedded LDAP server, for example. @@ -190,7 +190,7 @@ - + Specifies an IP port number. Used to configure an embedded LDAP server, for example.