Skip to content

Commit 8aa9068

Browse files
committed
Allow port=0 in XSD
Issue gh-8138
1 parent 8e7044b commit 8aa9068

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

config/src/main/resources/org/springframework/security/config/spring-security-5.4.rnc

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ request-matcher =
1616
attribute request-matcher {"mvc" | "ant" | "regex" | "ciRegex"}
1717
port =
1818
## Specifies an IP port number. Used to configure an embedded LDAP server, for example.
19-
attribute port { xsd:positiveInteger }
19+
attribute port { xsd:nonNegativeInteger }
2020
url =
2121
## Specifies a URL.
2222
attribute url { xsd:token }

config/src/main/resources/org/springframework/security/config/spring-security-5.4.xsd

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
</xs:attribute>
4444
</xs:attributeGroup>
4545
<xs:attributeGroup name="port">
46-
<xs:attribute name="port" use="required" type="xs:positiveInteger">
46+
<xs:attribute name="port" use="required" type="xs:nonNegativeInteger">
4747
<xs:annotation>
4848
<xs:documentation>Specifies an IP port number. Used to configure an embedded LDAP server, for example.
4949
</xs:documentation>
@@ -190,7 +190,7 @@
190190
</xs:documentation>
191191
</xs:annotation>
192192
</xs:attribute>
193-
<xs:attribute name="port" type="xs:positiveInteger">
193+
<xs:attribute name="port" type="xs:nonNegativeInteger">
194194
<xs:annotation>
195195
<xs:documentation>Specifies an IP port number. Used to configure an embedded LDAP server, for example.
196196
</xs:documentation>

0 commit comments

Comments
 (0)