Menu

#32 Typo in the resource directory discovery

v5.0
open
nobody
None
5
2016-01-27
2016-01-27
No

According to the Core Resource directory draft [1]. The discovery of the registration should be done using the /.well-known/core and including a Resource Type (rt) with the value "core.rd". Like that:

GET /.well-known/core?rt=core.rd

There is a typo in the libcoap which accept the "core-rd" instead of the "core.rd" parameter. Actually, using the "core.rd" parameter gives an error:

WARN discard malformed PDU

Regards,

Oscar

[1] - https://tools.ietf.org/html/draft-ietf-core-resource-directory-05#section-5.1

Discussion

  • Olaf Bergmann

    Olaf Bergmann - 2016-01-27

    Okay thanks. The reason is that the core-rd example implements an older
    version of the RD draft. The naming has changed since.

    Note that this bug tracker isn't really in use any more an will be
    closed down soon. libcoap now lives at github
    (https://github.com/obgm/libcoap) and uses that bug tracker.

     
  • Anonymous

    Anonymous - 2016-01-27

    All right, I will put my future issues in the github instead.

    Before closing this thread, I would like to provide you with a couple of typos:

    • libcoap does not implement the update function of the resource directory[1]. The following "POST /rd/xxx" returns a "4.05 Method Not Allowed". The registration has a lifetime of max 24 hours and the update method is used to refresh or update the registration of a node.
    • In case of a malformed discovery method for a unicast request, libcoap should return a "4.00 Bad Request", not "WARN discard malformed PDU"[2]

    • Please, change the libcoap project's URL from the examples/*.txt files directory. I got the information of this page from there.

    Oscar

    [1] https://tools.ietf.org/html/draft-ietf-core-resource-directory-05#section-5.3
    [2] https://tools.ietf.org/html/draft-ietf-core-resource-directory-05#section-5.1

     
MongoDB Logo MongoDB