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

Registered MDM hooks are not called #641

Open
Jake-Gillberg opened this issue Feb 8, 2024 · 2 comments
Open

Registered MDM hooks are not called #641

Jake-Gillberg opened this issue Feb 8, 2024 · 2 comments

Comments

@Jake-Gillberg
Copy link

MDM appears to call a separate instance of the InterceptorService to the one that is created and registered in StarterJpaConfig, resulting in MDM_* pointcut hooks registered not being called.

It looks like a similar issue was encountered with the subscription pointcuts - hapifhir/hapi-fhir#4940

version 6.10.1

@ttntrifork
Copy link

ttntrifork commented Feb 8, 2024

We ran into the same situation.
A work around is to register your MDM interceptors via the IInterceptorService.registerInterceptor bean defined in JpaConfig instead of the RestfulServer.registerInterceptor

@XcrigX
Copy link
Contributor

XcrigX commented Feb 15, 2024

I'm seeing similar issues with AuthorizationInterceptors and SearchNarrowingInterceptors. Registering with the IInterceptorService does not seem to fix the issue I'm seeing. Other interceptors do seem to fire, like the CustomInterceptorBean in the unit tests. It seems to have been introduced sometime after v6.4.0.

EDIT: After some further debugging, I think the problem I'm seeing is unrelated and not likely an issue in HAPI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants