Skip to content

Commit e23ca44

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 4c3b195 commit e23ca44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
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
@@ -586,7 +586,7 @@ The comma delimited list of host:port entries to use for replica set/pairs.
586586
<xsd:attribute name="credentials" type="xsd:string" use="optional">
587587
<xsd:annotation>
588588
<xsd:documentation><![CDATA[
589-
The comma delimited list of username:password@database entries to use for authentication. Appending ?uri.authMechanism allows to specify the authentication challenge mechanism.
589+
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: '…'.
590590
]]></xsd:documentation>
591591
</xsd:annotation>
592592
</xsd:attribute>

0 commit comments

Comments
 (0)