[IOTDM-21] response of resource with resourceName is not correct Created: 10/Jul/15  Updated: 09/Sep/15  Resolved: 09/Sep/15

Status: Resolved
Project: iotdm
Component/s: General
Affects Version/s: unspecified
Fix Version/s: None

Type: Bug
Reporter: Cangji Wu Assignee: John Burns
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 3978

 Description   

Get:

http://localhost:8282/InCSE1/JOHN?rcn=5&drt=2

receive:
{
"cbs": 0,
"rn": "/InCSE1/b2zsl5",
"or": "http://hey/you",
"ri": "/InCSE1/b2zsl5",
"lt": "20150709T235315Z",
"ct": "20150709T235315Z",
"mni": 1,
"cni": 0,
"cr": "//localhost:10000",
"mbs": 3,
"ch": [],
"st": 0,
"pi": "/InCSE1/39lbbt",
"rty": 3
}

if the resource Name is JOHN. in the response, should we receive rn = /InCSE1/b2zsl5 OR rn = /InCSE1/JOHN ?



 Comments   
Comment by John Burns [ 10/Jul/15 ]

I think if drt=2, then the resource name returned should be the non-hierarchical name. I need to consult the specs.

Comment by Lionel Florit [ 24/Aug/15 ]

(In reply to John Burns from comment #1)
> I think if drt=2, then the resource name returned should be the
> non-hierarchical name. I need to consult the specs.

resourceName should always be written in one format: in this case "rn"="b2zsl5"

The rcn affects the format of the resource ID (ri) as per TS001 table 9.3.1-1

Generated at Wed Feb 07 20:04:57 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.