Uploaded image for project: 'mod-users-bl'
  1. mod-users-bl
  2. MODUSERBL-103

One bad records blocks API from returning entire result set

    XMLWordPrintable

Details

    • Tech Debt
    • Status: Draft (View Workflow)
    • P3
    • Resolution: Unresolved
    • None
    • None
    • Core: Platform
    • Not Scheduled

    Description

      Overview: One user record (with probably bad data) blocks the API from returning the entire record set.
      Steps to Reproduce: Call the endpoint:

      1. https://okapi-bugfest-goldenrod.folio.ebsco.com/users?limit=500

      Expected Results: 500 user records in response
      Actual Results: 180ish user records in response with this diagnostic message:
      {{Cannot deserialize value of type `java.util.Date` from String \"+0000-05-12T00:00:00.000+0000\": not a valid representation (error: Failed to parse Date value '+0000-05-12T00:00:00.000+0000': Cannot parse date \"+0000-05-12T00:00:00.000+0000\": not compatible with any of standard forms (\"yyyy-MM-dd'T'HH:mm:ss.SSSZ\", \"yyyy-MM-dd'T'HH:mm:ss.SSS\", \"EEE, dd MMM yyyy HH:mm:ss zzz\", \"yyyy-MM-dd\"))\n at [Source: (String)\"{\"id\":\"0af250eb-f171-4ed7-bd66-111a364d6bdf\",\"active\":true,\"metadata\":

      {\"createdDate\":\"2020-03-27T07:30:48.53\",\"updatedDate\":\"2020-03-27T07:30:48.530+0000\",\"createdByUserId\":\"9eb67301-6f6e-468f-9b1a-6134dc39a684\",\"updatedByUserId\":\"9eb67301-6f6e-468f-9b1a-6134dc39a684\"}

      ,\"personal\":

      {\"email\":\"Jessica.storch@lmu.de\",\"lastName\":\"Lothbrock\",\"addresses\":[],\"firstName\":\"Lagertha\",\"dateOfBirth\":\"+0000-05-12T00:00:00.000+0000\",\"preferredContactTypeId\":\"002\"}

      ,\"proxyFor\":[],\"username\":\"Loth\",\"createdDate\":\"\"[truncated 176 chars]; line: 1, column: 390] (through reference chain: org.folio.rest.jaxrs.model.User[\"personal\"]->org.folio.rest.jaxrs.model.Personal[\"dateOfBirth\"])}}"
      Additional Information: Something else strange that might be impacted by this record. If you search for the name jessica in the user interface...the interface indicates no results found...but the api returns 300 records...
      URL:
      Interested parties:

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                msuranofsky Michelle Suranofsky
                Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                  Created:
                  Updated:

                  TestRail: Runs

                    TestRail: Cases