Index queries with multiple-valued parameters don't seem to be handled correctly in 6.x-3.x. An example query would be endpoint/user.json?parameters[uid]=1,2,3,4. The attached patch fixes this issue, though it needs vetting and testing.

Comments

marcingy’s picture

From reading the 7.x code we have a similar issue there.

cotto’s picture

Here's a simpler version that uses the x IN (...) syntax for all queries so that there's only one control-flow path. The d6 version seems to work. The d7 version is my best guess and hasn't been tested.

marcingy’s picture

StatusFileSize
new2.13 KB

D7 version with test

marcingy’s picture

StatusFileSize
new4.94 KB

D6 patch with tests

cotto’s picture

StatusFileSize
new5.57 KB

It looks like I left out a line from the previous patch. With the attached patch, there are no new test failures in 6.x-3.x. If everyone's happy with the code, the patch is ready to commit.

marcingy’s picture

I'm happy with the code in both but can't rbtc as I wrote the tests.

ygerasimov’s picture

Status: Needs review » Reviewed & tested by the community

I am happy with patches #3 and #5

kylebrowning’s picture

Tested these this morning, 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.