Fix class cast exception during fields mapping

Description

Purpose:

For holdings and items, during the mapping process, the class cast exception occurs during creating RecordInfo, for simple fields when their jsonPath contains array (for example "$.holdings[*].hrid")
The error log:

Acceptance criteria:

  • ClassCastException fixed, and recordInfo is always present.

  • Unit tests are updated

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Attachments

2

Checklist

hide

TestRail: Results

Activity

Show:

Andrii Novytskyi December 18, 2020 at 9:37 AM

verified on local with the latest changes from gmu. Exported with default MFH rules, as a result, no exceptions, and fields are present in marc file:

Andrii Novytskyi December 18, 2020 at 8:39 AM

create a mapping profile with holdings or items, with selected hrId field, and start export, and check that hrId is present is the marc file

Magda Zacharska December 17, 2020 at 11:20 PM

and - is there a way to validate the fix?

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Concorde

Fix versions

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created December 16, 2020 at 9:37 AM
Updated March 10, 2021 at 12:46 PM
Resolved December 18, 2020 at 10:38 AM
TestRail: Cases
TestRail: Runs