Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-10802

Changing user profile via webapp fails when enablePasswordPolicy set to true

XMLWordPrintable

    • Icon: Bug Report Bug Report
    • Resolution: Fixed
    • Icon: L3 - Default L3 - Default
    • 7.12.0, 7.11.5, 7.12.0-alpha5
    • 7.12.0-alpha4
    • None
    • - Spring Boot Version: 2.1.5
      - Camunda Version: 7.11.3-ee and 7.11.0
      - Camunda Spring Boot: 3.3.1 and 3.3.4

      What are the steps to reproduce your problem?

      1. Checkout new project from spring boot archetype: camunda-archetype-spring-boot-7.11.1
      2. enable password-policy in application.yaml or by code
        • Add to application.yaml:
          camunda:
            bpm:
              generic-properties:
                properties:
                  enable-password-policy: true
          
        • Or add code:
          engine.getProcessEngineConfiguration().setEnablePasswordPolicy(true);
          
      3. change password in application.yaml to a valid password e.g. Passw0rds!
      4. go to the admin in webapp and open the profile of the demo user
      5. change the first name
      6. click update profile

      What is the problem?
      This process fails with message "Failed to update user profile". The error message in the stack trace and the chrome network console says: NullValueException - password is null (stack trace attached).

      What would be the expected behavior:

      • The update of user profile succeeds.
      • Only the affected fields be updated (not the password).

      Hints (optional):
      The update causes a verification of the field newPassword in UserEntity against the password policy.

        This is the controller panel for Smart Panels app

              Unassigned Unassigned
              shahab.razavi Shahab
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: