tracker issue : CF-3039380

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

Bug 78957:then i am using the cfexchangemail getAttachmentsand adds the attachmentPath="C:\temp" i get the error 501 and i can not find out where it came form

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): / Kenneth Jørgensen (Kenneth-foli)

Created: 07/21/2009

Components: CFExchange

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 / 246063

Priority/Frequency: Normal / Unknown

Locale/System: English / Win All

Vote Count: 0

Problem:

then i am using the cfexchangemail getAttachmentsand adds the attachmentPath="C:\temp" i get the error 501 and i can not find out where it came form
Method:

<html><head><title>Hello World</title></head><body><cfset i=1><cfexchangeconnection action="open" connection="myExchangeConnection"      server="mail.bp-u.net"      username="BPUNET\kenneth"      password="Tkoc124301" protocol="https"><cfexchangemail action="get" folder="Indbakke/testmail" name="weeksMail" connection="myExchangeConnection" />  <cfloop query="weeksMail" endRow="5">    <cfif weeksmail.HasAttachment>    <cfexchangemail action="getAttachments"            folder="Indbakke/testmail"             connection="myExchangeConnection"            uid="#weeksmail.uid#"             name="attachData"    attachmentPath="C:\temp"/>        <cfoutput>            Message ID #weeksmail.uid# attachments are in the directory                C:\temp\cf_files\attachments\Msg_#i#<br />            <br />                Message information:<br />                Subject: #weeksmail.Subject#<br />                Sent: #dateFormat(weeksmail.TimeSent)#<br />                From:  #weeksmail.FromID#<br />            <br />            Attachments<br />            <cftable query="attachData" colheaders="yes">                <cfcol header="File Name" text="#attachmentFilename#">                <cfcol header="Size" text="#size#">                <cfcol header="MIME type" text="#mimeType#">            </cftable>        </cfoutput>    </cfif>    <cfoutput>  Subject: #weeksmail.Subject#<br />    </cfoutput>    <cfset i++>  </cfloop><cfexchangeconnection action="close" connection="myExchangeConnection" /></body></html>
Result:

Error performing the action.  Exchange error Code : 501.    The error occurred in D:\inetpub\vhosts\default\htdocs\index.cfm: line 18 16 :             uid="#weeksmail.uid#" 17 :             name="attachData"18 :     attachmentPath="C:\temp"/>19 :         <cfoutput>20 :             Message ID #weeksmail.uid# attachments are in the directory -------------------------------------------------------------------------------- Resources: Check the ColdFusion documentation to verify that you are using the correct syntax. Search the Knowledge Base to find a solution to your problem.  Browser   Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729) Remote Address   ::1 Referrer    Date/Time   21-Jul-09 02:48 PM  Stack Trace (click to expand)  at cfindex2ecfm1466640179.runPage(D:\inetpub\vhosts\default\htdocs\index.cfm:18) coldfusion.tagext.net.exchange.ExchangeExceptions$GenericExchangeActionException: Error performing the action.at coldfusion.tagext.net.exchange.ExchangeExceptions.throwGenericExchangeActionException(ExchangeExceptions.java:727)at coldfusion.tagext.net.exchange.ExchangeTag.processWebDAVStatusCode(ExchangeTag.java:792)at coldfusion.tagext.net.exchange.ExchangeTag.processException(ExchangeTag.java:714)at coldfusion.tagext.net.exchange.ExchangeTag.getAttachments(ExchangeTag.java:865)at coldfusion.tagext.net.exchange.ExchangeMailTag.doEndTag(ExchangeMailTag.java:332)at cfindex2ecfm1466640179.runPage(D:\inetpub\vhosts\default\htdocs\index.cfm:18)at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:222)at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416)at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:351)at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)at coldfusion.filter.PathFilter.invoke(PathFilter.java:87)at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27)at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:74)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:53)at coldfusion.CfmServlet.service(CfmServlet.java:177)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)

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

Watson Bug ID:	3039380

External Customer Info:
External Company:  
External Customer Name: Kenneth Jørgensen
External Customer Email: 45AD53DF45A77536992015A8
External Test Config: 07/21/2009

Attachments:

Comments: