There is a logical flaw in the way the XMLRPC server checks to see if the request has the correct # of arguments. It's possible this is a dup because it breaks all XMLRPC methods that have parameters, but I didn't see anything when searching.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Status: Needs review » Needs work

The last submitted patch, xmlrpc_server_argvalidation.patch, failed testing.

st0nerhat’s picture

Fixed line endings

st0nerhat’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, xmlrpc_server_argvalidation_v2.patch, failed testing.

kylebrowning’s picture

Status: Needs work » Reviewed & tested by the community
marcingy’s picture

Status: Reviewed & tested by the community » Needs work

The patch has a style issue shoul be

}
elseif .....
kylebrowning’s picture

Fixed in both 7.x and 6.x with formatting issues fixed as well.

kylebrowning’s picture

Status: Needs work » Fixed
dasRicardo’s picture

Status: Needs work » Fixed
FileSize
1.16 KB

You make an xmlrpc call (user.login) you get the whole page as response http header error code 500.

I wrote a patch to fix this by a correction of a try { which was at the wrong place.

This patch also contains the changes of #1266378: Checking service call non-optional arguments .

dasRicardo’s picture

Status: Fixed » Needs review

Status: Needs review » Needs work

The last submitted patch, services-1266102-9.patch, failed testing.

dasRicardo’s picture

Status: Fixed » Needs work
FileSize
1.17 KB
dasRicardo’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, services-1266102-9.patch, failed testing.

dasRicardo’s picture

Status: Needs work » Needs review

I don't know why the test fails. With eclipse I applied this patch successfully.

marcingy’s picture

Version: 7.x-3.0-rc5 » 7.x-3.x-dev
Status: Needs review » Needs work

The issue was a duplicate of #1266378: Checking service call non-optional arguments , the fix in that issue was committed here http://drupal.org/node/1266102#comment-4984010, please reroll this patch with just the try catch changes and also can you reroll against 7.x.3-dev so as it can be reviewed much mire easily.

Cyberwolf’s picture

Subscribing.

marcingy’s picture

Title: Logic bug in XMLRPC argument count check » Logic bug in XMLRPC try catch logic
Status: Needs work » Needs review
FileSize
1.55 KB

Reroll with just the try catch element moved

kylebrowning’s picture

Status: Needs review » Reviewed & tested by the community

looks good.

kylebrowning’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.