diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/ParserState.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/ParserState.java index dfaf5ee2fb3..2f83a218d09 100644 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/ParserState.java +++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/ParserState.java @@ -1056,7 +1056,7 @@ class ParserState { } else if ("fhir_comments".equals(theLocalPart) && myJsonMode) { push(new SwallowChildrenWholeState(getPreResourceState())); } else { - throw new DataFormatException("Unexpected element in entry: " + theLocalPart); + this.logAndSwallowUnexpectedElement(theLocalPart); } } diff --git a/src/changes/changes.xml b/src/changes/changes.xml index f10f9bc3395..16ac5de552d 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -22,6 +22,10 @@ actually a resource in FHIR DSTU2 and its inclusion causes errors on clients that don't understand what it is. Thanks to Travis Cummings and Michele Mottini for pointing this out. + + Web testing UI displayed an error when a transaction was pasted into the UI + for a DSTU2 server. Thanks to Suresh Kumar for reporting! +