Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Marc Giguere / Marc Giguere (Marc Giguere)
Created: 01/15/2014
Components: REST Services
Versions: 10.0
Failure Type:
Found In Build/Fixed In Build: Final / CF10_Update14
Priority/Frequency: Major / All users will encounter
Locale/System: English / Win 2008 Server R2 64 bit
Vote Count: 0
Problem Description:
In developing a new RESTful service using Cold Fusion 10, the 3rd party consuming the service is sending data in json format that is gzip compressed. When the data is received, Cold Fusion is unable to deflate/uncompress the information and as a result, the binary data received is in an unusable format. The following post on a 3rd party site illustrates the same situation as I have experienced and the attempt to update the web.xml configuration to use the additional filter to try and have the data be processed for decompression had no apparent impact/effect.
http://stackoverflow.com/questions/16858387/coldfusion-10-restful-web-service-unable-to-receive-gzipd-binary-body
Steps to Reproduce:
Use the files included in the zip file attached to submit a test HTTP post to a test REST service to demonstrate error.
Actual Result:
When you run the posting template, it will send gzip compressed data to the REST service, which will receive it and will throw an error when it attempts to run the DeserializeJSON() function on the data that was converted from the originally received binary information. The <cffile write> will capture the binary data and then this can be opened using a standard compression program (ie: WinZip) and you will see that the data within that file is a simple text document that holds the original JSON string that was compressed.
Cold Fusion appears to be unable to decompress the received information from the HTTP post and thus there is no way to use that data.
Expected Result:
Cold Fusion should proceed to detect that gzip data was received, decompress it and then return a valid representation of the compressed data to be used/manipulated.
Any Workarounds:
Going to attempt to use the built-in java libraries to manually decompress the data received to then make use of it, but this should not be required.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3694176
Deployment Phase: Release Candidate
External Customer Info:
External Company:
External Customer Name: EdgeDirIT
External Customer Email:
External Test Config: My Hardware and Environment details:
Cold Fusion 10, Updated through update 12
Server 2008 R2, SP1, IIS 7.5
Attachments:
- January 15, 2014 00:00:00: 1_CFBugData.zip
- January 22, 2014 00:00:00: 2_bug3694176.rar
Comments: