tomj 2002/06/26 12:36:41
Modified: java/src/org/apache/axis/providers/java RPCProvider.java
Log:
Patch from John Gregg [[EMAIL PROTECTED]]:
I discovered the hard way that RPCProvider.java doesn't like comma-delimited
allowed methods even though the docs claim it's ok. Sure enough, the only
delimiter specified in the StringTokenizer is a space. I made the change
and did some minor testing. I tested a space, a comma, and a comma followed
by a space. I didn't do anything with whitespace in general or multiple
spaces, multiple commas, etc. This patch was against rev 1.66 of
RPCProvider.java.
Revision Changes Path
1.67 +2 -2
xml-axis/java/src/org/apache/axis/providers/java/RPCProvider.java
Index: RPCProvider.java
===================================================================
RCS file:
/home/cvs/xml-axis/java/src/org/apache/axis/providers/java/RPCProvider.java,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -r1.66 -r1.67
--- RPCProvider.java 19 Jun 2002 16:13:17 -0000 1.66
+++ RPCProvider.java 26 Jun 2002 19:36:41 -0000 1.67
@@ -323,8 +323,8 @@
// allowedMethods may be a comma-delimited string of method names.
// If so, look for the one matching methodName.
- if (allowedMethods != null && allowedMethods.indexOf(' ') != -1) {
- StringTokenizer tok = new StringTokenizer(allowedMethods, " ");
+ if (allowedMethods != null) {
+ StringTokenizer tok = new StringTokenizer(allowedMethods, ", ");
String nextMethodName = null;
while (tok.hasMoreElements()) {
String token = tok.nextToken();