snichol 2002/08/28 11:53:40 Modified: java/docs changes.html java/src/org/apache/soap/providers CORBAProvider.java EntityEJBProvider.java StatefulEJBProvider.java Log: Fix EJB and CORBA providers to check deployment descriptor to determine whether method is exposed. Revision Changes Path 1.40 +4 -2 xml-soap/java/docs/changes.html Index: changes.html =================================================================== RCS file: /home/cvs/xml-soap/java/docs/changes.html,v retrieving revision 1.39 retrieving revision 1.40 diff -u -r1.39 -r1.40 --- changes.html 28 Aug 2002 18:32:28 -0000 1.39 +++ changes.html 28 Aug 2002 18:53:40 -0000 1.40 @@ -60,8 +60,10 @@ within the <code>isd:provider</code> element in the deployment descriptor.</li> <li>Add a CORBA provider, allowing CORBA interfaces to be exposed via SOAP without writing any code.</li> - <li>Fixed deserialization of multi-reference arrays.</li> - <li>Fixed handling of missing Content-Type header.</li> + <li>Fix deserialization of multi-reference arrays.</li> + <li>Fix handling of missing Content-Type header.</li> + <li>Fix EJB and CORBA providers to check deployment descriptor to + determine whether method is exposed.</li> </ul> </li> </ul> 1.2 +7 -0 xml-soap/java/src/org/apache/soap/providers/CORBAProvider.java Index: CORBAProvider.java =================================================================== RCS file: /home/cvs/xml-soap/java/src/org/apache/soap/providers/CORBAProvider.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- CORBAProvider.java 26 Aug 2002 21:16:16 -0000 1.1 +++ CORBAProvider.java 28 Aug 2002 18:53:40 -0000 1.2 @@ -104,6 +104,13 @@ this.call = call; this.targetObjectURI = targetObjectURI; + // call on a valid method name? + if (!RPCRouter.validCall(dd, call)) { + throw new SOAPException(Constants.FAULT_CODE_SERVER, + "Method '" + call.getMethodName() + + "' is not supported."); + } + // Read deployment descriptor options Hashtable props = dd.getProps(); String orbInitialHost = (String) props.get("ORBInitialHost"); 1.5 +7 -0 xml-soap/java/src/org/apache/soap/providers/EntityEJBProvider.java Index: EntityEJBProvider.java =================================================================== RCS file: /home/cvs/xml-soap/java/src/org/apache/soap/providers/EntityEJBProvider.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- EntityEJBProvider.java 1 May 2002 19:29:52 -0000 1.4 +++ EntityEJBProvider.java 28 Aug 2002 18:53:40 -0000 1.5 @@ -43,6 +43,13 @@ setMethodName(origCall.getMethodName()); setMethodParameters(origCall.getParams()); + // call on a valid method name? + if (!RPCRouter.validCall(depDesc, origCall)) { + throw new SOAPException(Constants.FAULT_CODE_SERVER, + "Method '" + origCall.getMethodName() + + "' is not supported."); + } + // Check if there is a key appended to the URI; String fullURI = origCall.getFullTargetObjectURI(); ejbKey = StatefulEJBProvider.getUniqueId(fullURI); 1.9 +7 -0 xml-soap/java/src/org/apache/soap/providers/StatefulEJBProvider.java Index: StatefulEJBProvider.java =================================================================== RCS file: /home/cvs/xml-soap/java/src/org/apache/soap/providers/StatefulEJBProvider.java,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- StatefulEJBProvider.java 1 May 2002 19:29:52 -0000 1.8 +++ StatefulEJBProvider.java 28 Aug 2002 18:53:40 -0000 1.9 @@ -240,6 +240,13 @@ servlet = servletRef ; session = sessObj ; + // call on a valid method name? + if (!RPCRouter.validCall(dd, call)) { + throw new SOAPException(Constants.FAULT_CODE_SERVER, + "Method '" + call.getMethodName() + + "' is not supported."); + } + this.methodName = origCall.getMethodName(); methodParameters = origCall.getParams();
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>