Details
-
Bug
-
Status: Closed (View Workflow)
-
P3
-
Resolution: Done
-
3.2.7, 3.2.9, 3.3.2
-
None
-
-
2
-
Folijet Support
-
Lotus R1 2022
-
GBV
-
Not a bug
Description
Migrating to Kiwi or Lotus fails with NullPointerException if an existing mapping_rules entry has no "mappingRules" property.
Error message:
28.3.2022 18:25:22 16:25:22.357 [vert.x-eventloop-thread-1] ERROR ppingRuleServiceImpl [963798855eqId] Can not save rules for tenant diku 28.3.2022 18:25:22 java.lang.NullPointerException: null 28.3.2022 18:25:22 at java.util.Objects.requireNonNull(Objects.java:221) ~[?:?] 28.3.2022 18:25:22 at java.util.Optional.<init>(Optional.java:107) ~[?:?] 28.3.2022 18:25:22 at java.util.Optional.of(Optional.java:120) ~[?:?] 28.3.2022 18:25:22 at org.folio.dao.MappingRuleDaoImpl.lambda$get$0(MappingRuleDaoImpl.java:54) ~[mod-source-record-manager-server-fat.jar:?]
Table contents:
# select record_type, left(jsonb::text, 100) from mapping_rules; record_type | left -------------+------------------------------------------------------------------------------------------------------ MARC_BIB | {"001": [{"rules": [], "target": "hrid", "subfield": [], "description": "The human readable ID"}], " MARC_BIB | {"id": "9b3478b2-ae38-4d60-a80b-bfddc95005d5", "mappingRules": {"001": [{"rules": [], "target": "hri MARC_BIB | {"id": "1877b2a1-c0de-496a-9a01-e81570b3f09e", "mappingRules": {"001": [{"rules": [], "target": "hri MARC_BIB | {"id": "195586f8-da08-47df-98a8-3df9b047573f", "mappingRules": {"001": [{"rules": [], "target": "hri MARC_BIB | {"id": "a9dc847c-ca25-42fb-a3d2-530a81c72c8d", "mappingRules": {"001": [{"rules": [], "target": "hri MARC_BIB | {"id": "d3287298-dc11-49aa-a122-bdd2b389bedc", "mappingRules": {"001": [{"rules": [], "target": "hri MARC_BIB | {"id": "3b7a0428-4faa-42a4-9f80-851c4eeb2fa4", "mappingRules": {"001": [{"rules": [], "target": "hri MARC_BIB | {"id": "748c6548-55f6-4016-ace3-6026daf3c5bc", "mappingRules": {"001": [{"rules": [], "target": "hri (8 rows)
mod-source-record-manager versions we've noticed this migration bug: 3.2.7, 3.2.9, 3.3.2.
TestRail: Results
Attachments
Issue Links
- defines
-
UXPROD-3463 NFR: Data Import R1 2022 Lotus Support Bug Work
-
- Closed
-
- relates to
-
MODSOURMAN-632 Create a script to delete duplicate mapping rules for each record type
-
- Closed
-
-
MODSOURMAN-621 Inconsistency of mapping rules in database
-
- Closed
-
- mentioned in
-
Page Loading...