v2ex.com的cookie处理有问题,带analytics的任意页面只能打开一个,然后致命错误

2011-08-10 09:57:19 +08:00
 Tianpu
如打开www.v2ex.com,然后任意点个主题,则开始出现

/*
Traceback (most recent call last):
File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line 700, in __call__
handler.get(*groups)
File "/base/data/home/apps/v2ex/1.352429535779642179/main.py", line 68, in get
member = CheckAuth(self)
File "/base/data/home/apps/v2ex/1.352429535779642179/v2ex/babel/security/__init__.py", line 14, in CheckAuth
cookies = Cookies(handler, max_age = 86400 * 365, path = '/')
File "/base/data/home/apps/v2ex/1.352429535779642179/v2ex/babel/ext/cookies.py", line 6, in __init__
self._in = handler.request.cookies
File "/base/python_runtime/python_lib/versions/1/webob/__init__.py", line 985, in cookies
vars = self.str_cookies
File "/base/python_runtime/python_lib/versions/1/webob/__init__.py", line 973, in str_cookies
cookies.load(source)
File "/base/python_runtime/python_dist/lib/python2.5/Cookie.py", line 619, in load
self.__ParseString(rawdata)
File "/base/python_runtime/python_dist/lib/python2.5/Cookie.py", line 650, in __ParseString
self.__set(K, rval, cval)
File "/base/python_runtime/python_dist/lib/python2.5/Cookie.py", line 572, in __set
M.set(key, real_value, coded_value)
File "/base/python_runtime/python_dist/lib/python2.5/Cookie.py", line 451, in set
raise CookieError("Illegal key value: %s" % key)
CookieError: Illegal key value: ,__utma
*/

对应__utma cookie值是1.1225629132.1312940610.1312940610.1312940862.2 域 过期时间 路径 均无问题

清空cookie后可打开一个页面 然后继续重现

使用二级域名v2ex.appspot.com正常

另外 我认为analytics只是意淫 v2ex或者gae总有一个不健壮
3722 次点击
所在节点    V2EX
1 条回复
Livid
2011-08-10 10:04:47 +08:00
从 traceback 来看你觉得是谁的问题呢?

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/16675

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX