Skip to content
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

Add validation for null props inside objects inside arrays. (#4896) #4941

Merged

Conversation

vadim-kovalyov
Copy link
Contributor

Add validation for null props inside objects inside arrays.

Since IoT Hub does not support patch operations on arrays (if you want to update array, you need to replace it), they don't allow null values or null properties inside arrays. EdgeHub, on the other hand, allows that. So, validation can pass on the EdgeHub side, but the update will be rejected by the hub. This situation allows for sending bad payloads, that blocks any further twin updates unless bad property is removed/cleared.

Add validation for null props inside objects inside arrays.
@kodiakhq kodiakhq bot merged commit c25fcb9 into Azure:release/1.2 May 5, 2021
yophilav added a commit to yophilav/iotedge that referenced this pull request May 12, 2021
Update test

rusting

rusting

Style

Style C#

parsing

Parsing with test

Add validation for null props inside objects inside arrays. (Azure#4896) (Azure#4941)

Add validation for null props inside objects inside arrays.

Since IoT Hub does not support patch operations on arrays (if you want to update array, you need to replace it), they don't allow null values or null properties inside arrays. EdgeHub, on the other hand, allows that. So, validation can pass on the EdgeHub side, but the update will be rejected by the hub. This situation allows for sending bad payloads, that blocks any further twin updates unless bad property is removed/cleared.
yophilav pushed a commit to yophilav/iotedge that referenced this pull request May 13, 2021
…) (Azure#4941)

Add validation for null props inside objects inside arrays.

Since IoT Hub does not support patch operations on arrays (if you want to update array, you need to replace it), they don't allow null values or null properties inside arrays. EdgeHub, on the other hand, allows that. So, validation can pass on the EdgeHub side, but the update will be rejected by the hub. This situation allows for sending bad payloads, that blocks any further twin updates unless bad property is removed/cleared.
vipeller pushed a commit to vipeller/iotedge that referenced this pull request May 26, 2021
kodiakhq bot pushed a commit that referenced this pull request May 26, 2021
#5034)

…#4941)

Since IoT Hub does not support patch operations on arrays (if you want to update array, you need to replace it), they don't allow null values or null properties inside arrays. EdgeHub, on the other hand, allows that. So, validation can pass on the EdgeHub side, but the update will be rejected by the hub. This situation allows for sending bad payloads, that blocks any further twin updates unless bad property is removed/cleared.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants