Metadata update API succeeds on remove operation on a `tag` if the tag doesn't exist
Steps to reproduce:
- Create a record with some tags
- Try to update the record metadata via metadata update API by removing a non-existing tag
curl --request PATCH \
--url '/api/storage/v2/records' \
--header 'accept: application/json' \
--header 'authorization: Bearer <JWT>' \
--header 'content-type: application/json'\
--header 'Data-Partition-Id: common'
--data-raw ‘{
"query": {
"ids": [
"tenant1:type:unique-identifier:version"
]
},
"ops": [
{
"op":"remove",
"path":"/tags",
"value":[
"tagthatdoesntexist"
]
}
]
}
This should return 4xx, but returns 2xx