[IOTDM-62] Compliance - IoTDM is not sending "mni" attribute in response during container creation Created: 20/Feb/17  Updated: 19/Oct/17

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

Type: Bug
Reporter: Anil Pandey Assignee: Unassigned
Resolution: Unresolved 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: 7823
Priority: Low

 Description   

Currently, IoTDM is responding with following attributes while creating the “content” resource or when AS retrieve (GET) the “content” resource.

1) While doing Container creation request, see following response -
{
"m2m:cnt":

{ "ct": "20170220T144009", "st": 0, "ty": 3, "cbs": 0, "ri": "01i", "lt": "20170220T144009", "pi": "/InCSE1/01h", "et": "29991231T111111", "cni": 0 }

}

2) I do see following in the data-store (MD-SAL)

01h TestContainer 3 {"ct":"20170220T144009","st":0,"ty":3,"cbs":0,"ri":"01i","lt":"20170220T144009","pi":"01h","rn":"TestContainer","et":"29991231T111111","cni":0} 01i

Expected behavior - NSC shall include “mni”, attributes in the HTTP/201 when container create response ?

As per onem2m TS-004 (see para 1) -

7.4.6.2.1 Create
Originator:
No change from the generic procedures in clause 7.2.2.1.
Receiver:
Primitive specific operation on Recv-6.4 is performed with following exceptions for optional attributes while executing procedures defined in clause 7.3.3.3.
The Hosting CSE may assign default values based on local policy for optional attributes maxNrOfInstances , maxByteSize and maxInstanceAge.
If the maxNrOfInstances , maxByteSize or maxInstanceAge attributes are present in the resource representation, but their value indicates an invalid value, then the request shall be rejected with a Response Status Code indicating "BAD_REQUEST" error.
There are two cases where the Hosting CSE shall configure or overrride a maxNrOfInstances , maxByteSize or maxInstanceAge value specified in the resource representation (if present).
1) The Originator does not specify a value

2) The Hosting CSE determines the maxNrOfInstances , maxByteSize or maxInstanceAge requested by the Originator doesn’t meet its requirements (e.g. based on a local policy)

In these cases, the Hosting CSE shall configure a maxNrOfInstances , maxByteSize or maxInstanceAge into the resource according to local policy. In addition, the Hosting CSE shall communicate the modified value back to the originator in the response if the Result Content parameter permits this.
No other changes from the generic procedures in clause 7.2.2.2



 Comments   
Comment by Lionel Florit [ 22/Feb/17 ]

We decided to respond with only modified attributes, not included in original request. We'll fix this if you have to (oneM2M compliance test suite calls for it)

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