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
Medallion running on the MongoDB backend, when requested to add duplicate objects into a collection treats them as failures, which is represented in the returned status resource's status-details structures. They look like this and are created here:
{
"id": "identity--f8aab11f-9085-4baa-b06c-4b11a0ef80ee",
"message": "Unable to process object because an identical entry already exists in collection '62a0ae...'.",
"version": "2000-01-01T00:00:00Z"
}
If a client publishes an exact duplicate of an Object already present in the Collection, the server MUST not return an error for that Object.
It's not fully clear what the spec means by "an error for that Object". There's the error message type, defined in 3.6.1 Error Message. But it's per request, not per object. Per object error in the context of request to POST /{api-root}/collections/{id}/objects/ can only be a status-details.
If the above interpretation is correct, then it's a bug in Medallion.
The text was updated successfully, but these errors were encountered:
We currently do not treat a failure status as an error, so the way the server responds to duplicate objects is not in violation of the spec. While the language is slightly confusing, if anything this is a problem with the specification language, and not the medallion server.
Let me know if I need to clarify my answer any more, or if you have other questions.
Medallion running on the MongoDB backend, when requested to add duplicate objects into a collection treats them as failures, which is represented in the returned status resource's
status-details
structures. They look like this and are created here:TAXII 2.1 spec in 5.5 Add Objects says:
It's not fully clear what the spec means by "an error for that Object". There's the error message type, defined in 3.6.1 Error Message. But it's per request, not per object. Per object error in the context of request to
POST /{api-root}/collections/{id}/objects/
can only be astatus-details
.If the above interpretation is correct, then it's a bug in Medallion.
The text was updated successfully, but these errors were encountered: