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

API incorrectly filters delta messages #71

Closed
johnhopwood opened this issue Jan 16, 2017 · 3 comments
Closed

API incorrectly filters delta messages #71

johnhopwood opened this issue Jan 16, 2017 · 3 comments

Comments

@johnhopwood
Copy link

shadowJsonVersionNum can be incremented by non .../delta topic messages resulting in a risk of missing delta messages. The issue is recognized in the comments here:

https://github.com/aws/aws-iot-device-sdk-embedded-C/blob/master/include/aws_iot_shadow_interface.h#L260

However, messages received on .../update/accepted are incorrectly being allowed to increment shadowJsonVersionNum by the code here:

https://github.com/aws/aws-iot-device-sdk-embedded-C/blob/master/src/aws_iot_shadow_records.c#L173

A quick fix is to remove the test (strstr(pTopicName, "update/accepted") != NULL although a more robust approach could be to track version number per subscribed topic.

@Borschtsch
Copy link

Same finding is posted here.

@Borschtsch
Copy link

Borschtsch commented Jan 17, 2017

I also found this issue logged for previous release, but the issue is still there.

@chaurah
Copy link
Contributor

chaurah commented Jan 18, 2017

Hi @johnhopwood,
Thank you for letting us know you're facing this issue. We are already working to address this in the next release. I realize it has been pending for a while now, it will definitely be addressed in the next version of the SDK. Apologies for any inconvienience this is causing. Thank you for using AWS IoT.

Rahul

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants