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

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

Projects

None yet

3 participants

@jat001
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
jat001 commented Jun 16, 2012

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

@88250
Member
88250 commented Jun 20, 2012

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

@88250 88250 reopened this Jun 20, 2012
@Vanessa219 Vanessa219 was assigned Jun 20, 2012
@88250
Member
88250 commented Jun 20, 2012

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

@88250
Member
88250 commented Jun 20, 2012

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

externalRelevantArticlesDisplayCount
relevantArticlesDisplayCount
randomArticlesDisplayCount
mostCommentArticleDisplayCount
mostViewArticleDisplayCount
recentCommentDisplayCount
mostUsedTagDisplayCount
articleListDisplayCount
articleListPaginationWindowSize

@88250 88250 added a commit that referenced this issue Jun 20, 2012
@88250 88250 后台验证已加,for #23 295132c
@Vanessa219 Vanessa219 added a commit that closed this issue Jun 26, 2012
@Vanessa219 Vanessa219 Fixed #23 1782a01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment