Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
remove obsolete put of HttpServletRequest attributes to YaCy servlet parameters on SSI (server side includes). Query parameters are already merged by dispatcher.include, making copy of parameter (RequestDispatcher.INCLUDE_QUERY_STRING) obsolete. All other parameter are not used as YaCy servlet arguments.
regerd35c47090cff
diff --git a/source/net/yacy/http/servlets/YaCyDefaultServlet.java b/source/net/yacy/http/servlets/YaCyDefaultServlet.javaindex b06b05db2..b0632d6e8 100644--- a/source/net/yacy/http/servlets/YaCyDefaultServlet.java+++ b/source/net/yacy/http/servlets/YaCyDefaultServlet.java@@ -243,7 +243,7 @@ public class YaCyDefaultServlet extends HttpServlet {throws ServletException, IOException {String pathInfo;Enumeration<String> reqRanges = null;- boolean included = request.getAttribute(RequestDispatcher.INCLUDE_REQUEST_URI) != null;+ boolean included = request.getAttribute(RequestDispatcher.INCLUDE_REQUEST_URI) != null;if (included) {pathInfo = (String) request.getAttribute(RequestDispatcher.INCLUDE_PATH_INFO);if (pathInfo == null) {@@ -855,19 +855,12 @@ public class YaCyDefaultServlet extends HttpServlet {if ((targetClass != null)) {serverObjects args = new serverObjects();- Enumeration<String> argNames = request.getParameterNames();+ Enumeration<String> argNames = request.getParameterNames(); // on ssi jetty dispatcher merged local ssi query parameterswhile (argNames.hasMoreElements()) {String argName = argNames.nextElement();// standard attributes are just pushed as stringargs.put(argName, request.getParameter(argName));}- //TODO: for SSI request, local parameters are added as attributes, put them back as parameter for the legacy request- // likely this should be implemented via httpservletrequestwrapper to supply complete parameters- Enumeration<String> attNames = request.getAttributeNames();- while (attNames.hasMoreElements()) {- String argName = attNames.nextElement();- args.put(argName, request.getAttribute(argName).toString());- }RequestHeader legacyRequestHeader = generateLegacyRequestHeader(request, target, targetExt);// add multipart-form fields to parameterif (ServletFileUpload.isMultipartContent(request)) {