tracker issue : CF-4076853

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

cfdirectory listing Amazon S3 files returns empty file size and last modified attributes

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): JEREMY EISENGA / JEREMY EISENGA (JEREMY EISENGA)

Created: 10/20/2015

Components: File Management, VFS-S3

Versions: 10.0

Failure Type:

Found In Build/Fixed In Build: CF11_Final / CF12

Priority/Frequency: Critical / All users will encounter

Locale/System: English / Linux RH Enterprise 6

Vote Count: 0

Listed in the version 2016.0.0.297996 Issues Fixed doc
Verification notes: verified_fixed on February 16, 2019 using build 2016.0.01.298513
Problem Description:  I have a CF 10 Standard server that is retrieving a list of files and their file sizes and last modified dates correctly.  The same exact tag used in CF 11 is returning mostly 0's for file size, except for a select few files that are returning accurate file sizes.

Actual Result:  most file sizes and last modified dates are empty

Expected Result:  all file sizes and last modified dates should exist

Any Workarounds:

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	4076853

External Customer Info:
External Company:  
External Customer Name: JEREMY EISENGA
External Customer Email:  
External Test Config: My Hardware and Environment details:



Here is the code that is running on both CF 10 and CF 11:



<cfdirectory action="list" directory="s3://xxxxxxxxxxxxx:yyyyyyyyyyyyyy@bucket_name" name="qryamazon_space">

<cfdump var="#qryamazon_space#">

Attachments:

Comments:

The links that have been shared do show the issue. But when tried to repro with multiple text files and few mp3 files, I was unable to. Could you please share the code snippet to repro and also confirm if these files were set with proper permissions? Which update is ColdFusion 10 server running on? Thanks, Akhila
Comment by Akhila K.
5492 | October 21, 2015 06:38:46 AM GMT
Here is the full code snippet to reproduce: <cfdirectory action="list" directory="s3://[path]" name="qryamazon_space"> <cfdump var="#qryamazon_space#"> The CF 10 server is currently running ColdFusion 10 Update 17. The CF 11 server is currently running ColdFusion 11 Update 6. These files were originally uploaded to S3 with a server running CF 10. It now runs CF 11. The uploading code has not changed and the permissions are good. Here are the permissions on the first file in the list: 1-11-15--My+Continuing+Resolution1.mp3 Grantee: Everyone Open/Download (checked), View Permissions (checked), Edit Permissions (un-checked) Grantee: jeisenga Open/Download (checked), View Permissions (checked), Edit Permissions (checked) Grantee:
Comment by External U.
5493 | October 21, 2015 06:58:03 AM GMT
It just dawned on me that the only files that show the file size and last modified date for CF 11 are files that do NOT have spaces in the file name.
Comment by External U.
5494 | October 21, 2015 07:00:00 AM GMT
Thanks for the details, we are able to repro this case.
Comment by Akhila K.
5495 | October 21, 2015 08:59:40 AM GMT
Can the code snippet that shows sensitive S3 Key ID and Secret Key information be removed from public viewing? I plan to remove the 2 URLs that I provided that showed the issue since you now know how to reproduce the issue Is that OK?
Comment by External U.
5496 | October 21, 2015 09:14:24 AM GMT
Yes, S3 Key ID and Secret Key information can be removed. The 2 URLs can also be removed.
Comment by Akhila K.
5497 | October 21, 2015 09:33:27 AM GMT
OK, great. So you will remove them from the notes below?
Comment by External U.
5498 | October 21, 2015 09:36:00 AM GMT
Actually, I cannot edit the note since I have not authored it. Please go ahead and edit it. Thanks.
Comment by Akhila K.
5499 | October 21, 2015 09:40:06 AM GMT
Hmmmm, not sure how to edit a note. I'm logged in as me and I can add notes, but I don't see anything that lets me edit a note?
Comment by External U.
5500 | October 21, 2015 09:50:11 AM GMT
To be safe, I have deleted the S3 Key ID and Secret Key mentioned below. I have also removed the 2 URLs mentioned below that showed the problem. It would still be great to be able to edit my notes though........
Comment by External U.
5501 | October 21, 2015 11:00:15 AM GMT
We have removed S3 Key ID,Secret Key information and 2 URLs. Thanks.
Comment by Akhila K.
5502 | October 23, 2015 05:43:01 AM GMT
Hi Adobe, I've verified this is fixed in CF2016 Update 1 (build 2016.0.01.298513). Thanks!, -Aaron
Comment by Aaron N.
30273 | February 16, 2019 04:01:59 AM GMT