tracker issue : CF-3183856

select a category, or use search below
(searches all categories and all time range)

ORM Search XML Serialization Issue

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/Duplicate

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 /

Priority/Frequency: Critical / Most users will encounter

Locale/System: English / Linux All

Vote Count: 0

Duplicate ID:	CF-3183868

Problem Description:

When using the RESTful API support, returning a ORM Search result fails to serialize via XML.

Steps to Reproduce:

Create simple, indexed, ORM entity.
Create restful handler/listener which conducts a search and "returns" the ORM search result.
Visit REST url which conducts search and returns result without providing a serialization format (defaults to XML)

Actual Result:

500 server error

Expected Result:

XML of search result.

Any Workarounds:

use .JSON instead of XML, and it correctly returns the result.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3183856

External Customer Info:
External Company:  
External Customer Name: bdalton
External Customer Email:



The code I used to generate these results can be found @ I did modify the code to workaround this and another issue I'll be logging, but if you adjust the restful 'find' method to return the ORM search result directly, the behavior will be present. MYHOST/rest/cfshoutout/shoutouts/find/a < --this will return a 500 server error MYHOST/rest/cfshoutout/shoutouts/find/a.json <-- this works.
Comment by External U.
19531 | May 07, 2012 08:32:53 AM GMT