Upgrade to 2.0.1 breaks existing code wherever cookies are passed as keyword arguments.

We use request to run regression tests on restful services. 
I upgraded to 2.0.1 now I get a Keyword error , wherever cookies are passed as keyword arguments.

Simple stacktrace:

self.result = requests.get(url, params=params, headers={'content-type':'application/json'}, cookies=self.cookies)

KeyError("name=Cookie(version=0, name='qa_session_id', value='e32393932842fba755d57f359ac1b0ae', port=None, port_specified=False, domain='.workshare.com', domain_specified=True, domain_initial_dot=True, path='/', path_specified=True, secure=True, expires=None, discard=True, comment=None, comment_url=None, rest={'HttpOnly': None}, rfc2109=False), domain=None, path=None",) 

Error in C:\Users\automation\FeatureTest\libraries\ApiAutomation.py on line 177 
 Error in C:\Users\automation\FeatureTest\libraries\RequestsSupport.py on line 44
 Error in C:\PYTHON27\lib\site-packages\requests\api.py on line 55 
 Error in C:\PYTHON27\lib\site-packages\requests\api.py on line 44 
 Error in C:\PYTHON27\lib\site-packages\requests\sessions.py on line 327 
 Error in C:\PYTHON27\lib\site-packages\requests\cookies.py on line 410 
 Error in C:\PYTHON27\lib\site-packages\requests\cookies.py on line 256 
 Error in C:\PYTHON27\lib\site-packages\requests\cookies.py on line 311


Tell me, is `self.cookies` in your example a `CookieJar`?


The cookie is  obtained from a successful login which is done via requests post .. so whatever object  that returns
BTW I have reverted to version 1.2.3  and everything is working fine again

From: Cory Benfield [mailto:notifications@github.com]
Sent: 18 November 2013 13:18
To: kennethreitz/requests
Cc: Adrian Upton
Subject: Re: [requests] Upgrade to 2.0.1 breaks existing code wherever cookies are passed as keyword arguments. (#1744)

Tell me, is self.cookies in your example a CookieJar?

—
Reply to this email directly or view it on GitHubhttps://github.com/kennethreitz/requests/issues/1744#issuecomment-28696779.


I feel fairly confident this is exactly the same issue as https://github.com/kennethreitz/requests/issues/1711 and that @auworkshare did not look at open issues before filing this one.


@auworkshare If you're using cookies you got from a successful login, you should really just be using a `Session` to persist your state for you. I'm assuming you're just taking the cookies from the `Response` object, which are in a `CookieJar`. This means that @sigmavirus24 is correct, this is a duplicate of #1711.


When will the fix be available ?

From: Cory Benfield [mailto:notifications@github.com]
Sent: 18 November 2013 15:47
To: kennethreitz/requests
Cc: Adrian Upton
Subject: Re: [requests] Upgrade to 2.0.1 breaks existing code wherever cookies are passed as keyword arguments. (#1744)

@auworksharehttps://github.com/auworkshare If you're using cookies you got from a successful login, you should really just be using a Session to persist your state for you. I'm assuming you're just taking the cookies from the Response object, which are in a CookieJar. This means that @sigmavirus24https://github.com/sigmavirus24 is correct, this is a duplicate of #1711https://github.com/kennethreitz/requests/issues/1711.

—
Reply to this email directly or view it on GitHubhttps://github.com/kennethreitz/requests/issues/1744#issuecomment-28708654.


In the next version of Requests. We don't commit to a timeline more specific than that. =)


OK
Thank for the advice on the Sessions, It will take us a lot of recoding to implement
Which is why we would prefer to wait for the fix.
Cheers.

From: Cory Benfield [mailto:notifications@github.com]
Sent: 18 November 2013 16:33
To: kennethreitz/requests
Cc: Adrian Upton
Subject: Re: [requests] Upgrade to 2.0.1 breaks existing code wherever cookies are passed as keyword arguments. (#1744)

In the next version of Requests. We don't commit to a timeline more specific than that. =)

—
Reply to this email directly or view it on GitHubhttps://github.com/kennethreitz/requests/issues/1744#issuecomment-28713407.