Title:
directoryList("s3://key:secret@bucket", false, "query", "", "name asc", "file") throws NPE.
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): / ext-user (Suchika Singh)
Created: 02/26/2015
Components: File Management, VFS-S3
Versions: 11.0
Failure Type:
Found In Build/Fixed In Build: CF11 Final /
Priority/Frequency: Major / Some users will encounter
Locale/System: English / Win XP All
Vote Count: 1
Problem:directoryList("s3://key:secret@bucket", false, "query", "", "name asc", "file") throws NPE.
Method:Run the attached code
Result:at cflistBucket2dpos2d012ecfm304164144.runPage(-Operations/listBucket-pos-01.cfm:12) at cflistBucket2dpos2d012ecfm304164144.runPage(Operations/listBucket-pos-01.cfm:12)
org.apache.commons.vfs2.FileSystemException
at coldfusion.vfs.s3.S3FileObject.findFiles(S3FileObject.java:255)
at coldfusion.vfs.s3.S3FileObject.findFiles(S3FileObject.java:232)
at coldfusion.vfs.VFile.listFiles(VFile.java:520)
at coldfusion.tagext.io.FileUtils.listFiles(FileUtils.java:351)
at coldfusion.tagext.io.FileUtils.listFiles(FileUtils.java:293)
at coldfusion.tagext.io.FileUtils.listFiles(FileUtils.java:253)
at coldfusion.runtime.CFPage.DirectoryList(CFPage.java:3869)
at cflistBucket2dpos2d012ecfm304164144.runPage(C:\ColdFusion11\cfusion\wwwroot\Amazon\Amazons3Support-key\Bucket-Operations\listBucket-pos-01.cfm:12)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:246)
at coldfusion.tagext.lang.IncludeTag.handlePageInvoke(IncludeTag.java:734)
at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:570)
at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
at coldfusion.filter.IpFilter.invoke(IpFilter.java:45)
at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:466)
at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:42)
at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
at coldfusion.filter.PathFilter.invoke(PathFilter.java:141)
at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:30)
at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94)
at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:58)
at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62)
at coldfusion.CfmServlet.service(CfmServlet.java:219)
at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)
at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at coldfusion.inspect.weinre.MobileDeviceDomInspectionFilter.doFilter(MobileDeviceDomInspectionFilter.java:121)
at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:422)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at coldfusion.vfs.VFile$1.includeFile(VFile.java:505)
at coldfusion.vfs.s3.S3FileObject.findFiles(S3FileObject.java:251)
Expected: Should list the directoryContent
Workaround:Use cfdirectory tag instead
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3945665
External Customer Info:
External Company:
External Customer Name:
External Customer Email:
Attachments:
Comments: