Closed (duplicate)
Project:
Services Entity API
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Jan 2013 at 11:32 UTC
Updated:
15 Sep 2013 at 18:58 UTC
When I call http://localhost/API/entity_node the REST server responds with "No entities found."
But when I call e.g. http://localhost/API/entity_node/4 the entity is there.
I have Services, REST server and Services Entity enabled and all the CRUD operations are marked.
Any thoughts?
Thanks in advance,
HP
Comments
Comment #1
nd987 commentedGetting same, thought it was a permissions thing, but couldn't find any permissions.
Comment #2
a.vakulenko commentedI have the same problem: with /api/applications/entity_entityform I have no entityform submissions, while api/applications/entity_entityform/1 displays correct result.
Comment #3
a.vakulenko commentedI have this problem with Clean entity processor only.
Comment #4
a.vakulenko commentedI realized that it works when I add "?parameters[type]=my_entityform_type" to my url. When this is missing, wrong condition is constructed: type='entityform' (entityforms can not have such value in type column). The wrong code is inside ServicesEntityResourceController::propertyQueryOperation().
Comment #5
joachim commentedCare to share the fix?
Comment #6
warpedgeoid commentedIs there an update on this, a.vakulenko? You said that you had identified the issue, but didn't say if you had managed to resolve it. If you have, a patch would be greatly appreciated!
Comment #7
wodenx commentedThis is because of the following code in ServicesEntityResourceControllerClean::transform_values():
This code is incorrect for another reason (see #2068463: Improper use of 'bundle keys' in "clean" controller.) -- but the problem here is that the entity_type is not always the same as the bundle key, and we shouldn't be assuming that it is. I will reroll the patch for the linked issue to include this fix as well.
Comment #8
wodenx commentedThe latest patch on this constellation of issues is posted at #1950686: Clean Processor not listing entities with custom bundles.
Comment #9
joachim commentedShould we close this as a duplicate?
Comment #10
wodenx commentedSure. Cross posting a link so we don't lose the history.