Closed (fixed)
Project:
Services
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Feb 2011 at 06:34 UTC
Updated:
26 Feb 2011 at 04:45 UTC
Jump to comment: Most recent file
Comments
Comment #1
kylebrowning commentedComment #2
dpi+1
Would like to know what is going on with 7.x-3.x resources, node and user, that implement INDEX. They do not make use of $parameters at all in their query.
Comment #3
dpiI haven't done the research to ensure that this is secure, but I imagine we are looking for something like this.
See attached patch.
The user resource will also need this.
Comment #4
kylebrowning commentedFixed, thanks
Comment #5
dpiThere was some code added in addition to the patch I provided that is causing the parameter functionality to fail.
We should not be checking if $parameters is an array, it is an object. I have updated this check to object checking, and have made the default arguments more clear about this.
Attached is a patch that fixes the node index functionality, and fixes parameter functionality for the user index.
Comment #6
kylebrowning commentedWoops, thanks