|
I think this is similar to http://answers.splunk.com/questions/3602/can-splunk-accept-cookies-with-colon-embedded but not exactly. It seems that when I have a domain wide cookie set, I can never get to splunk (if I use a fully qualified domain name to access splunk). Even if the cookie names appear valid, I still get an error from splunk. Here is one example. 400 Bad Request Illegal cookie name AtworkEnv Traceback (most recent call last): File "/opt/splunk/splunk/lib/python2.6/site-packages/cherrypy/_cprequest.py", line 581, in respond self.process_headers() File "/opt/splunk/splunk/lib/python2.6/site-packages/cherrypy/_cprequest.py", line 653, in process_headers raise cherrypy.HTTPError(400, msg) HTTPError: (400, 'Illegal cookie name AtworkEnv') The domain wide cookies are set by an ap that we have no control over (and must goto daily). Also, I must use a fully qualified domain name to access splunk (we have different domain at my work). Has anyone found a workaround for this? Thanks Kevin |
|
Bump. This just bit me again, this time with glassfish admin cookies. This is a problem somewhere in Cookie.py. Anyone have a little fix? Maybe something borrowed from a newer Python? I see on the tubes that this is a problem for Google Analytics, as well, as they use cookies with colons in the name. |
|
Looking at it closer, it appears there are 2 issues:
Not sure what we are going to do, but it would be best if splunk could handle the illegal cookie names. |
|
It looks like commenting out line 653 will stop the error from killing the request. I will make sure this is filed as a bug with CherryPy. This does not seem to work reliably. The Cookie.py stops processing (and raises the error) when it hits the first error. So if the "Cookie" header contains: good=value; b:ad=value Things are fine with that line commented out. If the value of "Cookie" is: b:ad=value; good=value Then Cookie.py stops processing and the good=value is never read in. I think we need to comment out the raise in Cookie.py
(04 Apr '11, 19:47)
kkalmbach
|
