Status/Resolution/Reason: Closed/Withdrawn/NotABug
Reporter/Name(from Bugbase): Johnny O / Johnny O (Johnny O)
Created: 08/26/2013
Components: REST Services
Versions: 10.0
Failure Type: Data Corruption
Found In Build/Fixed In Build: Final /
Priority/Frequency: Critical / All users will encounter
Locale/System: English / Windows 7 SP1 64-bit
Vote Count: 1
Problem Description:
ColdFusion 10's new Rest API mangles international characters in the request. For example, a request that looks like this:
PUT http://www.bcjobs.local/rest/v1.0/widgets HTTP/1.1
User-Agent: Fiddler
Host: www.bcjobs.local
Content-Length: 15
?????
Turns ????? to ã?“ã‚“ã?«ã?¡ã?¯on the server.
Steps to Reproduce:
Create a rest endpoint like this:
<cfcomponent rest="true" restpath="/widgets" produces="application/json">
<cffunction name="echo" access="remote" httpmethod="PUT" returntype="string">
<cfreturn GetHttpRequestData().content />
</cffunction>
</cfcomponent>
Make a request like this:
PUT http://www.bcjobs.local/rest/v1.0/widgets HTTP/1.1
User-Agent: Fiddler
Host: www.bcjobs.local
Content-Length: 15
?????
Actual Result:
HTTP/1.1 200 OK
Content-Type: application/json
Server: Microsoft-IIS/7.5
Date: Mon, 26 Aug 2013 23:59:09 GMT
Content-Length: 37
ã?“ã‚“ã?«ã?¡ã?¯
Expected Result:
HTTP/1.1 200 OK
Content-Type: application/json
Server: Microsoft-IIS/7.5
Date: Mon, 26 Aug 2013 23:59:09 GMT
Content-Length: 15
?????
Any Workarounds:
Can't think of any.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3618494
Deployment Phase: Release Candidate
External Customer Info:
External Company:
External Customer Name: JohnnyO5
External Customer Email:
External Test Config: My Hardware and Environment details:
Windows 7 or 2008, IIS, ColdFusion 10
Attachments:
Comments: