Open sercanov opened 3 years ago
@sercanov Thanks for posting! We'll take a look as soon as possible.
In the mean time, there are a few ways you can help speed things along:
Please remember: never post in a public forum if you believe you've found a genuine security vulnerability. Instead, disclose it responsibly.
For help with questions about Sails, click here.
Hi @sercanov, thanks for reporting this. I wasn't able to reproduce this on a MongoDB Atlas cluster using MongoDB 4.4.6.
Are you able to query the records with IDs starting with 6 by other criteria?
If you can create a minimal sails app in a github repo that reproduce the issue you're seeing, we'd be happy to take another look.
Node version: 10 Sails version (sails): 1.2.4 ORM hook version (sails-hook-orm): 3.0.1 Sockets hook version (sails-hook-sockets): - Organics hook version (sails-hook-organics): - Grunt hook version (sails-hook-grunt): - Uploads hook version (sails-hook-uploads): - DB adapter & version (e.g. sails-mysql@5.55.5): sails-mongo@2.0.0 Skipper adapter & version (e.g. skipper-s3@5.55.5): -
Recently, probablya after Mongo Atlas upgrade to 4.0, sails-mongo can't seem to find ID's starting with 6. For example;
Model.findOne({ id: '5f6dec64b3471800aca76559' )}
returns resultModel.findOne({ id: '60e58bc917317c00ae752f04' )}
returns undefinedI can also confirm this record exists on MongoDB Atlas dashboard.
it's a weird one.