Status/Resolution/Reason: Closed/Fixed/Fixed
Reporter/Name(from Bugbase): Chia Ching Tan / Chia Ching Tan (Chia Ching Tan)
Created: 06/12/2016
Components: REST Services
Versions: 11.0
Failure Type:
Found In Build/Fixed In Build: CF11_Final / CF2016 HF3 build
Priority/Frequency: Normal / Some users will encounter
Locale/System: English / Win 2008 Server R2 64 bit
Vote Count: 0
Problem Description: This problem is very similar to https://bugbase.adobe.com/index.cfm?event=bug&id=3337394, but happen in rest server
Steps to Reproduce:
Create a rest service
<cfcomponent restpath="Test" rest="true">
<cffunction name="testStruct" access="remote" output="false" returntype="struct" httpmethod="get" restpath="/testStruct">
<cfset ret = {"Text":"Yes", "Text2":"You should get Yes from Test"}>
<cfreturn ret>
</cffunction>
</cfcomponent>
Then call the rest service, and compare to call it directly with cfc.
Actual Result:
Calling rest service will return: {"Text2":"You should get Yes from Test","Text":true}
Calling the component directly will return: {"Text2":"You should get Yes from Test","Text":"Yes"}
Expected Result:
I will expect
{"Text2":"You should get Yes from Test","Text":"Yes"}
Any Workarounds:
By adding a leading space will turn it the " Yes", but no a good solution.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4163450
External Customer Info:
External Company:
External Customer Name: Chia Ching Tan
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: