Closed Fitch24 closed 3 weeks ago
~This PR should address your issue: https://github.com/payloadcms/payload/pull/8395/files~
My mistake, that PR is for v3.
It seems we'll have to do some sanitization of relationship IDs to insert them in lowercase format.
🚀 This is included in version v3.0.0-beta.114
This issue has been automatically locked. Please open a new issue if this issue persists with any additional detail.
Link to reproduction
https://github.com/Fitch24/payload/blob/mongodb-id-parsing-issue/test/_community/int.spec.ts
Describe the Bug
db-mongodb
adapter produces some bugs when passing non-standardid
(nonObjectId
values orObjectId
with uppercase symbols) in local/rest (and probably GraphQL) API500 InternalServerError
if it's failed to parse (cast toObjectId
) id in REST-API queries. I think, it must be a client error, because of passing correctid type
is part of validation and not a server problem.id
that contains upper case symbols, field population will be broken. Also admin UI in collection list view will be infinitely trying to populate broken field without success (I have no reproduction for this)To Reproduce
Please see reproduction link for more detailed example
Payload Version
2.30.1
Adapters and Plugins
db-mongodb