Community

Open allianCE for iot stANDard

About Retrieve ContentInstance
Kei Nomoto | 2018-04-19 14:52 | Views 949
Thank you for your reply.


The value of ACP is as follows;

{
"m2m: acp": {
"pi": "S20180307030000072r08R",
"ty": 1,
"ct": "20180307 T041831",
"ri": "Bymemu 1 Tuf",
"rn": "sample_acp",
"lt": "20180307 T041831",
"et": "20210307 T041831",
"pv": {
"acr": [
{"acor": ["S20180307030000072r08R"], "acop": 63},
{"acor": ["test"], "acop": 2}
]
},
"pvs": {
"acr": [
{"acor": ["admin: admin"], "acop": 63},
{"acor": ["S20180307030000072r08R"], "acop": 63}
]
}
}
}

It is not 'all'.
For the AE, only the above ACP is set as acpi.
Retrieve AE, Retrieve Container behaves according to the set ACP.
Only ContentInstance, ACP is not reflected.

At this time, it has the following behavior;

(1) X-M2M-Origin:S20180307030000072r08R
Retrieve AE: success
Retrieve Container: success
Retrieve ContentInstance: success

(2) X-M2M-Origin:sample
Retrieve AE: Failure
Retrieve Container: Failure
Retrieve COntentInstance: Success

thanks for your question.


if you would not create acp and link acpi, Mobius apply default access control policy.

Basically, Moibus allows everyone to retrieve and create access right.

but, update and delete access right is not allowed


in your actions, at (2) you created ACP and at (3) you update AE with acpi link acp created

then Moibus will apply your acp configured


if it is not working, check content(policy) of ACP if acor is 'all' or not



-----------------------------------------------------------------------------

Question about Retrieve of ContentInstance.

* Build resources as follows:
(1) Create AE
(2) Create ACP
(3) Update AE
(4) Create Container
(5) Create ContentInstance

* After the resource construction, carry out the retrieve test:
Regardless of what I set to Originator, ContentInstance could be retrieved.
This seems not to be a normal operation, but what do you think?
Question about Retrieve of ContentInstance.

* Build resources as follows:
(1) Create AE
(2) Create ACP
(3) Update AE
(4) Create Container
(5) Create ContentInstance

* After the resource construction, carry out the retrieve test:
Regardless of what I set to Originator, ContentInstance could be retrieved.
This seems not to be a normal operation, but what do you think?