Skip to content

Commit 7a295fa

Browse files
committed
Fix failing tests for uri encoding auth
This uses a *slightly* patched version of node's uri module to allow commas and colons in hostnames, which causes the parsed representation of replica sets to be less-awful. Hostname are still somewhat broken in this representation, because we have an array of hosts expressed as a list, but this is the minimum-effort solution to getting format to be able to reprint a parsed replica set correctly. I understand that we probably don't want to merge this (for a lot of reasons), but at least this shows exactly where the issue is, and yields some useful discussion.
1 parent 741039b commit 7a295fa

File tree

2 files changed

+996
-1
lines changed

2 files changed

+996
-1
lines changed

src/Adapters/Storage/Mongo/MongoStorageAdapter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
import MongoCollection from './MongoCollection';
33
import MongoSchemaCollection from './MongoSchemaCollection';
4-
import {parse as parseUrl, format as formatUrl} from 'url';
4+
import {parse as parseUrl, format as formatUrl} from './mongodbUrl';
55

66
let mongodb = require('mongodb');
77
let MongoClient = mongodb.MongoClient;

0 commit comments

Comments
 (0)