V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Tianpu
V2EX  ›  V2EX

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

  •  
  •   Tianpu · 2011-08-10 09:57:19 +08:00 · 3703 次点击
    这是一个创建于 4832 天前的主题,其中的信息可能已经有所发展或是发生改变。
    如打开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总有一个不健壮
    1 条回复    1970-01-01 08:00:00 +08:00
    Livid
        1
    Livid  
    MOD
       2011-08-10 10:04:47 +08:00
    从 traceback 来看你觉得是谁的问题呢?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5970 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 06:19 · PVG 14:19 · LAX 23:19 · JFK 02:19
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.