Skip to content

forgottenpassword API throws a NullPointerException after the second request  #704

Open
@tothf

Description

@tothf

Describe the bug
The forgottenpassword API is crashing after second request when the user search and verification detection is complete.

To Reproduce
Steps to reproduce the behavior:

  1. Install PWM 2.0.3 war on tomcat or run PWM 2.0.6 docker image
  2. Configure MSAD or FreeIPA with OpenLDAP
  3. Configure Postgres as an External database and store all information there, including TOKENs
  4. Configure the Forgotten password module with only SMS/Email TOKEN required
  5. Enable REST service and /forgottenpassword for public use
  6. Send the first request to the forgotten password API
  7. Send a second request with the required form data and state in the request body
  8. Response will be a 5015 Internal error

Expected behavior
The third response should be METHOD_CHOICE or TOKEN_CHOICE

Screenshots
first_req
second_req

Desktop (please complete the following information):
It is in the trace log

Smartphone (please complete the following information):
N/A

Additional context
trace.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions