Uploaded image for project: 'vtn'
  1. vtn
  2. VTN-21

Query parameters should be eliminated from the Location header.

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • unspecified
    • None
    • VTN Manager
    • 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&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

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            yasuda Shigeru Yasuda
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: