From 45c3904d109d90edb986c9a763928ba1c20d6165 Mon Sep 17 00:00:00 2001 From: Lee Surprenant Date: Tue, 1 Feb 2022 15:55:40 -0500 Subject: [PATCH] issue #3265 - checkType throws instead of logging for abstract types Signed-off-by: Lee Surprenant --- .../java/com/ibm/fhir/server/resources/FHIRResource.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/fhir-server/src/main/java/com/ibm/fhir/server/resources/FHIRResource.java b/fhir-server/src/main/java/com/ibm/fhir/server/resources/FHIRResource.java index 30c003055e0..4b5baf5864e 100644 --- a/fhir-server/src/main/java/com/ibm/fhir/server/resources/FHIRResource.java +++ b/fhir-server/src/main/java/com/ibm/fhir/server/resources/FHIRResource.java @@ -130,11 +130,8 @@ protected void checkInitComplete() throws FHIROperationException { * we'll throw an error to short-circuit the current in-progress REST API invocation. */ protected void checkType(String type) throws FHIROperationException { - if (!ModelSupport.isResourceType(type)) { - throw buildUnsupportedResourceTypeException(type); - } if (!ModelSupport.isConcreteResourceType(type)) { - log.warning("Use of abstract resource types like '" + type + "' in FHIR URLs is deprecated and will be removed in a future release"); + throw buildUnsupportedResourceTypeException(type); } }