You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ch...@apache.org on 2005/06/03 11:57:53 UTC
svn commit: r179762 -
/webservices/axis/trunk/java/modules/core/src/org/apache/axis/engine/RequestURIBasedDispatcher.java
Author: chathura
Date: Fri Jun 3 02:57:51 2005
New Revision: 179762
URL: http://svn.apache.org/viewcvs?rev=179762&view=rev
Log:
Dispatcher bug fixed to extract the service name from the uri. This was not working when the URi based dispatching was done using the following like uri(http://<host>/services/). Service is hosted in the root web directory.
Modified:
webservices/axis/trunk/java/modules/core/src/org/apache/axis/engine/RequestURIBasedDispatcher.java
Modified: webservices/axis/trunk/java/modules/core/src/org/apache/axis/engine/RequestURIBasedDispatcher.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/org/apache/axis/engine/RequestURIBasedDispatcher.java?rev=179762&r1=179761&r2=179762&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/org/apache/axis/engine/RequestURIBasedDispatcher.java (original)
+++ webservices/axis/trunk/java/modules/core/src/org/apache/axis/engine/RequestURIBasedDispatcher.java Fri Jun 3 02:57:51 2005
@@ -69,7 +69,7 @@
int index = filePart.lastIndexOf(URI_ID_STRING);
String serviceStr = null;
- if (index > 0) {
+ if (-1 != index) {
serviceStr =
filePart.substring(index + URI_ID_STRING.length() + 1);