[FOLIO-1037] User Import fails on repeat import of the same file Created: 23/Jan/18  Updated: 12/Nov/18  Resolved: 31/Jan/18

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

Type: Bug Priority: P3
Reporter: Kurt Nordstrom Assignee: Katalin Lovagné Szűcs
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified

Attachments: File user_import_test_data_with_1_users.json    
Issue links:
Relates
relates to FOLIO-1034 Vagrant box becomes irresponsive whil... Closed
Sprint:

 Description   

To reproduce against testing backend (http://folio-testig-backend01.aws.indexdata.com:9130)

  • Download the attached file of one user. Save somewhere (e.g. /tmp)
  • Get a token:
    curl -i -X POST -H "Content-type:application/json" -H "X-Okapi-Tenant:diku" -d '{"username":"diku_admin", "password":"admin"}' http://folio-testing-backend01.aws.indexdata.com:9130/authn/login
    
  • Save the token to a variable
    export TOKEN='<long_hash_here>'
    
  • Send the file to the user-import endpoint
    curl -i -X POST -H "Content-type:application/json" -H "X-Okapi-Tenant:diku" -H "X-Okapi-Token:$TOKEN" -d @/tmp/user_import_test_data_with_1_users.json http://folio-testing-backend01.aws.indexdata.com:9130/user-import
    
  • After successful return, repeat the file import
    curl -i -X POST -H "Content-type:application/json" -H "X-Okapi-Tenant:diku" -H "X-Okapi-Token:$TOKEN" -d @/tmp/user_import_test_data_with_1_users.json http://folio-testing-backend01.aws.indexdata.com:9130/user-import
    

Request will hang indefinitely.



 Comments   
Comment by Katalin Lovagné Szűcs [ 31/Jan/18 ]

The reason was user schema mismatch. The fix was pushed on the FOLIO-1024 Closed branch.

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