fbordina / pwm

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

Add Mobile Number to Userprofile #408

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. when i add the value "mobile" to the User Profile Form the PWM doesn't work 
anymore 
2.
3.

What is the expected output? What do you see instead?

What version of PWM are you using?

What ldap directory and version are you using?
Novell eDirectory 8.8SP7

Please paste any error log messages below:
Unexpected error. If this error occurs repeatedly please contact your helpdesk. 
{ 5015 ERROR_UNKNOWN (ChaiProvider instance has been closed) }

Original issue reported on code.google.com by meissner...@googlemail.com on 14 Jun 2013 at 10:44

Attachments:

GoogleCodeExporter commented 9 years ago
Please set log levels to trace and add log information to the issue.

Original comment by jrivard on 16 Jun 2013 at 11:42

GoogleCodeExporter commented 9 years ago
I've just recompiled R574 and seeing this issue as well. A log at level trace:

2013-06-18 15:57:51, TRACE, pwm.SessionFilter, {i,testuser} GET request for: 
/account/private/UpdateProfile (no params)  [132.456.789.1]
2013-06-18 15:57:51, TRACE, provider.WireTraceWrapper, begin op#394 
readStringAttributes(cn=testuser,ou=users,o=meta,[testAuxsmsNumber, 
testAuxendDate, testAuxmail, testAuxmail4])
2013-06-18 15:57:51, WARN , servlet.TopServlet, {i,testuser} unexpected pwm 
error during page generation: ChaiProvider instance has been closed 
[132.456.789.1]
java.lang.IllegalStateException: ChaiProvider instance has been closed
    at com.novell.ldapchai.provider.AbstractProvider.activityPreCheck(AbstractProvider.java:197)
    at com.novell.ldapchai.provider.JNDIProviderImpl.readStringAttributes(JNDIProviderImpl.java:462)
    at sun.reflect.GeneratedMethodAccessor59.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:611)
    at com.novell.ldapchai.provider.AbstractWrapper.invoker(AbstractWrapper.java:80)
    at com.novell.ldapchai.provider.FailOverWrapper.invoke(FailOverWrapper.java:132)
    at $Proxy51.readStringAttributes(Unknown Source)
    at sun.reflect.GeneratedMethodAccessor59.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:611)
    at com.novell.ldapchai.provider.AbstractWrapper.invoker(AbstractWrapper.java:80)
    at com.novell.ldapchai.provider.WatchdogWrapper.invoke(WatchdogWrapper.java:206)
    at $Proxy51.readStringAttributes(Unknown Source)
    at sun.reflect.GeneratedMethodAccessor59.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:611)
    at com.novell.ldapchai.provider.WireTraceWrapper.traceInvokation(WireTraceWrapper.java:124)
    at com.novell.ldapchai.provider.WireTraceWrapper.invoke(WireTraceWrapper.java:99)
    at $Proxy51.readStringAttributes(Unknown Source)
    at sun.reflect.GeneratedMethodAccessor59.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:611)
    at com.novell.ldapchai.provider.StatisticsWrapper.invoke(StatisticsWrapper.java:121)
    at $Proxy51.readStringAttributes(Unknown Source)
    at com.novell.ldapchai.impl.AbstractChaiEntry.readStringAttributes(AbstractChaiEntry.java:323)
    at password.pwm.util.operations.UserDataReader.readStringAttributes(UserDataReader.java:90)
    at password.pwm.util.operations.UserDataReader.readStringAttributes(UserDataReader.java:70)
    at password.pwm.servlet.UpdateProfileServlet.populateFormFromLdap(UpdateProfileServlet.java:258)
    at password.pwm.servlet.UpdateProfileServlet.advanceToNextStep(UpdateProfileServlet.java:192)
    at password.pwm.servlet.UpdateProfileServlet.processRequest(UpdateProfileServlet.java:115)
    at password.pwm.servlet.TopServlet.handleRequest(TopServlet.java:83)
    at password.pwm.servlet.TopServlet.doGet(TopServlet.java:66)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    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.AuthenticationFilter.processAuthenticatedSession(AuthenticationFilter.java:146)
    at password.pwm.AuthenticationFilter.doFilter(AuthenticationFilter.java:78)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at password.pwm.SessionFilter.processFilter(SessionFilter.java:234)
    at password.pwm.SessionFilter.doFilter(SessionFilter.java:83)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at password.pwm.GZIPFilter.doFilter(GZIPFilter.java:45)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at password.pwm.ApplicationModeFilter.doFilter(ApplicationModeFilter.java:63)
    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:128)
    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:286)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    at java.lang.Thread.run(Thread.java:736)
2013-06-18 15:57:51, TRACE, util.MacroMachine, replaced Macro @User:ID@ with 
value: testuser
2013-06-18 15:57:51, DEBUG, pwm.PwmSession, {i} unauthenticate session from 
132.456.789.1 (cn=testuser,ou=users,o=meta) [132.456.789.1]

Original comment by sebastia...@gmail.com on 18 Jun 2013 at 2:01

GoogleCodeExporter commented 9 years ago

I found the cause of this issue in my setup. I seems that is has to do with a 
change of a Regular Expression inside a Form Configuration.

The following valid regular expression causes the stack trace:

(?i)^[_a-z0-9-]+(\.[_a-z0-9-]+)*@(?![a-z0-9-.]*leidenuniv.nl$)[a-z0-9-]+(\.[a-z0
-9-]+)*(\.[a-z]{2,3})$

Without the case insensitivity (?i) everything works correctly.

I'm not sure why PWM does not like the (?i).

Original comment by sebastia...@gmail.com on 19 Jun 2013 at 12:15

GoogleCodeExporter commented 9 years ago
I did some further testing, and it is not correlated to the regexp. In my case 
every change on the form configuration without closing my browser, results in 
the error above.

Original comment by sebastia...@gmail.com on 21 Jun 2013 at 3:19

GoogleCodeExporter commented 9 years ago
I'm having the same problem. I used to be able to update the profile without 
error,  but started getting { 5015 ERROR_UNKNOWN } after submitting the update. 
 I've attempted to update both the mobile and ipPhone.  The update goes 
through, but the user is logged out of PWM.

I've created a new instance of PWM, but with the same result.  It worked 
initially, but I configured a couple more options and it stopped working.  I'm 
going to try to work backwards and see if I can unset some options to see what 
causes it to fail.

I'm using Active Directory and PWM 1.7.0.

Original comment by barne...@esdallas.org on 12 Sep 2013 at 10:45

GoogleCodeExporter commented 9 years ago
I found the issue. I had deleted the Update Profile Email.  Obvious in 
retrospect.

Is it possible to disable the sending of emails after certain functions?  Also, 
I'd like for the password change notifications to be sent using the address 
stored in the mail attribute, but the forgotten password emails sent to the 
attribute in ipPhone (I use it to store a secondary email address - if the user 
has forgotten their password, they won't be able to access their primary email).

I'm going to dig around in the code and see if I can do it manually, but it'd 
be awesome if those were exposed features.

Original comment by barne...@esdallas.org on 12 Sep 2013 at 10:59