fido-alliance / iot-fdo-conformance-tools

FIDO Alliances Reference FDO Implementation and Conformance Testing
https://fidoalliance.org/intro-to-fido-device-onboard/
Other
5 stars 2 forks source link

[BUG] All devmod modules should be sent by conformance client in message 68 and to be accepted by conformance owner #75

Open Sai-Anudeep47 opened 8 months ago

Sai-Anudeep47 commented 8 months ago

To simplify issue resolution process, please provide network logs, and or test voucher. conformance_client_devmod_sims_log.txt

What part of the spec are you testing?

What protocol are having issue with?

Issue description

ben-krieger commented 2 months ago

To add more detail to this bug report, the reason that the error reads as all mandatory SIMs missing despite them all being sent (in a single message) is due to the fact that the code only gathers the SIMs from messages where IsMoreServiceInfo=true.

Therefore, the conformance tests are implicitly requiring that >1 message from the device must be sent and the last message (the one with IsMoreServiceInfo=false) must be empty, as any devmod SIMs will be ignored.

This bug has now been reproduced with a different client implementation that sends the SIMs over two messages, sending the "devmod:modules" KV in the second message. Because the second message has IsMoreServiceInfo=false, the error message instead only indicates "devmod:modules" as a missing required SIM.

I will open a very simple PR to address the bug in the conformance test.