Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-6370

REST-SMS: 500 Internal Server Error for Invalid Attribute Update

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 13.0.0
    • Fix Version/s: 6.0.0, 5.5.2
    • Component/s: authentication, rest, REST-SMS, sms
    • Labels:
    • Environment:
      OpenAM 13.0.0-SNAPSHOT Build 14578 (2015-July-13 02:45)
    • Needs QA verification:
      No
    • Functional tests:
      Yes

      Description

      REST-SMS: 500 Internal Server Error for Invalid Attribute Update
      e.g. -1 for Authentication Level

      RUN:

      curl -X PUT -H "iplanetDirectoryPro: AQIC5wMQ..*" -H "Content-Type: application/json" -d '{
        "authenticationLevel": -1,
        "defaults": {
          "authenticationLevel": 0,
          "defaultAnonymousUsername": "anonymous",
          "validAnonymousUsers": [],
          "caseSensitiveUsernameMatchingEnabled": false
        },
        "defaultAnonymousUsername": "anonymous",
        "validAnonymousUsers": [],
        "caseSensitiveUsernameMatchingEnabled": false
      }' 'http://aczv.204.example.com:8080/openam/json/global-config/authentication/modules/anonymous'
      

      PROBLEM:

        "code": 500,
        "reason": "Internal Server Error",
        "message": "Unable to validate attributes"
      

      EXPECTED:

        "code": 400,
        "reason": "Bad Request",
        "message": "Bad Request"
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                AndrewVinall Andrew Vinall
                QA Assignee:
                Andrew Vinall
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: