Mantis - Quercus
Viewing Issue Advanced Details
1837 minor always 06-28-07 12:02 10-16-07 15:44
dizzle  
ferg  
normal  
closed  
fixed  
none    
none 3.1.4  
0001837: Mantis shows a stack trace instead of a proper error message
Mantis shows a stack trace for any error case. For example, when I was trying to register an account, it happened if I entered an existing username, an existing email address, or an invalid password. Looking at the stack trace, it appears to be an issue with how Quercus does error handling.

java.lang.NullPointerException
    at com.caucho.quercus.lib.file.FileModule.basename(FileModule.java:122)
    at _quercus._core._error_0api__php$fun_error_handler.call(var/www/hosts/bugs.caucho.com/webapps/ROOT/core/error_api.php:50)
    at com.caucho.quercus.env.CallbackFunction.call(CallbackFunction.java:148)
    at com.caucho.quercus.env.Env.error(Env.java:3700)
    at com.caucho.quercus.lib.ErrorModule.trigger_error(ErrorModule.java:457)
    at _quercus._core._user_0api__php$fun_user_ensure_name_unique.call(var/www/hosts/bugs.caucho.com/webapps/ROOT/core/user_api.php:134)
    at _quercus._core._user_0api__php$fun_user_create.callImpl(var/www/hosts/bugs.caucho.com/webapps/ROOT/core/user_api.php:345)
    at com.caucho.quercus.program.CompiledFunction_N.call(CompiledFunction_N.java:86)
    at _quercus._core._user_0api__php$fun_user_signup.call(var/www/hosts/bugs.caucho.com/webapps/ROOT/core/user_api.php:418)
    at com.caucho.quercus.program.CompiledFunction.callRef(CompiledFunction.java:58)
    at _quercus._signup__php.execute(var/www/hosts/bugs.caucho.com/webapps/ROOT/signup.php:44)
    at com.caucho.quercus.page.QuercusPage.executeTop(QuercusPage.java:115)
    at com.caucho.quercus.servlet.ResinQuercusServlet.service(ResinQuercusServlet.java:122)
    at com.caucho.quercus.servlet.QuercusServlet.service(QuercusServlet.java:298)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:92)
    at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:103)
    at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:167)
    at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:226)
    at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:263)
    at com.caucho.server.port.TcpConnection.run(TcpConnection.java:477)
    at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:600)
    at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:522)
    at java.lang.Thread.run(Thread.java:595)

Notes
(0002349)
ferg   
10-16-07 15:44   
php/1602