throws IOException, ServletException {
boolean authDeferred = getAuthDeferred(req);
String path = getInnerPath(req, PATH_FILES);
+// if (!isValidResourceName(name)) {
+// resp.sendError(HttpServletResponse.SC_BAD_REQUEST);
+// return;
+// }
if (path.equals(""))
path = "/";
try {
String name = null;
if (json.opt("name") != null)
name = json.optString("name");
+ if (!isValidResourceName(name)) {
+ resp.sendError(HttpServletResponse.SC_BAD_REQUEST);
+ return;
+ }
Long modificationDate = null;
if (json.optLong("modificationDate") != 0)
modificationDate = json.optLong("modificationDate");