changed log level
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-transfer/uri-resolver@112322 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
c755ecde63
commit
03150f9983
|
@ -58,7 +58,7 @@ public class HttpResolver extends HttpServlet {
|
||||||
uri = request.getParameter(SMP_URI);
|
uri = request.getParameter(SMP_URI);
|
||||||
|
|
||||||
if (uri == null || uri.equals("")) {
|
if (uri == null || uri.equals("")) {
|
||||||
logger.debug("URI not found");
|
logger.warn("URI not found");
|
||||||
response.sendError(404);
|
response.sendError(404);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -67,20 +67,20 @@ public class HttpResolver extends HttpServlet {
|
||||||
|
|
||||||
|
|
||||||
if (fileName == null || fileName.equals("")) {
|
if (fileName == null || fileName.equals("")) {
|
||||||
logger.debug("fileName not found");
|
logger.warn("fileName not found");
|
||||||
fileName = null;
|
fileName = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
contentType = request.getParameter(CONTENT_TYPE);
|
contentType = request.getParameter(CONTENT_TYPE);
|
||||||
|
|
||||||
if (contentType == null || contentType.equals("")) {
|
if (contentType == null || contentType.equals("")) {
|
||||||
logger.debug("contentType not found");
|
logger.warn("contentType not found");
|
||||||
contentType = null;
|
contentType = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
String validation = request.getParameter(VALIDATION);
|
String validation = request.getParameter(VALIDATION);
|
||||||
validatingURI = Boolean.parseBoolean(validation);
|
validatingURI = Boolean.parseBoolean(validation);
|
||||||
logger.debug("validation? "+validatingURI);
|
logger.info("validation? "+validatingURI);
|
||||||
|
|
||||||
//we should not unescape the filename with spaces
|
//we should not unescape the filename with spaces
|
||||||
|
|
||||||
|
@ -103,7 +103,7 @@ public class HttpResolver extends HttpServlet {
|
||||||
uri = uri.replace(" ","+");//the char + is removed when the servlet is doing unescaping of the query paramenters, we just put it back
|
uri = uri.replace(" ","+");//the char + is removed when the servlet is doing unescaping of the query paramenters, we just put it back
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.debug("URI = "+ uri);
|
logger.info("URI = "+ uri);
|
||||||
InputStream in = null;
|
InputStream in = null;
|
||||||
try {
|
try {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue