[IOTDM-24] Need to update content-type in the headers Created: 04/Aug/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: Razi Ahmed
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: 4088

 Description   

6.4.3 Content-Type
Any HTTP request or response containing message-body shall include the Content-type header set to one of ”application/xml”, “application/json”, ”application/vnd.onem2m-res+xml”, “application/vnd.onem2m-res+json”, “application/vnd.onem2m-ntfy+xml” , “application/vnd.onem2m-ntfy+json”, “application/vnd.onem2m-attrs+xml” , “application/vnd.onem2m-attrs+json”.
Content-Type of the HTTP response should be chosen by the Hosting CSE considering Accept header given in the HTTP request. For example, if the Accept header in a request is set to “application/vnd.onem2m-prsp+xml”, then the response should use one of the oneM2M defined media types in XML serialization (see clause 6.7 [3]).
The value of the Resource Type primitive parameter, which is present in Create request primitives only, shall be appended to the Content-type of the corresponding HTTP request message in the form ty=value, separated by a semicolon character. A valid Content-Type header in this case looks e.g. as follows:
Content-Type: application/vnd.onem2m-res+xml; ty=3



 Comments   
Comment by Razi Ahmed [ 02/Sep/15 ]

I was able to provision CSE using http://localhost:8181/restconf/operations/onem2m:onem2m-cse-provisioning but when I am provisioning AE from http://localhost:8282/mockCSE?ty=2, I am unable to replicate the bug.

Is there any code change? Can you tell me the URL to provision AE?

Comment by Cangji Wu [ 02/Sep/15 ]

(In reply to Razi Ahmed from comment #1)
> I was able to provision CSE using
> http://localhost:8181/restconf/operations/onem2m:onem2m-cse-provisioning but
> when I am provisioning AE from http://localhost:8282/mockCSE?ty=2, I am
> unable to replicate the bug.
>
> Is there any code change? Can you tell me the URL to provision AE?

This bug has been fixed and it is marked as "WAITING FOR REVIEW".
After review, we will mark it as "fixed".

Thanks

Comment by Cangji Wu [ 02/Sep/15 ]

(In reply to Razi Ahmed from comment #1)
> I was able to provision CSE using
> http://localhost:8181/restconf/operations/onem2m:onem2m-cse-provisioning but
> when I am provisioning AE from http://localhost:8282/mockCSE?ty=2, I am
> unable to replicate the bug.
>
> Is there any code change? Can you tell me the URL to provision AE?

To create AE, you can see the example here within Postman:

https://www.getpostman.com/collections/fea43287d54edf0d38a0

Do you receive an invite of slack several days ago? I think I invited you.
You can use the slack to ask us any question.

Comment by Razi Ahmed [ 03/Sep/15 ]

Yes, I got the invite of slack and joined it. I will post any queries on slack from now onward.

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