Closed fbuedding closed 2 weeks ago
From https://github.com/telefonicaid/fiware-orion/blob/master/doc/manuals/orion-api.md#multi-tenancy
Orion Context Broker interprets the tenant name in lowercase, thus, although you can use tenants such as in update
MyService
it is not advisable, as the notifications related with that tenant will be sent withmyservice
and, in that sense, it is not coherent the tenant you used in update requests compared with the one that Orion sends in notifications
(a different repository, but the it applies to this one)
Bottom line: it is not advisable to use service names in no-lowercase format.
I think having the tenant name in only lowercase is okay and documented.
What I think is unexpected and/or inconsistent, is that you can create and list service groups with no-lowercase tenant names (fiware-service header) but not update or delete with the same tenant name (fiware-service header). Thus leading to unexpected behavior.
But it's also not like a big issue, just thought to share it here :)
Hi @AlvaroVega ,
I am working on this issue. Please assign this issue to me.
Fixed by PR https://github.com/telefonicaid/iotagent-node-lib/pull/1613
@fbuedding could you pull again telefonicaiot/iotagent-json:latest
and confirm it works as expected now, please?
Hello @fgalan and sorry for the late response, I'm currently quite busy due my master thesis. I tested it with 'telefonicaiot/iotagent-json:latest' and it's now working as expected.
@fbuedding thanks for the feedback!
IoT Agent Node Lib version the issue has been seen with
3.3.0
Bound or port used (API interaction)
Northbound (Provision API and NGSI Interactions)
NGSI version
NGSIv2
Are you running a container?
Yes, I am using a contaner (Docker, Kubernetes...)
Image type
normal
Expected behaviour you didn't see
That the fiwareservice header (or better everthing) is consistently case-sensitive or case-insensitive.
Unexpected behaviour you saw
When creating a service group with the header:
a service group is created as follows
Now you can use this header
To list and read the create service group, but not to delete or update the service group.
Steps to reproduce the problem
Response:
Response of the last curl:
Configs
Log output