Open desislava-marinova opened 1 year ago
Hi @desislava-marinova
I would have expected that using the header If-None-Match: *
should have worked.
So I would see that as bug, if it is tried to create the inline or copied policy and therefore fails completely.
According to the ImplicitThingCreation mapper configuration
commandHeaders (optional, default: {"If-None-Match": "*"}): The Ditto headers to use for constructing the “create thing” command for creating the twin and to use for creating errors.
@thjaeckle, does it mean that without adding explicitly commandHeaders in the mapper configuration, the mapper should not fail with error creating policy but should result in
{
"status": 412,
"error": "things:precondition.failed",
....
}
Yes, I would also think/assume so ..
Thanks @thjaeckle Should I create a new bug ticket for that misbehavior, or could this be reused?
I would reuse this one and rephrase accordingly :)
The description and title were updated.
ImplicitThingCreation mapper is configured as follows:
According to the ImplicitThingCreation mapper configuration
The expectation is that the mapper should not fail with error creating policy but should result in
Currently, the mapper fails with an error with status 400