Commit 34ebc059 authored by Michael Ritter's avatar Michael Ritter
Browse files

Ensure collection uses the correct getParameter; avoid setting attributes to the session

parent 1099ba74
......@@ -91,7 +91,7 @@ public class LogServlet extends EntityManagerServlet {
int count = getParameter(request, PARAM_COUNT, DEFAULT_COUNT);
long session = getParameter(request, PARAM_SESSION, DEFAULT_SESSION);
long top = getParameter(request, PARAM_TOP, DEFAULT_TOP);
long collection = getParameter(request, PARAM_COLLECTION, 0);
long collection = getParameter(request, PARAM_COLLECTION, 0L);
String path = getParameter(request, PARAM_PATH, null);
boolean reverseResults = false;
......@@ -235,7 +235,7 @@ public class LogServlet extends EntityManagerServlet {
} else if ( s.getAttribute(paramName) != null ) {
return (Integer) s.getAttribute(paramName);
} else {
s.setAttribute(paramName, defaultValue);
// s.setAttribute(paramName, defaultValue);
return defaultValue;
}
}
......@@ -251,7 +251,7 @@ public class LogServlet extends EntityManagerServlet {
} else if ( s.getAttribute(paramName) != null ) {
return (Long) s.getAttribute(paramName);
} else {
s.setAttribute(paramName, defaultValue);
// s.setAttribute(paramName, defaultValue);
return defaultValue;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment