igriffiths / pwm

Automatically exported from code.google.com/p/pwm
0 stars 0 forks source link

User's with no mail attribute value cannot activate account #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
PWM v1.5.0

What steps will reproduce the problem?
1. Default PWM Configuration
2. LDAP user with no "mail" attribute
3. Activate a user.

PWM Crashes with an NPE:

2010-07-12 18:46:56, WARN , servlet.TopServlet, {47,zz} unexpected exception 
during page generation: null [0:0:0:0:0:0:0:1]
java.lang.NullPointerException
    at password.pwm.servlet.ActivateUserServlet.sendActivationEmail(ActivateUserServlet.java:308)
    at password.pwm.servlet.ActivateUserServlet.processRequest(ActivateUserServlet.java:161)
    at password.pwm.servlet.TopServlet.handleRequest(TopServlet.java:75)
    at password.pwm.servlet.TopServlet.doPost(TopServlet.java:117)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at password.pwm.CaptchaFilter.doFilter(CaptchaFilter.java:56)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at password.pwm.SessionFilter.doFilter(SessionFilter.java:257)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    at java.lang.Thread.run(Thread.java:619)

Original issue reported on code.google.com by jrivard on 12 Jul 2010 at 10:47

GoogleCodeExporter commented 9 years ago
Fixed as of b960

Original comment by jrivard on 12 Jul 2010 at 11:06

GoogleCodeExporter commented 9 years ago
Fixed as of b960

Original comment by jrivard on 12 Jul 2010 at 11:06