Uploaded image for project: 'OpenDJ'
  1. OpenDJ
  2. OPENDJ-7665

Password quality advice Exception detail contains opendj class objects instead of JsonValue

    XMLWordPrintable

    Details

      Description

      When consuming "passwordQualityAdvice" from the detail of the Exception, the "failingCriteria" is a list of PasswordQualityAdviceResponseControl.Criteria rather than a JsonValue map.

      Although the below Exception detail has accurate looking data theĀ "failingCriteria" Object(s) must be retrieved asĀ PasswordQualityAdviceResponseControl.Criteria to be utilized, but we expect to retrieve JsonValue.

      Ā 

      {
          "code": 400,
          "reason": "Bad Request",
          "message": "Constraint Violation: The password value for attribute userPassword was found to be unacceptable: The provided password is shorter than the minimum required length of 12 characters",
          "detail": {
              "passwordQualityAdvice": {
                  "passingCriteria": [],
                  "failingCriteria": [
                      {
                          "type": "length-based",
                          "parameters": {
                              "min-password-length": 12,
                              "max-password-length": 64
                          }
                      }
                  ]
              }
          }
      }
      

      Ā 

        Attachments

          Issue Links

            Activity

              People

              cforel carole forel
              katie.gonzalez Katie Gonzalez
              Jean-Noƫl Rouvignac Jean-Noƫl Rouvignac
              carole forel carole forel
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: