[GODRIVER-1078] Allow specifying empty value for connection URI readPreferenceTags option Created: 22/May/19 Updated: 28/Oct/23 Resolved: 04/Jun/19 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | Connections |
| Affects Version/s: | 1.0.2 |
| Fix Version/s: | 1.0.3 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Wan Bachtiar | Assignee: | Emmanuel Eppinger (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | neweng | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||||||
| Issue Links: |
|
||||||||||||
| Description |
|
Specifying readPreferenceTags without a value via connection string will receive an error :
Currently the workaround is specify via option as below example:
Reference - list value in connection string spec : https://github.com/mongodb/specifications/blob/master/source/connection-string/connection-string-spec.rst#values |
| Comments |
| Comment by Githook User [ 04/Jun/19 ] |
|
Author: {'name': 'Emmanuel', 'email': 'manny.eppinger@mongodb.com', 'username': 'eppingere'}Message: Fix, Test issue of readPreferenceTags= in URI If URI ends with readPreferenceTags= then we just ignore that additional Change-Id: Ic3e1385c98156f831055da2570a8d908d95248b6 |
| Comment by Githook User [ 04/Jun/19 ] |
|
Author: {'name': 'Emmanuel', 'email': 'manny.eppinger@mongodb.com', 'username': 'eppingere'}Message: Fix, Test issue of readPreferenceTags= in URI If URI ends with readPreferenceTags= then we just ignore that additional Change-Id: Ic3e1385c98156f831055da2570a8d908d95248b6 |
| Comment by Emmanuel Eppinger (Inactive) [ 04/Jun/19 ] |
| Comment by Emmanuel Eppinger (Inactive) [ 04/Jun/19 ] |
|
https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/456857 |
| Comment by Emmanuel Eppinger (Inactive) [ 04/Jun/19 ] |
|
https://evergreen.mongodb.com/version/5cf68d723627e0222443a39c |
| Comment by Ian Whalen (Inactive) [ 23/May/19 ] |
|
We should also write a spec test for this. |