Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
None
Description
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;
- }
}
}
}
Attachments
Attachments
Issue Links
- relates to
-
AXIS2-4609 Overview pages for webservices broken
- Resolved