This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 26586 - getCookie method in 12.1.2 is declared as HTTP GET, but contains parameter
Summary: getCookie method in 12.1.2 is declared as HTTP GET, but contains parameter
Status: RESOLVED FIXED
Alias: None
Product: Browser Test/Tools WG
Classification: Unclassified
Component: WebDriver (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Browser Testing and Tools WG
QA Contact: Browser Testing and Tools WG
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-14 19:53 UTC by Jim Evans
Modified: 2015-03-31 20:45 UTC (History)
3 users (show)

See Also:


Attachments

Description Jim Evans 2014-08-14 19:53:20 UTC
In section 12.1.2, the getCookie method is defined as:

    GET /session/{sessionId}/cookie

However, the subsequent prose indicates that a parameter indicating the cookie name to be retrieved can be optionally sent. Given that the command uses an HTTP GET (which is consistent with existing implementations, and likely should not be changed), it cannot have a payload that contains a name.
Comment 1 jleyba 2014-08-14 20:27:11 UTC
For the existing implementations, GET /session/{sessionId}/cookie returns ALL cookies visible to the current page. GET /session/{sessionId}/cookie/{name} returns a specific cookie.
Comment 2 Jim Evans 2014-08-20 13:27:51 UTC
As a point of clarification, no existing implementation implements GET /session/{sessionId}/cookie/{name}. They implement DELETE /session/{sessionId}/cookie/{name} for deleting a specific cookie, but the GET verb is entirely undefined.
Comment 3 David Burns :automatedtester 2015-03-31 20:45:24 UTC
fixed in https://github.com/w3c/webdriver/commit/08382499cb775645b61b313be4fd441b72259b56