Revision e8b747c4 gss/src/gr/ebs/gss/server/rest/FilesHandler.java

b/gss/src/gr/ebs/gss/server/rest/FilesHandler.java
576 576
    	}
577 577
        String path = getInnerPath(req, PATH_FILES);
578 578
    	path = path.endsWith("/")? path: path + '/';
579
    	path = URLDecoder.decode(path, "UTF-8");
579
		try {
580
	    	path = URLDecoder.decode(path, "UTF-8");
581
		} catch (IllegalArgumentException e) {
582
			resp.sendError(HttpServletResponse.SC_BAD_REQUEST, e.getMessage());
583
			return;
584
		}
580 585
    	// We only defer authenticating multipart POST requests.
581 586
    	if (authDeferred) {
582 587
			if (!ServletFileUpload.isMultipartContent(req)) {

Also available in: Unified diff