[CXX-1063] mongocxx::uri doesn't validate URI on construction Created: 03/Oct/16 Updated: 15/Nov/16 Resolved: 03/Nov/16 |
|
| Status: | Closed |
| Project: | C++ Driver |
| Component/s: | Implementation |
| Affects Version/s: | 3.0.1 |
| Fix Version/s: | 3.0.3 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Armin Ball [X] | Assignee: | David Golden |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Uncatchable Error during initialisation. try { . . . }catch(...){ . . . }If I input wrong input parameters like: "mongodb://:@:/" The my program exits with -1. Last output is: src/mongoc/mongoc-topology.c:155 mongoc_topology_new(): precondition failed: uri If the version of the new c++ driver is important, pleas tell me how I can find out the library version of my compiled libraries. CODE: std::string strMongoDbUri (std::istreambuf_iterator<char>(stmMongoDbUri), {}); printf("47 - Streamconten Mongo DB Config // src/mongoc/mongoc-topology.c:155 mongoc_topology_new(): precondition failed: uri |
| Comments |
| Comment by Githook User [ 08/Nov/16 ] |
|
Author: {u'username': u'xdg', u'name': u'David Golden', u'email': u'xdg@xdg.me'}Message: |
| Comment by Githook User [ 03/Nov/16 ] |
|
Author: {u'username': u'xdg', u'name': u'David Golden', u'email': u'xdg@xdg.me'}Message: |
| Comment by David Golden [ 01/Nov/16 ] |
| Comment by Armin Ball [X] [ 03/Oct/16 ] |
|
|
| Comment by David Golden [ 03/Oct/16 ] |
|
Good catch. It looks like we're not validating URIs. We'll address this in the next release. Regarding versions, it shouldn't matter for this, but you can check with mongocxx/config/version.h:
I'll open a ticket to better expose and/or document those. |