tracker issue : CF-4206169

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

Creating a CF mapping with some paths will cause an error in the console and a blank page in the admin

| View in Tracker

Status/Resolution/Reason: To Fix//BugVerified

Reporter/Name(from Bugbase): Bradley W. / ()

Created: 11/27/2019

Components: Language

Versions: 2018

Failure Type: Usability Issue

Found In Build/Fixed In Build: Update 6 /

Priority/Frequency: Normal / Unknown

Locale/System: English / Platforms All

Vote Count: 0

Problem Description: 

I was testing whether Adobe CF allows me to create a CF mapping that points to an S3 bucket in the same manner that Lucee Server does, and I found that when saving the form, the web UI just showed a white page and there was an error in the console.  Even if this isn't supported, it should validate the data better.

Steps to Reproduce:

Login in the ColdFusion Administrator and try to add a mapping whose "directory path" points to "s3:///" (without the quotes)

Actual Result:
Blank page in browser, and this exception in the console log:

java.lang.NoClassDefFoundError: Could not initialize class coldfusion.vfs.VFile
        at coldfusion.vfs.VFSFileFactory.checkIfVFile(
        at coldfusion.vfs.VFSFileFactory.getFileObject(
        at coldfusion.runtime.CFPage.DirectoryExists(
        at cfmappings2ecfm23600550._factor0(/CFIDE/administrator/settings/mappings.cfm:99)
        at cfmappings2ecfm23600550._factor2(/CFIDE/administrator/settings/mappings.cfm:80)
        at cfmappings2ecfm23600550._factor4(/CFIDE/administrator/settings/mappings.cfm:76)
        at cfmappings2ecfm23600550._factor13(/CFIDE/administrator/settings/mappings.cfm:12)
        at cfmappings2ecfm23600550.runPage(/CFIDE/administrator/settings/mappings.cfm:1)

Expected Result:

It should either work or give a validation message of why it can't be added.



Hello Brad , CF Admin while adding a mapping does a DirectoryExist() , before it adds the mapping .  Since the access key id for s3 is not available to CF Admin , it throws an exception. I do see an exception thrown on browser , not sure why you see a blank page . But it should not throw an exception rather a validation message. Hence moving the bug to  "To Fix". Adding a s3 mapping to Application.cfc works.  Thanks & Regards, Suchika
Comment by Suchika S.
31897 | November 28, 2019 01:21:04 PM GMT
Thanks for the reply Suchika. Do you see the same exception that I posted in the ticket?
Comment by Bradley W.
31898 | November 28, 2019 03:56:10 PM GMT
Suchika, also you seem to be saying that this is a supported feature (creating a mapping that point to an S3 bucket). If that is the case, a publicly accessible bucket would not need an S3 access ID. Can you clarify this? Even if I test with a path to a public bucket like s:///, I get a validation error to "Please enter a valid path for the mapping"
Comment by Bradley W.
31899 | November 28, 2019 04:02:00 PM GMT