Open garretwilson opened 1 year ago
Thanks for pointing this out. I need to revisit the XML config section to see if changes done to the ConnectionStringPropertyEditor
need to be reflected there. The MongoDB connection string only mostly follows RFC 3986 and eg. allows to list multiple domain names separated by a comma.
The Spring Boot Data MongoDB documentation says:
However § 2.2 is referring to general delimiters as well as "sub-delimiters" that may or may not be restricted based upon individual URI-components. In RFC 3986 § 3.2.1. User Information you can see that username/password data isn't so limited, and can actually contain:
sub-delims
from § 2.2.Thus it would seem that of the
reserved
characters onlygen-delims
are excluded:Therefore only the following delimiters must be URI-encoded in the username or password components:
%
,:
,/
,?
,#
,[
,]
,@
.Nowhere in RFC 3986 can I find any indication that characters such as comma
,
are restricted in the username or password components. Let me know if I missed that.