Uploaded image for project: 'AdMaxLocal'
  1. AdMaxLocal
  2. AML-1181

create-user.groovy is not setting the user given password

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.2
    • Fix Version/s: 2.0.2
    • Component/s: None
    • Labels:
      None
    • Environment:

      UI - 2.0.2 Build 28
      SAPI Master Build 455
      Core Trunk Build 770
      BidMgr Trunk Build 793

    • Sprint:
      Sprint 3 - 2.0.2

      Description

      I created a user with the create-user script, giving it a password. The password seems to be ignored.

      Expected result: I would be able to login to the realm with the username and password I provided the script.

      Actual result: I could not log in with the username and password as expected, but I could use the email address to change my password and set it.

      Script and output:

      [jelliott@aq-qa-tomcat1 groovy]$ groovy create-user.groovy -ah http://aq-qa-tomcat1:8080/sapi/rest/ -u jelliott100@thesearchagency.co.uk -ra reseller3 -d "jen user3" -r sales -l en -c us -active true -p jenTest2
      INFO - API Host: http://aq-qa-tomcat1:8080/sapi/rest/
      INFO - Protocol: http
      INFO - API Host name: aq-qa-tomcat1
      INFO - Port Number: 8080
      Please enter the password for admin+tsa@thesearchagency.com:
      DEBUG - Logging in as TSA Admin
      DEBUG - username = admin+tsa@thesearchagency.com, password = admin, realm alias = thesearchagency

      DEBUG - response status: HTTP/1.1 200 OK
      DEBUG - Headers: -----------
      DEBUG - Server : Apache-Coyote/1.1
      DEBUG - Expires : -1
      DEBUG - Cache-Control : no-cache
      DEBUG - Pragma : no-cache
      DEBUG - X-AML-API-ID : 7ed13250-d895-47da-9744-707358b99f8c
      DEBUG - Date : Thu, 14 Feb 2013 18:53:52 GMT
      DEBUG - Content-Type : text/plain
      DEBUG - Transfer-Encoding : chunked
      DEBUG - Response data: -----
      DEBUG - X2CU34D5NWDJVF5XDLKFPPF62BSWAXBLZM4YO5SEVGFMW665DFQKIGDKC72KGG7HP63KKAIB2YTDPWLKOJFMSYBBHB2XF7C6QEBN4352JHPHSUAZZMLKIKRPVVC233URONSSQPTKHW4XFJRYL7K76BHFB2S4QTKKQN6Q2BOTCXUZDM6ZHRYUC2JRGQQGXJXSWMWB7JUXDGSGAQNMMCGZGIXZJPI4BHV4GNBJRTI=
      DEBUG - --------------------

      INFO - Creating the new user
      DEBUG -
      {
      'displayName' : 'jen user3',
      'countryCode' : 'us',
      'active' : true,
      'language' : 'en',
      'realm' : 'com.reseller3',
      'email' : 'jelliott100@thesearchagency.co.uk'
      }

      Feb 14, 2013 6:53:53 PM groovyx.net.http.ParserRegistry getAt
      WARNING: Cannot find parser for content-type: application/json, text/plain – using default parser.
      DEBUG - response status: HTTP/1.1 200 OK
      DEBUG - Headers: -----------
      DEBUG - Server : Apache-Coyote/1.1
      DEBUG - Expires : -1
      DEBUG - Cache-Control : no-cache
      DEBUG - Pragma : no-cache
      DEBUG - X-AML-API-ID : 68a15fcb-218c-42a2-95f8-4d49b0f9022f
      DEBUG - Date : Thu, 14 Feb 2013 18:53:52 GMT
      DEBUG - Content-Type : application/json
      DEBUG - Transfer-Encoding : chunked
      DEBUG - Response data: -----
      DEBUG - {lastName=, birthday=null, lastLoginDate=1970-01-01T00:00:00.000+0000, countryCode=us, workPhoneExtension=null, properties=

      {password=g8G5jhRV}

      , homePhone=, id=90128232-f613-4175-9a00-d60f0cdd4b55, timezone=EST, organization=, mobilePhone=, createdBy=c7542d20-f6ba-4784-842b-9202a92190e2, realm=com.reseller3, email=jelliott100@thesearchagency.co.uk, description=, lastModifiedBy=c7542d20-f6ba-4784-842b-9202a92190e2, gender=M, lastModifiedDate=2013-02-14T18:53:53.000+0000, active=true, language=en, firstName=, workPhone=, displayName=jen user3, createdDate=2013-02-14T18:53:53.000+0000}
      DEBUG - --------------------

      INFO - Adding jen user3 to reseller group
      DEBUG - Searching for reseller role

      DEBUG - response status: HTTP/1.1 200 OK
      DEBUG - Headers: -----------
      DEBUG - Server : Apache-Coyote/1.1
      DEBUG - Expires : -1
      DEBUG - Cache-Control : no-cache
      DEBUG - Pragma : no-cache
      DEBUG - X-AML-API-ID : d51c43f5-0415-476e-868b-6f231a2f1798
      DEBUG - Date : Thu, 14 Feb 2013 18:53:52 GMT
      DEBUG - Content-Type : application/json
      DEBUG - Transfer-Encoding : chunked
      DEBUG - Response data: -----
      DEBUG - {total=1, results=[

      {id=183219bc-0a71-4e4d-9232-dafc1fb09c1f, createdBy=admin, realm=com.thesearchagency, description=Role for resellers, name=reseller, lastModifiedBy=admin, active=true, lastModifiedDate=1970-01-01T01:01:01.000+0000, displayName=Reseller Role, createdDate=1970-01-01T01:01:01.000+0000}

      ]}
      DEBUG - --------------------

      DEBUG - Retrieving all groups with the reseller role

      DEBUG - response status: HTTP/1.1 200 OK
      DEBUG - Headers: -----------
      DEBUG - Server : Apache-Coyote/1.1
      DEBUG - Expires : -1
      DEBUG - Cache-Control : no-cache
      DEBUG - Pragma : no-cache
      DEBUG - X-AML-API-ID : c06ae15e-deae-458a-9a33-9f094a5064d5
      DEBUG - Date : Thu, 14 Feb 2013 18:53:52 GMT
      DEBUG - Content-Type : application/json
      DEBUG - Transfer-Encoding : chunked
      DEBUG - Response data: -----
      DEBUG - [[1111a81e-1197-4a79-9111-a81e11973a79, G], [4cdb43c1-bf60-4a59-8cdb-43c1bf60ea59, G], [d5bb5e72-82f9-4ba4-8d16-0ff49ed21bcc, G]]
      DEBUG - --------------------

      DEBUG - Searching for reseller group

      DEBUG - response status: HTTP/1.1 200 OK
      DEBUG - Headers: -----------
      DEBUG - Server : Apache-Coyote/1.1
      DEBUG - Expires : -1
      DEBUG - Cache-Control : no-cache
      DEBUG - Pragma : no-cache
      DEBUG - X-AML-API-ID : 6c91868a-67bd-44f2-80eb-a9513e928dee
      DEBUG - Date : Thu, 14 Feb 2013 18:53:53 GMT
      DEBUG - Content-Type : application/json
      DEBUG - Transfer-Encoding : chunked
      DEBUG - Response data: -----
      DEBUG -

      {id=1111a81e-1197-4a79-9111-a81e11973a79, createdBy=c7542d20-f6ba-4784-842b-9202a92190e2, realm=com.optus, description=Optus reseller group, name=optusGroup, lastModifiedBy=c7542d20-f6ba-4784-842b-9202a92190e2, active=true, lastModifiedDate=1970-01-01T01:01:01.000+0000, displayName=Optus, createdDate=1970-01-01T01:01:01.000+0000}

      DEBUG - --------------------

      DEBUG - response status: HTTP/1.1 200 OK
      DEBUG - Headers: -----------
      DEBUG - Server : Apache-Coyote/1.1
      DEBUG - Expires : -1
      DEBUG - Cache-Control : no-cache
      DEBUG - Pragma : no-cache
      DEBUG - X-AML-API-ID : 0f610719-874f-4593-a323-6ea038e17f43
      DEBUG - Date : Thu, 14 Feb 2013 18:53:53 GMT
      DEBUG - Content-Type : application/json
      DEBUG - Transfer-Encoding : chunked
      DEBUG - Response data: -----
      DEBUG -

      {id=4cdb43c1-bf60-4a59-8cdb-43c1bf60ea59, createdBy=c7542d20-f6ba-4784-842b-9202a92190e2, realm=com.reseller1, description=Reseller 1 group, name=reseller1Group, lastModifiedBy=c7542d20-f6ba-4784-842b-9202a92190e2, active=true, lastModifiedDate=1970-01-01T01:01:01.000+0000, displayName=Reseller 1, createdDate=1970-01-01T01:01:01.000+0000}

      DEBUG - --------------------

      DEBUG - response status: HTTP/1.1 200 OK
      DEBUG - Headers: -----------
      DEBUG - Server : Apache-Coyote/1.1
      DEBUG - Expires : -1
      DEBUG - Cache-Control : no-cache
      DEBUG - Pragma : no-cache
      DEBUG - X-AML-API-ID : f56cc286-8e62-4e5d-90bf-e56bcc9cbc0e
      DEBUG - Date : Thu, 14 Feb 2013 18:53:53 GMT
      DEBUG - Content-Type : application/json
      DEBUG - Transfer-Encoding : chunked
      DEBUG - Response data: -----
      DEBUG -

      {id=d5bb5e72-82f9-4ba4-8d16-0ff49ed21bcc, createdBy=c7542d20-f6ba-4784-842b-9202a92190e2, realm=com.thesearchagency, description=Reseller Account, name=reseller, lastModifiedBy=c7542d20-f6ba-4784-842b-9202a92190e2, active=true, lastModifiedDate=1970-01-01T01:01:01.000+0000, displayName=Resellers, createdDate=1970-01-01T01:01:01.000+0000}

      DEBUG - --------------------

      Caught: java.lang.NullPointerException: Cannot invoke method getAt() on null object
      java.lang.NullPointerException: Cannot invoke method getAt() on null object
      at create-user.run(create-user.groovy:453)

        Attachments

          Activity

            People

            • Assignee:
              stacie.waleyko Stacie Waleyko (Inactive)
              Reporter:
              jelliott Jen Clarke (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: