Uploaded image for project: 'mod-users'
  1. mod-users
  2. MODUSERS-232

POST or PUT user without addressTypeId throws silent HTTP 500

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: TBD
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Template:
      Standard Bug Write-Up Format
    • Development Team:
      None

      Description

      Overview:
      Steps to Reproduce:

      1. fetch a user from the /users module through the API
      2. Make sure this user has an address
      3. Remove the address type Id property from this user
      4. PUT the user back to FOLIO trying to update it

      Expected Results:
      A clear, HTTP 4XX error stating that the addressTypeId property is missing from the address
      Actual Results:
      A silent HTTP 500 is thrown

      The following user could be used to validate for bugfest:

      {
          "username": "ejk266626",
          "barcode": "1111wwww145",
          "active": true,
          "patronGroup": "0fa228a0-b4f3-4a58-b767-04bbf630c2c5",
          "proxyFor": [],
          "personal": {
              "lastName": "Nomen",
              "firstName": "Nescio",
              "middleName": "J",
              "email": "nn@cornell.edu",
              "addresses": [
                  {
                      "countryId": "USA",
                      "addressLine1": "15 Brimfield Drive",
                      "city": "Elmira",
                      "region": "NY",
                      "postalCode": "14904",
                      "primaryAddress": true,
                     
                  }
              ],
              "preferredContactTypeId": "002"
          },
          "createdDate": "2020-09-16T13:07:09.963+0000",
          "updatedDate": "2020-09-16T13:07:09.963+0000"
      }
      

        TestRail: Results

          Attachments

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              ttolstoy Theodor Tolstoy
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:

                  TestRail: Runs

                    TestRail: Cases