Closed LJNIC closed 1 month ago
Found this was just because the interceptor service used in the JPA Starter isn't the main interceptor service.
@LJNIC Did you find a way to register interceptors with the main interceptor service? I just ran into this with the MDM hooks being set up in JPA starter not being called
@LJNIC Did you find a way to register interceptors with the main interceptor service? I just ran into this with the MDM hooks being set up in JPA starter not being called
You can grab the service from Spring.
Describe the bug Most Subscription POINTCUTs don't seem to function.
To Reproduce Steps to reproduce the behavior:
SubscriptionDebugLogInterceptor
enabled)SubscriptionDebugLogInterceptor
(that it was submitted to the pipeline) and that none ofSUBSCRIPTION_AFTER_DELIVERY
,SUBSCRIPTION_BEFORE_DELIVERY
, etc. are triggeredExpected behavior For all
SUBSCRIPTION*
Pointcuts to be triggered.Logs
The first trigger, shown in the first line, is hit, but there should be another one before the message is sent: https://github.com/hapifhir/hapi-fhir/blob/e3a7390d6a88d09a1793f8ff937b8d596178cc71/hapi-fhir-jpaserver-subscription/src/main/java/ca/uhn/fhir/jpa/subscription/util/SubscriptionDebugLogInterceptor.java#LL121C2-L121C2 https://github.com/hapifhir/hapi-fhir/blob/e3a7390d6a88d09a1793f8ff937b8d596178cc71/hapi-fhir-jpaserver-subscription/src/main/java/ca/uhn/fhir/jpa/subscription/match/deliver/BaseSubscriptionDeliverySubscriber.java#L94
Environment (please complete the following information):