Skip to content

Commit 44c76d8

Browse files
committed
DATAMONGO-1257 - We now hint to credential quoting from the XSD.
The namespace XSD now mentions the capability of quoting more complex credentials in case they validly contain a comma.
1 parent df9a9f5 commit 44c76d8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spring-data-mongodb/src/main/resources/org/springframework/data/mongodb/config/spring-mongo-1.7.xsd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ The comma delimited list of host:port entries to use for replica set/pairs.
601601
<xsd:attribute name="credentials" type="xsd:string" use="optional">
602602
<xsd:annotation>
603603
<xsd:documentation><![CDATA[
604-
The comma delimited list of username:password@database entries to use for authentication. Appending ?uri.authMechanism allows to specify the authentication challenge mechanism.
604+
The comma delimited list of username:password@database entries to use for authentication. Appending ?uri.authMechanism allows to specify the authentication challenge mechanism. If the credential you're trying to pass contains a comma itself, quote it with single quotes: '…'.
605605
]]></xsd:documentation>
606606
</xsd:annotation>
607607
</xsd:attribute>

spring-data-mongodb/src/main/resources/org/springframework/data/mongodb/config/spring-mongo-1.8.xsd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ The comma delimited list of host:port entries to use for replica set/pairs.
607607
<xsd:attribute name="credentials" type="xsd:string" use="optional">
608608
<xsd:annotation>
609609
<xsd:documentation><![CDATA[
610-
The comma delimited list of username:password@database entries to use for authentication. Appending ?uri.authMechanism allows to specify the authentication challenge mechanism.
610+
The comma delimited list of username:password@database entries to use for authentication. Appending ?uri.authMechanism allows to specify the authentication challenge mechanism. If the credential you're trying to pass contains a comma itself, quote it with single quotes: '…'.
611611
]]></xsd:documentation>
612612
</xsd:annotation>
613613
</xsd:attribute>

0 commit comments

Comments
 (0)