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 de...@apache.org on 2007/08/03 06:50:48 UTC
svn commit: r562329 -
/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/ListingAgent.java
Author: deepal
Date: Thu Aug 2 21:50:47 2007
New Revision: 562329
URL: http://svn.apache.org/viewvc?view=rev&rev=562329
Log:
fixing AXIS2-3058
Modified:
webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/ListingAgent.java
Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/ListingAgent.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/ListingAgent.java?view=diff&rev=562329&r1=562328&r2=562329
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/ListingAgent.java (original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/ListingAgent.java Thu Aug 2 21:50:47 2007
@@ -110,8 +110,12 @@
ip = filePart.substring(ipindex + 2, filePart.length());
int seperatorIndex = ip.indexOf(":");
int slashIndex = ip.indexOf("/");
- String portstr = ip.substring(seperatorIndex + 1,
- slashIndex);
+ String portstr;
+ if (seperatorIndex >= 0) {
+ portstr = ip.substring(seperatorIndex + 1, slashIndex);
+ } else {
+ portstr = "80";
+ }
try {
addTransportListner(httpServletRequest.getScheme(), Integer.parseInt(portstr));
} catch (NumberFormatException e) {
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org