tracker issue : CF-4198575

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

CFFILE copy of Amazon S3 files fails when source file is 6 MB or larger

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/Fixed

Reporter/Name(from Bugbase): Chip Beck / Chip Beck ()

Created: 05/01/2017

Components: File Management, CFFile

Versions: 11.0

Failure Type: Non Functioning

Found In Build/Fixed In Build: 11,0,12,302575 / 2018.0.0.303784

Priority/Frequency: Normal / Unknown

Locale/System: English / Win 2012 Server x64

Vote Count: 0

When a simple copy is performed on a remote AWS S3 file 6 MB or larger, the following exception occurs: java.io.IOException: Multipart upload failed

To reproduce, replace accessKeyId, secretKey, bucketName, and largeFileName with your own Amazon AWS keys, bucket name, and the name of a file 6 MB or larger:

<cffile action="copy" source="s3://accessKeyId:secretKey@bucketName/largeFileName" destination="s3://accessKeyId:secretKey@bucketName/copied_file.pdf" />

This error did not occur in ColdFusion 9. The file does transfer successfully when you create an Application.cfc file, add the following, and restart the ColdFusion service:

<cfset THIS.s3.minSizeForMultipart = 100 />

When I change 100 to any number 6 and under, and restart the ColdFusion service, my 6 MB file fails again.

This error may have something to do with the implementation of jets3t java library (jets3t-0.8.1.jar on CF11)

Attachments:

Comments: