Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MODDATAIMP-1145 Import of MARC records fails with "Invalid token" error. #793

Merged
merged 18 commits into from
Dec 24, 2024
Merged
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
fc00b5e
MODINV-1001 The sorting for Items on Instance details page is not worked
JavokhirAbdullayev Apr 8, 2024
0e44d47
Merge branch 'master' of https://github.com/folio-org/mod-inventory
JavokhirAbdullayev Apr 9, 2024
4d8f8cd
Merge branch 'master' of https://github.com/folio-org/mod-inventory
JavokhirAbdullayev Apr 13, 2024
7afbf85
Merge remote-tracking branch 'origin/master'
JavokhirAbdullayev Apr 16, 2024
32cf5c3
Merge remote-tracking branch 'origin/master'
JavokhirAbdullayev May 6, 2024
457636a
Merge remote-tracking branch 'origin/master'
JavokhirAbdullayev Jul 5, 2024
57f5491
Merge remote-tracking branch 'origin/master'
JavokhirAbdullayev Jul 18, 2024
03b1148
Merge remote-tracking branch 'origin/master'
JavokhirAbdullayev Aug 20, 2024
d87a078
Merge remote-tracking branch 'origin/master'
JavokhirAbdullayev Aug 28, 2024
e02ede2
Merge remote-tracking branch 'origin/master'
JavokhirAbdullayev Sep 6, 2024
12462f5
Merge remote-tracking branch 'origin/master'
JavokhirAbdullayev Sep 13, 2024
b4f79a6
Merge remote-tracking branch 'origin/master'
JavokhirAbdullayev Oct 22, 2024
747460e
add userId during create instance event handler
JavokhirAbdullayev Dec 23, 2024
5f8f22d
Merge remote-tracking branch 'origin/master'
JavokhirAbdullayev Dec 23, 2024
e240c19
Merge branch 'refs/heads/master' into MODDATAIMP-1145
JavokhirAbdullayev Dec 24, 2024
6e89f86
add userId header in some handlers
JavokhirAbdullayev Dec 24, 2024
6186a46
fix headers
JavokhirAbdullayev Dec 24, 2024
d950ec3
remove wildcards
JavokhirAbdullayev Dec 24, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,9 @@ public CompletableFuture<DataImportEventPayload> handle(DataImportEventPayload d
LOGGER.error(ACTION_HAS_NO_MAPPING_MSG);
return CompletableFuture.failedFuture(new EventProcessingException(format(ACTION_HAS_NO_MAPPING_MSG, jobExecutionId, recordId)));
}
String userId = dataImportEventPayload.getContext().get("userId");

Context context = EventHandlingUtil.constructContext(dataImportEventPayload.getTenant(), dataImportEventPayload.getToken(), dataImportEventPayload.getOkapiUrl());
Context context = EventHandlingUtil.constructContext(dataImportEventPayload.getTenant(), dataImportEventPayload.getToken(), dataImportEventPayload.getOkapiUrl(), userId, null);
Record targetRecord = Json.decodeValue(payloadContext.get(EntityType.MARC_BIBLIOGRAPHIC.value()), Record.class);
var sourceContent = targetRecord.getParsedRecord().getContent().toString();

Expand Down