[DRIVERS-789] GridFS index checking should support indexes created in the shell Created: 19/Dec/19 Updated: 28/Oct/23 Resolved: 22/Feb/23 |
|
| Status: | Closed |
| Project: | Drivers |
| Component/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Esha Bhargava | Assignee: | Unassigned |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Driver Compliance: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Description |
|
A user has reported seeing the index checking failing with the Java driver due to different numeric types used when creating the index. This then lead to an auth error trying to create new indexes. In the shell if a user creates the index: db.fs.files.createIndex({"filename" : 1,"uploadDate" : 1}). The Java driver fails in its comparison because the shell (js) defaults to using doubles for numbers. |