[GODRIVER-880] Cannot query when having a regular expression in MongoDB Document Created: 15/Mar/19 Updated: 28/Oct/23 Resolved: 26/Mar/19 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | BSON |
| Affects Version/s: | 1.0.0-rc2 |
| Fix Version/s: | 1.0.1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Huynh Thanh Thao | Assignee: | Kristofer Brandow (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
I have a document and an object below:
When I unmarshal the document to my object, I got attempted to read bytes of unknown BSON type invalid error.
|
| Comments |
| Comment by Githook User [ 26/Mar/19 ] | ||||||||||||||||||||||||||||||||||
|
Author: {'email': 'kris@mongodb.com', 'name': 'Kris Brandow', 'username': 'skriptble'}Message: Fix length determination for regex Change-Id: I833df440fd652ec2e079244d91edaf1b2530053d | ||||||||||||||||||||||||||||||||||
| Comment by Huynh Thanh Thao [ 22/Mar/19 ] | ||||||||||||||||||||||||||||||||||
|
Thank you so much! | ||||||||||||||||||||||||||||||||||
| Comment by Kristofer Brandow (Inactive) [ 21/Mar/19 ] | ||||||||||||||||||||||||||||||||||
|
Hello thaoht, I've been able to reproduce the bug and have made --Kris | ||||||||||||||||||||||||||||||||||
| Comment by Huynh Thanh Thao [ 18/Mar/19 ] | ||||||||||||||||||||||||||||||||||
|
Hello Kris Brandow, This is the document:
| ||||||||||||||||||||||||||||||||||
| Comment by Kristofer Brandow (Inactive) [ 18/Mar/19 ] | ||||||||||||||||||||||||||||||||||
|
Hi thaoht, Can add the inserting of the document to the example? Since I don't have any documents in the portfolio_dev.Test collection I'm not getting any documents back. --Kris | ||||||||||||||||||||||||||||||||||
| Comment by Huynh Thanh Thao [ 18/Mar/19 ] | ||||||||||||||||||||||||||||||||||
|
Hello Kris Brandow,
| ||||||||||||||||||||||||||||||||||
| Comment by Kristofer Brandow (Inactive) [ 15/Mar/19 ] | ||||||||||||||||||||||||||||||||||
|
Hi thaoht, Can you please provide the version of the driver, version of Go, and a complete example of this problem? --Kris |