Open son-phamngoc opened 1 day ago
Hello there. My guess is that this registration failed:
{
"id": "urn:ngsi-ld:ContextSourceRegistration:reg001",
"type": "ContextSourceRegistration",
"information": [
{
"entities": [
{
"type": "Building"
}
]
}
],
"endpoint": "http://orionld-prvd2:1026",
"mode": "exclusive",
"operations": [
"federationOps"
]
}
For Exclusive registrations you must specify the entity id AND attributes (entity type is always mandatory). If not, it's a too wide exclusive registration and that is not allowed. Both Scorpio and Orion-LD are supposed to give an error for that. 400 Bad Request and then more info in "title" and "detail" in the payload response body.
Make sure you check the result of the registration creation attempt. If no error is provoked, that would be a bug.
Thanks for reporting!
Hello, I have a problem that need your support.
I have 2 Orion-LD instances: 1st works as context broker, and 2nd works as data provider. Firstly, I created an entity
urn:ngsi-ld:Building:office001
at data provider.Next, I created a registration that data provider can provide entity type "Building" for context broker.
After that, I queried to context broker to obtain Building entities.
I expected to obtain entity
urn:ngsi-ld:Building:office001
but it gave me an empty result.If I register a specific entity provided by data provider, I can obtain that entity by id.
I also can get data by registering entity with propertyNames.
The problem only occurs with registration and querying by entity type.
I tried with Scorpio and it worked well with registration and querying by entity type. I also checked this issue https://github.com/FIWARE/context.Orion-LD/issues/1585 and saw that Orion-LD worked with that case. So, I think this is a bug of Orion-LD. Could you help me to confirm it? Please tell me if I did any wrong step.
Many thanks in advance.