Groups
Groups
Sign in
Groups
Groups
nutzam
Conversations
About
Send feedback
Help
[Bug报告][严重] 当@Fail使用Forwad/Jsp视图,且该视图也报错,会导致NPE
8 views
Skip to first unread message
Wendal Chen
unread,
Aug 20, 2012, 4:02:10 AM
8/20/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to nutzam
相应的修正:
https://github.com/nutzam/nutz/commit/351ad0d30b6a6d8d9aeed0c2e4adb16ce0d2677e
案例:
@Fail("jsp:403.jsp")
访问入口方法doLogin, 登陆失败, 转向@Fail的403.jsp, 但403.jsp文件本身有错, 这时候, Nutz会抛出NPE, 正常行为应该是抛出jsp文件产生的异常
虽然结果都一样, 报500错误, 但因为Nutz抛NPE, 真正的异常未能暴露出来.
--
Wendal Chen
GuangDong China
Reply all
Reply to author
Forward
0 new messages