From 261ed51c7f8a32429d24eaf8ffe7e22e986c2c92 Mon Sep 17 00:00:00 2001 From: Alexander Henket Date: Wed, 7 Jan 2015 13:24:28 +0100 Subject: [PATCH] Update RestfulServer.java I believe that in line 538 you are falsely assuming that multiple _* parts in the path could not happen. As of DSTU2 there's _meta/_delete. Unfortunately the DSTU for Comment erroneously lists _meta-delete. --- .../src/main/java/ca/uhn/fhir/rest/server/RestfulServer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/server/RestfulServer.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/server/RestfulServer.java index 67126542d2a..94f82ed243e 100644 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/server/RestfulServer.java +++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/server/RestfulServer.java @@ -535,6 +535,7 @@ public class RestfulServer extends HttpServlet { operation = Constants.PARAM_HISTORY; } } else if (nextString.startsWith("_")) { + //FIXME: this would be untrue for _meta/_delete if (operation != null) { throw new InvalidRequestException("URL Path contains two operations (part beginning with _): " + requestPath); }