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.
This commit is contained in:
Alexander Henket 2015-01-07 13:24:28 +01:00
parent c786b00950
commit 261ed51c7f
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}