<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to bugs</title><link>https://sourceforge.net/p/libcoap/bugs/</link><description>Recent changes to bugs</description><atom:link href="https://sourceforge.net/p/libcoap/bugs/feed.rss" rel="self"/><language>en</language><lastBuildDate>Wed, 27 Jan 2016 13:48:03 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/libcoap/bugs/feed.rss" rel="self" type="application/rss+xml"/><item><title>#32 Typo in the resource directory discovery</title><link>https://sourceforge.net/p/libcoap/bugs/32/?limit=25#f69b</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;All right, I will put my future issues in the github instead. &lt;/p&gt;
&lt;p&gt;Before closing this thread, I would like to provide you with a couple of typos:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;libcoap does not implement the update function of the resource directory&lt;span&gt;[1]&lt;/span&gt;. 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. &lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In case of a malformed discovery method for a unicast request, libcoap should return a "4.00 Bad Request", not "WARN discard malformed PDU"&lt;span&gt;[2]&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Please, change the libcoap project's URL from the examples/*.txt files directory. I got the information of this page from there. &lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Oscar&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[1]&lt;/span&gt; &lt;a href="https://tools.ietf.org/html/draft-ietf-core-resource-directory-05#section-5.3" rel="nofollow"&gt;https://tools.ietf.org/html/draft-ietf-core-resource-directory-05#section-5.3&lt;/a&gt;&lt;br/&gt;
&lt;span&gt;[2]&lt;/span&gt; &lt;a href="https://tools.ietf.org/html/draft-ietf-core-resource-directory-05#section-5.1" rel="nofollow"&gt;https://tools.ietf.org/html/draft-ietf-core-resource-directory-05#section-5.1&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Olaf Bergmann</dc:creator><pubDate>Wed, 27 Jan 2016 13:48:03 -0000</pubDate><guid>https://sourceforge.netbc2e3229762ebf887eb382e8d89246bb900d2581</guid></item><item><title>Typo in the resource directory discovery</title><link>https://sourceforge.net/p/libcoap/bugs/32/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;According to the Core Resource directory draft &lt;span&gt;[1]&lt;/span&gt;. 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:&lt;/p&gt;
&lt;p&gt;GET /.well-known/core?rt=core.rd&lt;/p&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;WARN discard malformed PDU&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Oscar&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[1]&lt;/span&gt; - &lt;a href="https://tools.ietf.org/html/draft-ietf-core-resource-directory-05#section-5.1" rel="nofollow"&gt;https://tools.ietf.org/html/draft-ietf-core-resource-directory-05#section-5.1&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><pubDate>Wed, 27 Jan 2016 10:50:09 -0000</pubDate><guid>https://sourceforge.netaca4ded73ae22aa79b46e698c6696127f563fac4</guid></item><item><title>#23 server responds from wrong endpoint (ipv6 address)</title><link>https://sourceforge.net/p/libcoap/bugs/23/?limit=25#f26f</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;it also breaks multicast:&lt;br/&gt;
./coap-server -v 10 -g FF12::11&lt;br/&gt;
./coap-client -v 10 -m get coap://&lt;span&gt;[FF12::11]&lt;/span&gt;/.well-known/core&lt;/p&gt;
&lt;p&gt;however unicast works with the same server:&lt;br/&gt;
./coap-client -v 10 -m get coap://&lt;span&gt;[::1]&lt;/span&gt;/.well-known/core&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Olaf Bergmann</dc:creator><pubDate>Thu, 07 Jan 2016 16:32:17 -0000</pubDate><guid>https://sourceforge.net25d7922fa2d7b0d32ea4bb0f95ce2205771bb8ab</guid></item><item><title>#31 compilation error for COAP_RESOURCES_NO_HASH on POSIX</title><link>https://sourceforge.net/p/libcoap/bugs/31/?limit=25#1c12</link><description>&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;: open --&amp;gt; closed-rejected&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Olaf Bergmann</dc:creator><pubDate>Thu, 20 Aug 2015 15:28:58 -0000</pubDate><guid>https://sourceforge.net0e342957ce06b379512e795fee575b774f6b5447</guid></item><item><title>compilation error for COAP_RESOURCES_NO_HASH on POSIX</title><link>https://sourceforge.net/p/libcoap/bugs/31/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Disabling hashing under Posix causes compilation errors / unresolved symbols in libcoap.so&lt;/p&gt;
&lt;p&gt;Details:&lt;/p&gt;
&lt;p&gt;If you disable hashing (via     ./configure --with-shared --without-hashing) under POSIX, you will encounter two compilation errors / unresolved symbols in libcoap.so, namely&lt;/p&gt;
&lt;p&gt;coap_resource_iterator_init&lt;/p&gt;
&lt;p&gt;and&lt;/p&gt;
&lt;p&gt;coap_resource_next&lt;/p&gt;
&lt;p&gt;The implementation for both functions is unconditionally included in resource.h (lines 333 and 336).  BUT, resource.c does only implement the two functions if WITH_CONTIKI is defined (see lines 68, 128, and 135).&lt;/p&gt;
&lt;p&gt;If hashing is disabled, COAP_RESOURCES_NO_HASH is defined and net.c invoked the above mentioned functions regardless if the code is compiled with WITH_CONTIKI defined or not.  This causes linking errors on Posix (non-Contiki) systems.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Marc Emmelmann</dc:creator><pubDate>Wed, 12 Aug 2015 09:57:52 -0000</pubDate><guid>https://sourceforge.netbf42d28a3b85269e2a6890edb01417b6e8676534</guid></item><item><title>compilation error for COAP_RESOURCES_NO_HASH on POSIX</title><link>https://sourceforge.net/p/libcoap/bugs/31/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Ticket 31 has been modified: compilation error for COAP_RESOURCES_NO_HASH on POSIX&lt;br/&gt;
Edited By: Olaf Bergmann (obgm)&lt;br/&gt;
Status updated: u'open' =&amp;gt; u'closed-rejected'&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Marc Emmelmann</dc:creator><pubDate>Wed, 12 Aug 2015 09:57:52 -0000</pubDate><guid>https://sourceforge.netc0d7a67d5d2c0ba3161276bd461097258aa67881</guid></item><item><title>Set pre-defined conditionals for doxygen</title><link>https://sourceforge.net/p/libcoap/bugs/30/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;From Bill Bennett:&lt;/p&gt;
&lt;p&gt;The conditionals are confusing doxygen (on Linux). Changing Doxyfile to:&lt;br /&gt;
PREDEFINED = _GNU_SOURCE WITH_POSIX&lt;br /&gt;
helps. I think that should be done by the autotools based on CFLAGS.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Olaf Bergmann</dc:creator><pubDate>Mon, 30 Mar 2015 10:19:41 -0000</pubDate><guid>https://sourceforge.netc2393e33ab8545f9fc1b24f5a71cc084e4ed89d2</guid></item><item><title>#29 Memory leak in coap_delete_attr in resource.c</title><link>https://sourceforge.net/p/libcoap/bugs/29/?limit=25#31d9</link><description>&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;: open --&amp;gt; closed-rejected&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Olaf Bergmann</dc:creator><pubDate>Fri, 05 Dec 2014 14:26:36 -0000</pubDate><guid>https://sourceforge.net86563b37cd0de22762d2aa730576badb042b8ccf</guid></item><item><title>Memory leak in coap_delete_attr in resource.c</title><link>https://sourceforge.net/p/libcoap/bugs/29/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Seams to be a bug in POSIX environment.&lt;br /&gt;
void&lt;br /&gt;
coap_delete_attr(coap_attr_t *attr) {&lt;br /&gt;
  if (!attr)&lt;br /&gt;
    return;&lt;br /&gt;
  if (attr-&amp;gt;flags &amp;amp; COAP_ATTR_FLAGS_RELEASE_NAME)&lt;br /&gt;
    coap_free(attr-&amp;gt;name.s);&lt;br /&gt;
  if (attr-&amp;gt;flags &amp;amp; COAP_ATTR_FLAGS_RELEASE_VALUE)&lt;br /&gt;
    coap_free(attr-&amp;gt;value.s);&lt;/p&gt;
&lt;h1 id="ifdef-posix"&gt;ifdef POSIX&lt;/h1&gt;
&lt;p&gt;coap_free(attr);&lt;/p&gt;
&lt;h1 id="endif"&gt;endif&lt;/h1&gt;
&lt;h1 id="ifdef-with_lwip"&gt;ifdef WITH_LWIP&lt;/h1&gt;
&lt;p&gt;memp_free(MEMP_COAP_RESOURCEATTR, attr);&lt;/p&gt;
&lt;h1 id="endif_1"&gt;endif&lt;/h1&gt;
&lt;h1 id="ifdef-with_contiki"&gt;ifdef WITH_CONTIKI&lt;/h1&gt;
&lt;p&gt;/&lt;em&gt; FIXME it looks like this was never implemented &lt;/em&gt;/&lt;/p&gt;
&lt;h1 id="endif_2"&gt;endif&lt;/h1&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;should be:&lt;br /&gt;
void&lt;br /&gt;
coap_delete_attr(coap_attr_t *attr) {&lt;br /&gt;
  if (!attr)&lt;br /&gt;
    return;&lt;br /&gt;
  if (attr-&amp;gt;flags &amp;amp; COAP_ATTR_FLAGS_RELEASE_NAME)&lt;br /&gt;
    coap_free(attr-&amp;gt;name.s);&lt;br /&gt;
  if (attr-&amp;gt;flags &amp;amp; COAP_ATTR_FLAGS_RELEASE_VALUE)&lt;br /&gt;
    coap_free(attr-&amp;gt;value.s);&lt;/p&gt;
&lt;h1 id="ifdef-with_posix"&gt;ifdef WITH_POSIX&lt;/h1&gt;
&lt;p&gt;coap_free(attr);&lt;/p&gt;
&lt;h1 id="endif_3"&gt;endif&lt;/h1&gt;
&lt;h1 id="ifdef-with_lwip_1"&gt;ifdef WITH_LWIP&lt;/h1&gt;
&lt;p&gt;memp_free(MEMP_COAP_RESOURCEATTR, attr);&lt;/p&gt;
&lt;h1 id="endif_4"&gt;endif&lt;/h1&gt;
&lt;h1 id="ifdef-with_contiki_1"&gt;ifdef WITH_CONTIKI&lt;/h1&gt;
&lt;p&gt;/&lt;em&gt; FIXME it looks like this was never implemented &lt;/em&gt;/&lt;/p&gt;
&lt;h1 id="endif_5"&gt;endif&lt;/h1&gt;
&lt;p&gt;}&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">NMacs</dc:creator><pubDate>Tue, 02 Dec 2014 14:48:51 -0000</pubDate><guid>https://sourceforge.net23b3ec9a8830ea1e0726bced63f4ae2f64b09d0e</guid></item><item><title>Memory leak in coap_delete_attr in resource.c</title><link>https://sourceforge.net/p/libcoap/bugs/29/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Ticket 29 has been modified: Memory leak in coap_delete_attr in resource.c&lt;br /&gt;
Edited By: Olaf Bergmann (obgm)&lt;br /&gt;
Status updated: u'open' =&amp;gt; u'closed-rejected'&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">NMacs</dc:creator><pubDate>Tue, 02 Dec 2014 14:48:51 -0000</pubDate><guid>https://sourceforge.netdcab17a0d1c4163e824cee27463860dc842ebdfc</guid></item></channel></rss>