Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-13776

Selfservice passowrd reset fails to send email

    XMLWordPrintable

    Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 7.0.0
    • None
    • Module - SelfService
    • 2
    • 2019.13 - IDM

      Description

      When attempting password reset it currently never sends the reset email. In the UI everything looks fine, but if you look in the Java Console the following error displays

       
      AM org.forgerock.openidm.external.email.impl.EmailClient lambda$sendAsync$0
      SEVERE: Unable to send message, for unexpected reasons
      java.lang.ClassCastException: com.sun.mail.handlers.text_html cannot be cast to javax.activation.DataContentHandler
          at javax.activation.MailcapCommandMap.getDataContentHandler(MailcapCommandMap.java:588)
          at javax.activation.MailcapCommandMap.createDataContentHandler(MailcapCommandMap.java:542)
          at javax.activation.DataHandler.getDataContentHandler(DataHandler.java:618)
          at javax.activation.DataHandler.writeTo(DataHandler.java:316)
          at javax.mail.internet.MimeUtility.getEncoding(MimeUtility.java:340)
          at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1575)
          at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2271)
          at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:2231)
          at org.forgerock.openidm.external.email.impl.EmailClient.sendMessage(EmailClient.java:355)
          at org.forgerock.openidm.external.email.impl.EmailClient.send(EmailClient.java:334)
          at org.forgerock.openidm.external.email.impl.EmailClient.lambda$sendAsync$0(EmailClient.java:211)
          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
          at java.lang.Thread.run(Thread.java:748)
       

      Steps: 

      1) Set up email

      2) Turn on password reset 

      3) Turn off KBA 

      4) Create a user with a valid email

      5) Attempt to password reset the user 

       

      Expected:

      Receive a password reset email 

       

      Actual:

      No email sent

       

        Attachments

          Issue Links

            Activity

              People

              krismy.alfaro Krismy Alfaro
              jason.browne Jason Browne [X] (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: