V2EX某异常泄露了部分信息 原来是基于py27/tornado/jinja2

2013-06-26 14:24:09 +08:00
 cj1324
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 1042, in _execute
getattr(self, self.request.method.lower())(*args, **kwargs)
File "/www/v2ex/galaxy/handlers/web/notifications.py", line 56, in get
self.finalize('n.xml')
File "/www/v2ex/galaxy/handlers/feed/__init__.py", line 45, in finalize
self.write(template.render(self.values))
File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 894, in render
return self.environment.handle_exception(exc_info, True)
File "/www/v2ex/galaxy/templates/feed/n.xml", line 25, in top-level template code
{{ n.payload|es|nlink|tlink|sinaimg|youtube|youku|tudou|gist|mentions|autolink|nl2br }}
File "/www/v2ex/galaxy/filters/__init__.py", line 55, in es
value = value.replace('<', '&lt;')
AttributeError: 'NoneType' object has no attribute 'replace'
3917 次点击
所在节点    反馈
8 条回复
ipconfiger
2013-06-26 15:39:37 +08:00
這個,不看異常也知道啊
Livid
2013-06-26 15:54:53 +08:00
多谢反馈。

这个异常已经修复。
ohhe
2013-06-26 17:16:56 +08:00
@Livid bug: 昨天我的未读提醒显示:21条未读提醒,其实只有1条
loading
2013-06-26 17:51:59 +08:00
我想知道如何在出错后不显示这个给客户。
bcxx
2013-06-26 17:58:21 +08:00
@loading 关掉 debug ?
cj1324
2013-06-26 18:20:29 +08:00
关掉debug显示500 就行~
tension
2013-06-26 18:22:11 +08:00
@ohhe 这个问题很多了我有时候显示91条
Livid
2013-06-26 18:24:59 +08:00
@loading V2EX 的普通页面上是看不到这个异常的。

是我们的一个 RSS Feed 出错时的异常。

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

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

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

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

© 2021 V2EX