Closed iariasleon closed 8 years ago
In 0.26.0 the error description is not descriptive:
{
error: "InvalidModification"
description: "Entity already exists"
}
Suggested:
{
error: "InvalidModification"
description: "duplicated attribute"
}
Note that the corresponding error in NGSI is much more clear (see https://github.com/telefonicaid/fiware-orion/blob/develop/test/functionalTest/cases/0908_update_duplicated_attributes/dup_attrs_avoid_db_error.test#L135). Thus, probably the point to fix is the NGSIv1 to NGSIv2 error transformation done in the corresponding serviceRoutinev2.
Fixed in PR https://github.com/telefonicaid/fiware-orion/pull/1598. @iariasleon please have a look and close it if you find it ok.
LGTM
Status: 422 Unprocessable Entity
{
"error": "InvalidModification",
"description": "duplicated attribute /temperature/"
}
Create request:
Create response:
Doc in mongo: