Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Ben Dalton / Ben Dalton (bdalton)
Created: 05/07/2012
Components: REST Services
Versions: 10.0
Failure Type: Non Functioning
Found In Build/Fixed In Build: Public Beta / 287215
Priority/Frequency: Critical / All users will encounter
Locale/System: English / Linux All
Vote Count: 0
Problem Description:
This may or may not be tied to ORM Search or the REST support.
If I conduct an ORM search inside a REST handler/listener, if I want to return an array of the entities and not the entire ORM search result, I end up with an array of entities with NULL values for each attribute.
Steps to Reproduce:
Create a simple, indexed ORM entity
Construct a RESTFUL listener which conducts an ORM search
Iterate over the ORM search results and append each entity to a new array
Return array of ORM entities as the result of the RESTful method
Actual Result:
Serialized array of entities with null values for each property
Expected Result:
Serialized array of entities with correct values for each property
Any Workarounds:
Added "toStruct" method on ORM entity.
ArrayAppend(resArray, entity.toStruct());
return array of entity structs.
works as expected.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3183868
Deployment Phase: Release Candidate
External Customer Info:
External Company:
External Customer Name: bdalton
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: