[FOLIO-626] Curriculum Users App - first name last name fields errors Created: 24/May/17  Updated: 12/Nov/18  Resolved: 05/Jun/17

Status: Closed
Project: FOLIO
Components: None
Affects versions: None
Fix versions: None

Type: Umbrella Priority: P3
Reporter: RonB Assignee: Peter Murray
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: 45 minutes
Original estimate: Not Specified

Sprint:

 Description   

In following http://dev.folio.org/curriculum/05_set_up_the_folio_users_app....

Sample JSON data load throws error:

Json content error Unrecognized field "first_name" (class org.folio.rest.jaxrs.model.Personal), not marked as ignorable (8 known properties: , "middleName", "lastName", "dateOfBirth", "firstName", "email", "mobilePhone", "phone", "preferredContact"])
at [Source: java.io.StringReader@15abfb3b; line: 1, column: 134] (through reference chain: org.folio.rest.jaxrs.model.User["personal"]->org.folio.rest.jaxrs.model.Personal["first_name"])

But also when using the UI and creating/editing users:

ERROR: in module @folio/users, operation CREATE on resource 'users' failed with HTTP status 400, saying: Json content error Unrecognized field "first_name" (class org.folio.rest.jaxrs.model.Personal), not marked as ignorable (8 known properties: , "middleName", "lastName", "dateOfBirth", "firstName", "email", "mobilePhone", "phone", "preferredContact"])
at [Source: java.io.StringReader@576f88e1; line: 1, column: 66] (through reference chain: org.folio.rest.jaxrs.model.User["personal"]->org.folio.rest.jaxrs.model.Personal["first_name"])



 Comments   
Comment by David Crossley [ 25/May/17 ]

The Curriculum is being updated at the moment. Among other things, the sample data files still need to be updated to adhere to the new format.

Comment by Peter Murray [ 05/Jun/17 ]

Yes, it looks like the patron schema changed. Here is a sample patron in the new schema:

{{
{
"username" : "elyssa",
"id" : "90f2c933-ea1e-4b17-a719-b2af6bacc735",
"active" : true,
"type" : "patron",
"personal" : {
"email" : "cordie@carroll-corwin.hi.us",
"phone" : "791-043-4090 x776",
"lastName" : "Ferry",
"firstName" : "Liliane",
"mobilePhone" : "394.050.1417 x06534",
"dateOfBirth" : "2005-03-15T00:00:00.000+0000",
"preferredContact" :

{ "desc" : "Email", "value" : "EMAIL" }

},
"lastUpdateDate" : "1995-04-01T00:00:00.000+0000",
"enrollmentDate" : "1981-07-06T00:00:00.000+0000",
"openDate" : "2012-10-10T00:00:00.000+0000",
"barcode" : "451770690377323",
"expirationDate" : "1981-12-12T00:00:00.000+0000"
}
}}

With FOLIO-585 Closed it also looks like the patrons are no longer stored in the `folio-ansible` git repo. (Instead, they are generated from a Perl script.) I'll add a few sample patrons to the curriculum rather than pulling them from that GitHub repo.

Generated at Thu Feb 08 23:07:10 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.