Skip to content

Unable to disable Security on the Brightness example #1

@yannS2016

Description

@yannS2016

am trying to do a get resquest on this resource: /example/BrightnessResURI

from the ./src/brightness example.

system: Ubuntu 16.04 64 bits
running iotivity 1.3.1 build with SECURED = 1 ( this seems to be a requirement to deal with this example)

cd /src/brightness example.

i commented out OC_SECURED under common.h. and increase the /example/BrightnessResURI resource
permission to (31) which should allow all operation if my understanding is correct.

make(build scorrectly)

./bin/server -v
from logs: runs and update the brightness value

./bin/observer
resourceUri=/example/BrightnessResURI

and hangs there.

is this a permissions or security problem. trying to increase permission on the resource still
leave the observer hanging.
**** REST API SERVER TEST: https://github.com/intel/iot-rest-api-server
http://localhost:8000/api/oic/res
{"di":"31313131-3131-3131-3131-313131313131","links":[{"href":"/example/BrightnessResURI","rt":["oic.r.light.brightness"],"if":["oic.if.baseline"],"p":{"bm":3,"secure":false}}]}

Trying to get the ressource via the IOT API REST SERVER return:

http://localhost:8000/api/oic/example/BrightnessResURI?di=31313131-3131-3131-3131-313131313131 Resource retrieve failed: Access denied

This to me has more to do with security more than permissions,.

can you shed some light on how i can disable this security restrictions. i would like to use this example as base for some of my own development.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions