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

Getting-started sample CSV provisioner is missing username

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • OpenIDM 4.0.0
    • OpenIDM 4.0.0
    • _Samples
    • Java: 1.7.0_75 (OpenJDK), OpenIDM 4.0.0-SNAPSHOT (revision: 4d42299)
    • 0
    • OpenIDM Sprint 54

    Description

      Username is needed for user creation on csv system endpoint as it's defined as default as headerName

      Steps to reproduce

      1. Download/unzip OpenIDM
      2. Start IDM with getting-started sample
      3. create user on system endpoint
      • without username
        curl --header "Content-Type: application/json" --header "X-OpenIDM-Password: openidm-admin" --header "X-OpenIDM-Username: openidm-admin" --data '{"uid": "A_1449655319", "firstName": "A_1449655319", "lastName": "A_1449655319", "employeeNumber": "1", "email": "foo@bar.com"}' --request POST "http://localhost:8080/openidm/system/csv/account/?_action=create" 
        
        {"code":500,"reason":"Internal Server Error","message":"The Attribute set must contain a 'Name'."}
            
      • with username
        curl --header "Content-Type: application/json" --header "X-OpenIDM-Password: openidm-admin" --header "X-OpenIDM-Username: openidm-admin" --data '{"uid": "A_1449654903", "username": "A_1449654903", "firstName": "A_1449654903", "lastName": "A_1449654903", "employeeNumber": "1", "email": "foo@bar.com"}' --request POST "http://localhost:8080/openidm/system/csv/account/?_action=create" 
        
        {"code":400,"reason":"Bad Request","message":"Target does not support attribute username"}
            

      Workaround

      Add username ObjectType into csv provisioner

      "username" : {
          "type" : "string",
          "nativeName" : "username",
          "nativeType" : "string"
      }
      

      Attachments

        Activity

          People

            jbranch Jon Branch [X] (Inactive)
            michal.orlik@profiq.cz Michal Orlik
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: