Details
-
Bug
-
Status: Closed (View Workflow)
-
P2
-
Resolution: Done
-
None
-
Goldenrod mod-source-record-storage-4.0.4
duke-okapi.folio-dev.indexdata.com
-
-
Folijet Sprint 100, Folijet Sprint 101, Folijet Sprint 102
-
2
-
Folijet
-
Q3 2020 Bug Fix
-
Duke
-
High
Description
Overview:
Posting records to /source-storage/batch/records results in {"status":"500","message":"Internal Server Error","body":{"records":[],"errorMessages":["null value in column \"description\" violates not-null constraint"],"totalRecords":0}}
Steps to Reproduce:
- Log into some FOLIO environment as duke_admin
- Send HTTP POST
https://issues.folio.org/secure/attachment/31632/records.json
Expected Results:
Status 201 with records added to SRS
Actual Results:
{"status":"500","message":"Internal Server Error","body":{"records":[],"errorMessages":["null value in column \"description\" violates not-null constraint"],"totalRecords":0}}
Additional Information:
From logs:
18:40:44.740 [vert.x-eventloop-thread-0] ERROR urceStorageBatchImpl [598554013eqId] Batch of records was processed, but records were not saved, error messages: [null value in column "description" violates not-null constraint]
URL: /source-storage/batch/records
Other info:
It looks like it is trying to add an empty errorRecord to the record, but there is not an errorRecord in the posted record.
rest.SourceStorageBatchImpl postSourceStorageBatchRecords
services.RecordServiceImpl saveRecords getErrorMessages
recordDao.executeInTransaction
postgresClientFactory.getQueryExecutor
recordDao.saveRecord
insertOrUpdateRecord
if (Objects.nonNull(record.getErrorRecord()))
TestRail: Results
Attachments
Issue Links
- blocks
-
MODSOURCE-206 Release v4.1.2
-
- Closed
-
- defines
-
UXPROD-2551 NFR: Data Import (Batch Importer for Bib Acq) & PubSub Q3 2020 Technical, NFR, & Misc bug work
-
- Closed
-