On Thu, Jun 23, 2016 at 10:40 AM, Mats Wichmann <mats at osg.samsung.com> wrote:
> 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 > > Hmm, https://gerrit.iotivity.org/gerrit/#/c/8565/ looks definitely wrong. The mappings from PUT/POST to CREATE/UPDATE respectively are not 1-1. This is very clear in the OIC spec section 12.2.2. -Gregg -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160623/37533c6c/attachment.html>
