Details
-
Bug
-
Status: Resolved
-
Resolution: Done
-
unspecified
-
None
-
None
-
Operating System: Linux
Platform: PC
-
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¶m2=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¶m2=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