fixed a bug matching long ids in searchparams (#1203)

* fixed a bug matching long ids in searchparams
This commit is contained in:
Ken Stevens 2019-02-09 13:45:51 -05:00 committed by GitHub
parent a5e10740c0
commit f34926bb18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -57,6 +57,7 @@ public class RestHookTestDstu3Test extends BaseResourceProviderDstu3Test {
private static NotificationServlet ourNotificationServlet;
private static String ourNotificationListenerServer;
private static CountDownLatch communicationRequestListenerLatch;
private static SubscriptionDebugLogInterceptor ourSubscriptionDebugLogInterceptor = new SubscriptionDebugLogInterceptor();
@After
public void afterUnregisterRestHookListener() {
@ -75,14 +76,13 @@ public class RestHookTestDstu3Test extends BaseResourceProviderDstu3Test {
myDaoConfig.setAllowMultipleDelete(new DaoConfig().isAllowMultipleDelete());
mySubscriptionTestUtil.unregisterSubscriptionInterceptor();
myInterceptorRegistry.clearAnonymousHookForUnitTest();
myInterceptorRegistry.unregisterInterceptor(ourSubscriptionDebugLogInterceptor);
}
@Before
public void beforeRegisterRestHookListener() {
mySubscriptionTestUtil.registerRestHookInterceptor();
SubscriptionDebugLogInterceptor interceptor = new SubscriptionDebugLogInterceptor();
myInterceptorRegistry.registerInterceptor(interceptor);
myInterceptorRegistry.registerInterceptor(ourSubscriptionDebugLogInterceptor);
}
@Before

View File

@ -274,7 +274,7 @@ public final class ResourceIndexedSearchParams {
ResourceTable target = theResourceLink.getTargetResource();
IdDt idDt = target.getIdDt();
if (idDt.isIdPartValidLong()) {
return theReference.getIdPartAsLong() == idDt.getIdPartAsLong();
return theReference.getIdPartAsLong().equals(idDt.getIdPartAsLong());
} else {
ForcedId forcedId = target.getForcedId();
if (forcedId != null) {