[IOTDM-25] need to support "Content-Location" in the response 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: Rajani Srivastava
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: 4089

 Description   

6.4.4 Content-Location
The Content-Location header of HTTP response messagaes shall be set to the URI of the created resource, when responding to a Create request primitive. The URI shall be retrieved from the Content parameter of the response primitive. See clause 7.2.3.11 “Create a success response” in [3].



 Comments   
Comment by Rajani Srivastava [ 14/Aug/15 ]

Hi Cangji

I have investigated on this bug.
It can be solved using httpResponse.setHeader() or httpResponse.addHeader()
which will return the response header as :
Content-Location : /inCSE/AE1

for POST and GET both.
My queries are :
Should the response Content-Location be retrieved only for POST (create)?
The created resource URL can be GET using two ways :
/inCSE/resourceID
/inCSE/resourceName

which URI in Content-Location should refer to?

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