Skip to content

Prevent accidental authentication misconfiguration on SimpleMongoDbFactory [DATAMONGO-1260] #2180

Closed
@spring-projects-issues

Description

@spring-projects-issues

Oliver Drotbohm opened DATAMONGO-1260 and commented

If a SimpleMongoDbFactory is configured with a reference to a MongoClient we expect all authentication operations to be configured on the client. The factory however still takes authentication configuration which might create the impression of that information being applied. This however has been turned off for DATAMONGO-1216 to avoid repeated authentication.

SimpleMongoDbFactory should reject instantiation attempts with a MongoClient instance and additional authentication information right away hinting the user to configure the authentication information on the MongoClient instance itself


Affects: 1.8 M1 (Gosling), 1.7.1 (Fowler SR1)

Issue Links:

Referenced from: pull request #309

Backported to: 1.7.2 (Fowler SR2)

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions