Skip to content

Commit 1766c60

Browse files
STORAGE_TRANSACTION_PROCESSING-doesn't-pass-ServletRequestDetails (#7340)
* STORAGE_TRANSACTION_PROCESSING-doesn't-pass-ServletRequestDetails * Add changelog --------- Co-authored-by: James Agnew <[email protected]>
1 parent c42f84e commit 1766c60

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
type: fix
3+
issue: 7340
4+
title: "The JPA FHIR transaction processor had a bug when processing the
5+
`STORAGE_TRANSACTION_PROCESSING` interceptor pointcut, preventing
6+
hook methods from supplying parameter values of type ServletRequestDetails.
7+
Thanks to Elliott Lavy for the contribution!"

hapi-fhir-storage/src/main/java/ca/uhn/fhir/jpa/dao/BaseTransactionProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ public <BUNDLE extends IBaseBundle> BUNDLE transaction(
247247
if (compositeBroadcaster.hasHooks(Pointcut.STORAGE_TRANSACTION_PROCESSING)) {
248248
HookParams params = new HookParams()
249249
.add(RequestDetails.class, theRequestDetails)
250-
.addIfMatchesType(ServletRequestDetails.class, theRequest)
250+
.addIfMatchesType(ServletRequestDetails.class, theRequestDetails)
251251
.add(IBaseBundle.class, theRequest);
252252
compositeBroadcaster.callHooks(Pointcut.STORAGE_TRANSACTION_PROCESSING, params);
253253
}

0 commit comments

Comments
 (0)