Status/Resolution/Reason: Closed/Fixed/Fixed
Reporter/Name(from Bugbase): JJ BLODGETT / ()
Created: 11/27/2018
Components: File Management, VFS-S3
Versions: 2016,2018
Failure Type: Data Loss
Found In Build/Fixed In Build: 2016,0,06,308055 / CF2016U12,CF2018U5
Priority/Frequency: Normal / All users will encounter
Locale/System: English / Win All
Vote Count: 5
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: