tracker issue : CF-4203583

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

AWS S3 interaction - File Append error with CFFILE tag and function

| View in Tracker

Status/Resolution/Reason: Open//

Reporter/Name(from Bugbase): JJ BLODGETT / ()

Created: 11/27/2018

Components: File Management, CFFile

Versions: 2016

Failure Type: Data Loss

Found In Build/Fixed In Build: 2016,0,06,308055 /

Priority/Frequency: Normal / All users will encounter

Locale/System: English / Win All

Vote Count: 1

Problem Description:
Amazon Web Services (AWS); Simple Storage Service (S3). Beginning in Update 6 (and still in Update 7), Calls to append to a text file with CFFILE action="APPEND" (and WRITE if the object already exists) fail with one of the following messages:

Service Error Message. Your metadata headers exceed the maximum allowed metadata sizeCould not close the output stream for file "s3://[bucket]/test.txt"

- OR -

The Content-MD5 you specified did not match what we received.Could not close the output stream for file "s3://[bucket]/test.txt"

This results in the inability to append to files in AWS (or potentially to overwrite existing files). It also could result in data loss when the result is unable to be written (for example in our case where user actions aren't being logged).

Steps to Reproduce:
Execute the following (can be run on separate pages or at different times). But will happen if you run during the same request as well. Also, it does the same with the cffile tag.

cffile(action="write", file="s3://[bucket]/test.txt", output="test content");
cffile(action="append", file="s3://[bucket]/test.txt", output="test content");

Actual Result (Not sure when/why one or the other is returned):
Service Error Message. Your metadata headers exceed the maximum allowed metadata sizeCould not close the output stream for file "s3://[bucket]/test.txt"

- OR -

The Content-MD5 you specified did not match what we received.Could not close the output stream for file "s3://[bucket]/test.txt"

Expected Result:
File content should be appended to file in AWS / S3.

Any Workarounds:
Not that we have found by using cffile

Attachments:

Comments:

Forgot to add that this is happening under Java version 8 U191 (1.8.0_191-b12)
Comment by JJ BLODGETT
29975 | November 27, 2018 09:25:40 PM GMT