pimin
V2EX  ›  反馈

清空 cookie 回复主题会产生一个小 bug

  •  
  •   pimin · Oct 15, 2014 · 3210 views
    This topic created in 4298 days ago, the information mentioned may be changed or developed.
    对别的网站测试的时候情况了cookies,切换到v2ex的帖子忘记了,直接点了回复,结果就报错了
    建议增加验证,虽然这种情况应该非常非常少。

    Traceback (most recent call last):
    File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 1346, in _when_complete
    callback()
    File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 1367, in _execute_method
    self._when_complete(method(*self.path_args, **self.path_kwargs),
    File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 2522, in wrapper
    raise HTTPError(403)
    HTTPError: HTTP 403: Forbidden

    另外今天多次遇到:
    Access Denied

    Please retry after 48505 seconds.

    Cost: 8ms

    Target: 221.178.189.236

    不知道是什么原因
    4 replies
    pimin
        1
    pimin  
    OP
       Oct 15, 2014
    crysislinux
        2
    crysislinux  
       Oct 15, 2014
    有什么问题么,没登陆没权限确实应该返回403啊
    pimin
        3
    pimin  
    OP
       Oct 15, 2014   ❤️ 1
    @crysislinux
    难道不应该做些处理直接提示用户重新登陆么?
    难道都是把错误信息打印给访问者的?
    crysislinux
        4
    crysislinux  
       Oct 15, 2014
    @pimin 这个应该是直接抛出了这个异常。。我以为是自己用python写的登陆呢,才看出来是v2ex自己的代码报的错。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1144 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 18:10 · PVG 02:10 · LAX 11:10 · JFK 14:10
    ♥ Do have faith in what you're doing.