-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some errors in updates of distributed entities attributes using PATCH methods #1673
Comments
Update: if the type is added to the queries ( However, a 204 code is returned instead of an error code although the update operation is not allowed, no registration is matched and the entity doesn't exist locally. Therefore, which error code should return the broker?
|
This is a little but tricky but I believe a 404 should be returned. |
The same happens for For |
Yeah, if the broker has no knowledge of the type ... The registration must still be a match, as there is no info on the entity type of the entity to be patched/deleted. |
I have 2 instances of Orion-LD, and I created 2 CSR in the Broker 1 pointing to Broker 2
According to the defined operations, when I send a HTTP PATCH to
/entities/urn:ngsi-ld:Domain:2
or/entities/urn:ngsi-ld:Domain:2/attrs/name
to update thename
attribute, it shouldn't be updated as onlyretrieveOps
is configured. However, the entity is updated.Taking a closer look to the logs, it seems that the
"urn:aeros:federation:Domain02:services
registration, which includes theupdateOps
operation, is matched.However, if I send a
GET /entities?type=Domain
, the proper registration is matchedThe text was updated successfully, but these errors were encountered: