You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
When sending a string value that is 12 characters long, the "ObjectId" validation seems to be bypassed. We have tried with "Select Type:" and "Select Typ18" (not that they should be relevant I think), and these values are "saved" as ObjectId's inside the schema. The ObjectId's are actually random, even though that actual property refers to an external id from another schema.
If the current behavior is a bug, please provide the steps to reproduce.
I think the above description is explanatory.
What is the expected behavior?
An error of "Cast to ObjectID failed for value ..." should be thrown.
Please mention your node.js, mongoose and MongoDB version.
Node: 6.9.1
Mongoose: 4.13.11
MongoDB: 3.4
The text was updated successfully, but these errors were encountered:
lineus
added
the
docs
This issue is due to a mistake or omission in the mongoosejs.com documentation
label
Jul 19, 2018
Yes, I expected this to be something "normal", considering the stored ObjectID's are 24 characters long, while this one is half, so there was some relation.
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
When sending a string value that is 12 characters long, the "ObjectId" validation seems to be bypassed. We have tried with "Select Type:" and "Select Typ18" (not that they should be relevant I think), and these values are "saved" as ObjectId's inside the schema. The ObjectId's are actually random, even though that actual property refers to an external id from another schema.
If the current behavior is a bug, please provide the steps to reproduce.
I think the above description is explanatory.
What is the expected behavior?
An error of "Cast to ObjectID failed for value ..." should be thrown.
Please mention your node.js, mongoose and MongoDB version.
Node: 6.9.1
Mongoose: 4.13.11
MongoDB: 3.4
The text was updated successfully, but these errors were encountered: