Skip to content

Commit a43e73d

Browse files
committed
PYTHON-2113 An empty authSource URI option is not valid
Update spec test runner for PYTHON-1846.
1 parent 651aa6a commit a43e73d

File tree

3 files changed

+183
-245
lines changed

3 files changed

+183
-245
lines changed

pymongo/uri_parser.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,9 @@ def split_options(opts, validate=True, warn=False, normalize=True):
294294

295295
if validate:
296296
options = validate_options(options, warn)
297+
if options.get('authsource') == '':
298+
raise InvalidURI(
299+
"the authSource database cannot be an empty string")
297300

298301
if normalize:
299302
options = _normalize_options(options)

0 commit comments

Comments
 (0)