On 06/23/2016 09:24 AM, Gregg Reynolds wrote:
> Hi folks,
> 
> It looks to me like at least some of the sample server code mis-handles POST 
> requests.  Specifically 
> 
> resource/csdk/stack/samples/linux/SimpleClientServer/ocserver.cpp
> 
> android/examples/simpleserver/src/main/java/org/iotivity/base/examples/Light.java
> 
> In both cases the code handling POST requests simply creates a new resource 
> with a new URI.
> 
> I think this violates the CRUDN to CoAP mapping on pages 98 and 99 of the OIC 
> Core Spec v. 1.0.0, which states clearly that the target URI in a POST 
> request must exist. If it does not, a "Resource not found" response "shall be 
> returned".

there's a ticket open on some of this:

https://jira.iotivity.org/browse/IOT-1121

maybe add a few more comments there if there look to still be holes from your 
perspective.


keeping the samples up to date is, of course, challenging.


Reply via email to