Actions
Bug #6078
closedtvheadend cookie keys break other services on the same domain.
Status:
Invalid
Priority:
Normal
Assignee:
-
Category:
User Interface
Target version:
-
Start date:
2021-08-04
Due date:
% Done:
0%
Estimated time:
Found in version:
HTS Tvheadend 4.3-1974~g6efa41164
Affected Versions:
Description
The slash in the tvheadend cookie keys breaks a few other services running on the same domain.
This is the error message:
400 Bad Request
Illegal key 'ys-api/dvr/entry/grid_upcoming'
Traceback (most recent call last):
File "/app/tautulli/lib/cherrypy/_cprequest.py", line 732, in process_headers
self.cookie.load(value)
File "/usr/lib/python3.8/http/cookies.py", line 529, in load
self.__parse_string(rawdata)
File "/usr/lib/python3.8/http/cookies.py", line 593, in __parse_string
self.__set(key, rval, cval)
File "/usr/lib/python3.8/http/cookies.py", line 485, in __set
M.set(key, real_value, coded_value)
File "/usr/lib/python3.8/http/cookies.py", line 352, in set
raise CookieError('Illegal key %r' % (key,))
http.cookies.CookieError: Illegal key 'ys-api/dvr/entry/grid_upcoming'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/app/tautulli/lib/cherrypy/_cprequest.py", line 630, in respond
self._do_respond(path_info)
File "/app/tautulli/lib/cherrypy/_cprequest.py", line 658, in _do_respond
self.process_headers()
File "/app/tautulli/lib/cherrypy/_cprequest.py", line 734, in process_headers
raise cherrypy.HTTPError(400, str(exc))
cherrypy._cperror.HTTPError: (400, "Illegal key 'ys-api/dvr/entry/grid_upcoming'")
In my situation tvheadend breaks Tautulli, but searching the internet for a solution I've seen a many other examples where the slashes in tvheadend cookie keys break the service.
Actions