Issue Details (XML | Word | Printable)

Key: XMLRPC-115
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: June Fang
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
XML-RPC

XML-RPC *expects* the <params> tag

Created: 20/Sep/06 09:22 AM   Updated: 28/Nov/08 08:53 PM
Return to search
Component/s: Releases
Affects Version/s: 3.0
Fix Version/s: 3.1

Time Tracking:
Not Specified

Environment: window 2003 standard server, with xmlrpc++ client(version 0.7)

Resolution Date: 20/Sep/06 08:27 PM


 Description  « Hide
If the method has no arguments, some client implementation may not send the <params> tag.
in this situation, apache xml-rpc server will cause a NullPointerException.
i try to trace the function call and it seems that xml-rpc uses the <params> tag as a clue to lazy
initailize the ArrayList that containing method call parameters, so if no <params> tag, the list
will never be created, and result in a NPE.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
ASF #448327 Wed Sep 20 20:26:50 UTC 2006 jochen An NPE was thrown, if the clients request didn't contain a "params" element.
PR: XMLRPC-115
Files Changed
MODIFY /webservices/xmlrpc/trunk/src/changes/changes.xml
MODIFY /webservices/xmlrpc/trunk/tests/src/test/java/org/apache/xmlrpc/test/ParserTest.java
MODIFY /webservices/xmlrpc/trunk/tests/src/test/java/org/apache/xmlrpc/test/JiraTest.java
MODIFY /webservices/xmlrpc/trunk/server/src/main/java/org/apache/xmlrpc/server/XmlRpcStreamServer.java
MODIFY /webservices/xmlrpc/trunk/tests/src/test/resources/org/apache/xmlrpc/test/JiraTest.properties

Repository Revision Date User Message
ASF #448328 Wed Sep 20 20:27:29 UTC 2006 jochen An NPE was thrown, if the clients request didn't contain a "params" element.
PR: XMLRPC-115
Files Changed
MODIFY /webservices/xmlrpc/branches/XMLRPC_3_0_BRANCH/server/src/main/java/org/apache/xmlrpc/server/XmlRpcStreamServer.java
MODIFY /webservices/xmlrpc/branches/XMLRPC_3_0_BRANCH/tests/src/test/java/org/apache/xmlrpc/test/ParserTest.java
MODIFY /webservices/xmlrpc/branches/XMLRPC_3_0_BRANCH/tests/src/test/java/org/apache/xmlrpc/test/JiraTest.java
MODIFY /webservices/xmlrpc/branches/XMLRPC_3_0_BRANCH/tests/src/test/resources/org/apache/xmlrpc/test/JiraTest.properties
MODIFY /webservices/xmlrpc/branches/XMLRPC_3_0_BRANCH/src/changes/changes.xml

Jochen Wiedmann added a comment - 20/Sep/06 08:27 PM
Fixed in trunk and 3.0 branch.

Jochen Wiedmann made changes - 20/Sep/06 08:27 PM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Fix Version/s 3.1 [ 12312048 ]
Jochen Wiedmann added a comment - 28/Nov/08 08:53 PM
Closing issues which have been released.

Jochen Wiedmann made changes - 28/Nov/08 08:53 PM
Status Resolved [ 5 ] Closed [ 6 ]