Transport: In some cases HTTP GET on services is not handled correctly in HTTPWorker.java -----------------------------------------------------------------------------------------
Key: WSCOMMONS-405 URL: https://issues.apache.org/jira/browse/WSCOMMONS-405 Project: WS-Commons Issue Type: Bug Reporter: Jarek Gawor In some cases HTTP GET on services is not handled correctly in HTTPWorker. Instead of calling the service code a list of deployed services is returned instead. That happens if the request uri does not have "?" in it. One quick solution for this problem is to remove the following code block from HTTPWorker.java: Index: modules/http/src/org/apache/axis2/transport/http/HTTPWorker.java =================================================================== --- modules/http/src/org/apache/axis2/transport/http/HTTPWorker.java (revision 722613) +++ modules/http/src/org/apache/axis2/transport/http/HTTPWorker.java (working copy) @@ -111,17 +111,6 @@ } } } - } else { - String serviceName = uri.replaceAll(contextPath, ""); - if (serviceName.indexOf("/") < 0) { - String s = HTTPTransportReceiver - .printServiceHTML(serviceName, configurationContext); - response.setStatus(HttpStatus.SC_OK); - response.setContentType("text/html"); - OutputStream out = response.getOutputStream(); - out.write(EncodingUtils.getBytes(s, HTTP.ISO_8859_1)); - return; - } } } } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.