Title:
CFDOCUMENT not working while enabling Windows authentication IIS 7 and CF 901
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): / ext-user (Umal Kumar Bhole)
Created: 11/04/2011
Components: Document Management, PDF generation
Versions: 10.0
Failure Type:
Found In Build/Fixed In Build: 279809 / 279809
Priority/Frequency: Critical / All users will encounter
Locale/System: ALL / Win 64
Vote Count: 0
Problem: CFDOCUMENT is not generating pdf and throwing exception while enabling Windows authentication on IIS 7(ColdFusion 901 and IIS 7 has connector)
Method: 1) Create a cfm file with code
testPDF.cfm
<cftry>
<cfdocument src="http://localhost/testpdf/location.cfm" format="pdf" filename="test.pdf"
overwrite="yes">
</cfdocument>
<cfcatch>
<cfdump var="#cfcatch#">
</cfcatch>
</cftry>
location.cfm will be place inside the testpdf folder in webroot
<cfoutput>Hello Welcome</cfoutput>
2) create a folder testpdf inside the website webroot.
3) Open IIS management console and make the authentication for Default Website as ananomous access.
4) Expand default website and you will see a folder testpdf, select testpdf and make the authetication for testpdf folder as windows authentication.
5) Run the testPDF.cfm page
Result: Exception
Code vfs.provider.http/head.error
Info array
1 http://localhost/testpdf/location.cfm
Message HEAD method failed for "http://localhost/testpdf/location.cfm".
StackTrace org.apache.commons.vfs.FileSystemException: HEAD method failed for "http://localhost/testpdf/location.cfm". at org.apache.commons.vfs.provider.http.HttpFileObject.doGetType(HttpFileObject.java:96) at org.apache.commons.vfs.provider.AbstractFileObject.attach(AbstractFileObject.java:1296) at org.apache.commons.vfs.provider.AbstractFileObject.getType(AbstractFileObject.java:412) at org.apache.commons.vfs.provider.AbstractFileObject.exists(AbstractFileObject.java:402) at coldfusion.vfs.VFile.exists(VFile.java:230) at coldfusion.tagext.lang.DocumentTag.setSrc(DocumentTag.java:832) at cftestPDF2ecfm742146511.runPage(C:\inetpub\wwwroot\testPDF.cfm:2) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:381) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:94) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46) 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:200) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at jrun.servlet.FilterChain.doFilter(FilterChain.java:86) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at jrun.servlet.FilterChain.service(FilterChain.java:101) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286) at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543) at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203) at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428) at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
TagContext array
1 struct
COLUMN 0
ID CFDOCUMENT
LINE 2
RAW_TRACE at cftestPDF2ecfm742146511.runPage(C:\inetpub\wwwroot\testPDF.cfm:2)
TEMPLATE C:\inetpub\wwwroot\testPDF.cfm
TYPE CFML
Type org.apache.commons.vfs.FileSystemException
Code vfs.provider/get-type.error
Info array
1 http://localhost/testpdf/location.cfm
Message Could not determine the type of file "http://localhost/testpdf/location.cfm".
StackTrace org.apache.commons.vfs.FileSystemException: Could not determine the type of file "http://localhost/testpdf/location.cfm". at org.apache.commons.vfs.provider.AbstractFileObject.attach(AbstractFileObject.java:1305) at org.apache.commons.vfs.provider.AbstractFileObject.getType(AbstractFileObject.java:412) at org.apache.commons.vfs.provider.AbstractFileObject.exists(AbstractFileObject.java:402) at coldfusion.vfs.VFile.exists(VFile.java:230) at coldfusion.tagext.lang.DocumentTag.setSrc(DocumentTag.java:832) at cftestPDF2ecfm742146511.runPage(C:\inetpub\wwwroot\testPDF.cfm:2) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:381) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:94) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46) 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:200) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at jrun.servlet.FilterChain.doFilter(FilterChain.java:86) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at jrun.servlet.FilterChain.service(FilterChain.java:101) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286) at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543) at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203) at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428) at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66) Caused by: org.apache.commons.vfs.FileSystemException: HEAD method failed for "http://localhost/testpdf/location.cfm". at org.apache.commons.vfs.provider.http.HttpFileObject.doGetType(HttpFileObject.java:96) at org.apache.commons.vfs.provider.AbstractFileObject.attach(AbstractFileObject.java:1296) ... 35 more
TagContext array
1 struct
COLUMN 0
ID CFDOCUMENT
LINE 2
RAW_TRACE at cftestPDF2ecfm742146511.runPage(C:\inetpub\wwwroot\testPDF.cfm:2)
TEMPLATE C:\inetpub\wwwroot\testPDF.cfm
TYPE CFML
Type org.apache.commons.vfs.FileSystemException
Detail The cause of this exception was: org.apache.commons.vfs.FileSystemException: Could not determine the type of file "http://localhost/testpdf/location.cfm"..
Message An error occurred when performing a file operation exists on file /testpdf/location.cfm.
RootCause struct
Cause struct
Code vfs.provider.http/head.error
Info array
1 http://localhost/testpdf/location.cfm
Message HEAD method failed for "http://localhost/testpdf/location.cfm".
StackTrace org.apache.commons.vfs.FileSystemException: HEAD method failed for "http://localhost/testpdf/location.cfm". at org.apache.commons.vfs.provider.http.HttpFileObject.doGetType(HttpFileObject.java:96) at org.apache.commons.vfs.provider.AbstractFileObject.attach(AbstractFileObject.java:1296) at org.apache.commons.vfs.provider.AbstractFileObject.getType(AbstractFileObject.java:412) at org.apache.commons.vfs.provider.AbstractFileObject.exists(AbstractFileObject.java:402) at coldfusion.vfs.VFile.exists(VFile.java:230) at coldfusion.tagext.lang.DocumentTag.setSrc(DocumentTag.java:832) at cftestPDF2ecfm742146511.runPage(C:\inetpub\wwwroot\testPDF.cfm:2) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:381) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:94) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46) 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:200) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at jrun.servlet.FilterChain.doFilter(FilterChain.java:86) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at jrun.servlet.FilterChain.service(FilterChain.java:101) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286) at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543) at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203) at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428) at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
TagContext array
1 struct
COLUMN 0
ID CFDOCUMENT
LINE 2
RAW_TRACE at cftestPDF2ecfm742146511.runPage(C:\inetpub\wwwroot\testPDF.cfm:2)
TEMPLATE C:\inetpub\wwwroot\testPDF.cfm
TYPE CFML
Type org.apache.commons.vfs.FileSystemException
Code vfs.provider/get-type.error
Info array
1 http://localhost/testpdf/location.cfm
Message Could not determine the type of file "http://localhost/testpdf/location.cfm".
StackTrace org.apache.commons.vfs.FileSystemException: Could not determine the type of file "http://localhost/testpdf/location.cfm". at org.apache.commons.vfs.provider.AbstractFileObject.attach(AbstractFileObject.java:1305) at org.apache.commons.vfs.provider.AbstractFileObject.getType(AbstractFileObject.java:412) at org.apache.commons.vfs.provider.AbstractFileObject.exists(AbstractFileObject.java:402) at coldfusion.vfs.VFile.exists(VFile.java:230) at coldfusion.tagext.lang.DocumentTag.setSrc(DocumentTag.java:832) at cftestPDF2ecfm742146511.runPage(C:\inetpub\wwwroot\testPDF.cfm:2) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:381) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:94) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46) 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:200) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at jrun.servlet.FilterChain.doFilter(FilterChain.java:86) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at jrun.servlet.FilterChain.service(FilterChain.java:101) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286) at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543) at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203) at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428) at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66) Caused by: org.apache.commons.vfs.FileSystemException: HEAD method failed for "http://localhost/testpdf/location.cfm". at org.apache.commons.vfs.provider.http.HttpFileObject.doGetType(HttpFileObject.java:96) at org.apache.commons.vfs.provider.AbstractFileObject.attach(AbstractFileObject.java:1296) ... 35 more
TagContext array
1 struct
COLUMN 0
ID CFDOCUMENT
LINE 2
RAW_TRACE at cftestPDF2ecfm742146511.runPage(C:\inetpub\wwwroot\testPDF.cfm:2)
TEMPLATE C:\inetpub\wwwroot\testPDF.cfm
TYPE CFML
Type org.apache.commons.vfs.FileSystemException
StackTrace coldfusion.tagext.io.FileTag$SingleFileOperationException: An error occurred when performing a file operation exists on file /testpdf/location.cfm. at coldfusion.vfs.VFile.exists(VFile.java:234) at coldfusion.tagext.lang.DocumentTag.setSrc(DocumentTag.java:832) at cftestPDF2ecfm742146511.runPage(C:\inetpub\wwwroot\testPDF.cfm:2) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:381) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:94) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46) 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:200) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at jrun.servlet.FilterChain.doFilter(FilterChain.java:86) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at jrun.servlet.FilterChain.service(FilterChain.java:101) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286) at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543) at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203) at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428) at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66) Caused by: org.apache.commons.vfs.FileSystemException: Could not determine the type of file "http://localhost/testpdf/location.cfm". at org.apache.commons.vfs.provider.AbstractFileObject.attach(AbstractFileObject.java:1305) at org.apache.commons.vfs.provider.AbstractFileObject.getType(AbstractFileObject.java:412) at org.apache.commons.vfs.provider.AbstractFileObject.exists(AbstractFileObject.java:402) at coldfusion.vfs.VFile.exists(VFile.java:230) ... 32 more Caused by: org.apache.commons.vfs.FileSystemException: HEAD method failed for "http://localhost/testpdf/location.cfm". at org.apache.commons.vfs.provider.http.HttpFileObject.doGetType(HttpFileObject.java:96) at org.apache.commons.vfs.provider.AbstractFileObject.attach(AbstractFileObject.java:1296) ... 35 more
TagContext array
1 struct
COLUMN 0
ID CFDOCUMENT
LINE 2
RAW_TRACE at cftestPDF2ecfm742146511.runPage(C:\inetpub\wwwroot\testPDF.cfm:2)
TEMPLATE C:\inetpub\wwwroot\testPDF.cfm
TYPE CFML
Type Application
action exists
file /testpdf/location.cfm
Expected: No exception must be thrown and pdf must be created succesfully.
Workaround:NA
Observations:- This is happening on CF 901. When i try the same with CF 9 or CF 801 this is working fine.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3019875
External Customer Info:
External Company:
External Customer Name:
External Customer Email:
Attachments:
Comments: