You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a secure cookie is set then webobtoolkit has an issue attempting to send the cookie on subsequent requests.
The issue appears to be with the cookie filter not creating a proper mock request with a get_type() function so cookielib can verify the scheme used to send the request.
It blows up here in cookielib.py:
def return_ok_secure(self, cookie, request):
if cookie.secure and request.get_type() != "https":
_debug(" secure cookie with non-secure request")
return False
return True
But the root cause is this class in filters.py just needs to implement this get_type() function...
class RequestCookieAdapter(object):
"""
this class merely provides the methods required for a
cookielib.CookieJar to work on a webob.Request
potential for yak shaving...very high
"""
def __init__(self, request):
self._request = request
def is_unverifiable(self):
return True # sure? Why not?
def get_full_url(self):
return self._request.url
def get_origin_req_host(self):
return self._request.host
def add_unredirected_header(self, key, header):
self._request.headers[key] = header
def has_header(self, key):
return key in self._request.headers
The text was updated successfully, but these errors were encountered:
If a secure cookie is set then webobtoolkit has an issue attempting to send the cookie on subsequent requests.
The issue appears to be with the cookie filter not creating a proper mock request with a get_type() function so cookielib can verify the scheme used to send the request.
It blows up here in cookielib.py:
But the root cause is this class in filters.py just needs to implement this get_type() function...
The text was updated successfully, but these errors were encountered: