Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

偏好设定关键参数校验 #23

Closed
jat001 opened this Issue Jun 15, 2012 · 4 comments

Comments

3 participants
@jat001
Copy link

jat001 commented Jun 15, 2012

在 偏好设定 - 参数设定 里设置不当,导致整个博客全部404,后台也无法访问,请问怎样解决?
GAE Logs 里大都是 org.json.JSONException: JSONObject["articleListPaginationWindowSize"] is not a number 之类的

@jat001 jat001 closed this Jun 16, 2012

@jat001

This comment has been minimized.

Copy link
Author

jat001 commented Jun 16, 2012

问题已解决,提个建议:最好对参数设定做下防错处理,如果参数错误就不能更新,防止误操作产生的问题

@88250

This comment has been minimized.

Copy link
Member

88250 commented Jun 20, 2012

嗯,慢慢会加入必要的校验的。
多谢提醒!

@88250 88250 reopened this Jun 20, 2012

@ghost ghost assigned Vanessa219 Jun 20, 2012

@88250

This comment has been minimized.

Copy link
Member

88250 commented Jun 20, 2012

V 帮忙加一下前台校验吧 ;-)

@88250

This comment has been minimized.

Copy link
Member

88250 commented Jun 20, 2012

前后端加入对 preference 如下字段的校验(非负整数):

externalRelevantArticlesDisplayCount
relevantArticlesDisplayCount
randomArticlesDisplayCount
mostCommentArticleDisplayCount
mostViewArticleDisplayCount
recentCommentDisplayCount
mostUsedTagDisplayCount
articleListDisplayCount
articleListPaginationWindowSize

88250 added a commit that referenced this issue Jun 20, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.