[VTN-21] Query parameters should be eliminated from the Location header. Created: 21/May/14  Updated: 03/May/18  Resolved: 21/May/14

Status: Resolved
Project: vtn
Component/s: VTN Manager
Affects Version/s: unspecified
Fix Version/s: None

Type: Bug
Reporter: Shigeru Yasuda Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Linux
Platform: PC


External issue ID: 1058

 Description   

Some REST APIs of the VTN Manager copy the request URI into the Location
response-header. If the request URI has query parameters, they are also copied
into the Location header.

For example, if a REST client sends a request to create a VTN with query parameters:

http://127.0.0.1:8080/controller/nb/v2/vtn/default/vtns/vtn_1?param1=10&param2=20

then the VTN Manager returns the request URI, including query parameters,
in the Location header.

HTTP/1.1 201 Created
Location: http://127.0.0.1:8080/controller/nb/v2/vtn/default/vtns/vtn_1?param1=10&param2=20

The absolute URI in the Location header represents the location of a newly
created resource. So query parameters sent by a client should be eliminated
from the Location header like this:

HTTP/1.1 201 Created
Location: http://127.0.0.1:8080/controller/nb/v2/vtn/default/vtns/vtn_1



 Comments   
Comment by Shigeru Yasuda [ 21/May/14 ]

I pushed a patch that resolves this problem.

https://git.opendaylight.org/gerrit/7286 (master)

Comment by Shigeru Yasuda [ 21/May/14 ]

This patch was cherry-picked to stable/hydrogen branch.

https://git.opendaylight.org/gerrit/7287

Comment by Shigeru Yasuda [ 21/May/14 ]

This patch was merged to both master and stable/hydrogen.

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