forked from telefonicaid/fiware-orion
-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Description
Orion 1.10.0
I have two registrations as shown:
curl -s -iX POST 'http://localhost:1026/ngsi-ld/v1/csourceRegistrations/' \
-H 'Link: <http://context/user-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
-H 'Content-Type: application/json' \
-d '{
"type": "ContextSourceRegistration",
"information": [
{
"entities": [
{"type": "Animal"}, {"type": "Device"}
]
}
],
"mode": "redirect",
"operations": ["redirectionOps"],
"endpoint": "http://farmer"
}'curl -s -iX POST 'http://localhost:1026/ngsi-ld/v1/csourceRegistrations/' \
-H "NGSILD-Tenant: farmer" \
-H 'Link: <http://context/user-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
-H 'Content-Type: application/json' \
-d '{
"type": "ContextSourceRegistration",
"information": [
{
"entities": [
{"type": "Animal"}, {"type": "Device"}
]
}
],
"mode": "inclusive",
"operations": ["federationOps"],
"endpoint": "http://devices"
}'I make the following query on Broker A
curl -s -iX GET 'http://localhost:1026/ngsi-ld/v1/entities/?type=Animal&limit=100' This is forwarded to Broker B (farmer)
/ngsi-ld/v1/entities?pick=id&type=Animal on Broker B - Without passing the limit so I get the default limit of 20 Animal entities returned. There are 80+ Animal entities on Broker B
Similarly when I make the following query on Broker A:
curl -s -iX GET 'http:localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Device:cow001'This is forwarded to Broker B (farmer) as:
/ngsi-ld/v1/entities/urn:ngsi-ld:Device:cow001?options=sysAttrs without passing type therefore the registration for retrieving type=Devices from Broker C is not fired and I am not getting the latest information from C (devices)
Metadata
Metadata
Assignees
Labels
No labels