-
Notifications
You must be signed in to change notification settings - Fork 265
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
Special attribute type to skip forbidden chars #3550
Comments
Implemented by PR #3592 |
Hi, fgalan. Thanks in advance. |
@pcanoesp could you provide the request you are sending to the CB, pls? verb + url + payload |
We are using MQTT connection. Deployment is as follows: Network Server <=> Mosquitto MQTT broker <=> IoT Agent JSON <=> Orion Context Broker (MongoDB has been also deployed). As a simple example, if we send a simple JSON as follows in a MQTT message:
The context broker ignores the message and entity fields are not updated ("prueba"). Here you have the entity and device definitions in FIWARE platform:
DEVICE:
Please, tell me if there is some missing information. |
In our real case of use, payload filed is the one including forbiden characters (base64 coding) |
Let's try to see the problem in terms of Orion Context Broker (the repo in which this issue has been opened ;), leaving apart the other components in your e2e case. In this sense:
|
Hi again, @fgalan.
So it seems that IoT Agent is filtering the message. The JSON message that I sent to IoT Agent is the following:
|
Which CB version are you using? |
2.2.0 on a CentOS 7. We installed this version because we are not using docker. We are going to install a newer version and check again. I will keep you informed about this. |
TextUnrestricted was introduced in Orion 2.4.0. 2.2.0 is pretty old (February 2019). I strongly recommend you to upgrade to latest Orion release (3.2.0) |
We are upgrading to the latest version. I will keep you informed with the results. Thank you very much for your support. |
@fgalan , after upgrading to version 3.2.0, "TextUnrestricted" type is working properly for our case of use. |
Context Broker doesn't allow forbidden charts (https://fiware-orion.readthedocs.io/en/master/user/forbidden_characters/index.html) in attribute values. This can be restrictive in some scenarios.
We could define an special attributeType (for instance, "TextUnrestricted") so ContextBroker broker will not do checks on it. Eg:
Of course, the user should know the potential security implications of this and assume them in his client code.
This would be backward compatible and enhance Orion.
The text was updated successfully, but these errors were encountered: