|
Author:
{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}
Message: CDRIVER-642 detect auth error from usersInfo
Starting with MongoDB 2.7.1 the scope of the localhost exception for
authentication was dramatically narrowed. It is no longer possible to call the
userInfo command unauthenticated, even when the localhost exception is in
effect. A workaround for this issue is to catch the exception and call
createUser if the error code is 13 (Unauthorized). Any exception from the
createUser call should propagate to the user application.
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/9c450c34dbb8746bf9d321eefc7c4993c935c52d
|