-
Notifications
You must be signed in to change notification settings - Fork 10
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
NGSILD-Tenant
Header Bad Request. Tenants are Strings and not IRIs.
#1076
Comments
Seems it has changed between 1.6.1 and 1.7.1, because 1.6.1 states in 6.3.14:
PS: Stellio does not support on-the-fly creation of tenants (which is an optional behavior, as said in 5.5.10): https://stellio.readthedocs.io/en/latest/user/multitenancy.html |
Fair point - it looks like the NGSI-LD spec has changed between 1.6.1. and 1.7.1 6.3.14 Tenant specification
If the system implementing the NGSI-LD API supports multi-tenancy as described in
clause 4.14 and clause 5.5.10, the tenant, to which the NGSI-LD HTTP operation is targeted,
is specified as the HTTP header "NGSILD-Tenant",
- whose value is the tenant URI.
+ whose value is the String identifying the tenant.
In case the target tenant is the default tenant, the HTTP header is omitted.
If the HTTP header "NGSILD-Tenant" is present in the HTTP request, it shall also be present
in HTTP response. This also applies to HTTP notifications sent as a result of subscriptions
with an "NGSILD-Tenant" HTTP header (clause 6.3.8). |
5.5.10 seems clear enough.
I'm trying to integrate an IoT Agent (which requires a Tenant) with Stellio.Two questions remain however:
|
On its way: #1081 As it is a feature and a (minor) breaking change (due to the renaming of tenant URI to tenant name in config properties), I will release a 2.11.0 for this. I already have a major PR to be merged today (#1073), so this one will come next (mid week if everything goes well with the other).
I added more details in https://stellio.readthedocs.io/en/latest/user/multitenancy.html on how to do it (I will update it when the relaxing of tenant names is available). Let me know. |
FYI, relaxing of tenants names has been merged and will be in the Stellio release planned for Monday (just in time for the FIWARE TSC ;) ). Doc is updated on https://stellio.readthedocs.io/en/latest/user/multitenancy.html. |
2.11.0 has been released last Monday. The points discussed in the issue are addressed now. Closing the issue, re-open if needed. |
Stellio: 2.10.2
I create a new tenant with the name
openiot
Stellio responds:
Nowhere in the NGSI-LD specification is it stated that a tenant must be a URI - it is usually defined as a String, so
openiot
is valid:Compare this with
id
in the same table which is restricted to an IRI.The text was updated successfully, but these errors were encountered: