Issues

Select view

Select search mode

 

cfmailparam doesn't log an error when it can't attach a file

Fixed

Description

https://dev.lucee.org/t/cfmailparam-suddenly-cant-find-attachments/12617/11

this was a case of a file attachment using a https url which couldn’t be loaded due to ssl cert problems (old cacerts)

expected behaviour, an error should be logged

question is should this be validated pre spool too (like we now do with email addresses) as an error on spooling is a silent failure in the background?

Environment

None

Details

Assignee

Reporter

Priority

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Created 25 May 2023 at 13:48
Updated 29 May 2023 at 09:44
Resolved 29 May 2023 at 09:44

Activity

Show:

Zac Spitzer25 May 2023 at 15:27

cool, I was under the impression that it wasn’t logging. good that it is

Pothys - MitrahSoft25 May 2023 at 15:10
Edited

checked this issue and cfmailparam file attachment using a https url(https://www.goxplore.dk/7E13BF8656C1C2E003D93FADF9DB6205.pdf), it throws “Cannot attach file to mail [https://www.goxplore.dk/7E13BF8656C1C2E003D93FADF9DB6205.pdf], the file doesn't exist” error.

I got an log from Exception.log

"ERROR","ajp-nio-8009-exec-3","05/25/2023","19:27:07","","Cannot attach file to mail [https://www.goxplore.dk/7E13BF8656C1C2E003D93FADF9DB6205.pdf], the file doesn't exist;lucee.runtime.exp.ApplicationException: Cannot attach file to mail [https://www.goxplore.dk/7E13BF8656C1C2E003D93FADF9DB6205.pdf], the file doesn't exist at lucee.runtime.tag.Mail.setMimeattach(Mail.java:343) at lucee.runtime.tag.Mail.setParam(Mail.java:626) at lucee.runtime.tag.MailParam.doStartTag(MailParam.java:217) at test.testcases.ldev4499.test_cfm$cf.call(/test/testcases/LDEV4499/test.cfm:2) at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:1056) at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:948) at lucee.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:219) at lucee.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:44) at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2493) at lucee.runtime.PageContextImpl._execute(PageContextImpl.java:2478) at lucee.runtime.PageContextImpl.executeCFML(PageContextImpl.java:2449) at lucee.runtime.engine.Request.exe(Request.java:45) at lucee.runtime.engine.CFMLEngineImpl._service(CFMLEngineImpl.java:1216) at lucee.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:1162) at lucee.loader.engine.CFMLEngineWrapper.serviceCFML(CFMLEngineWrapper.java:97) at lucee.loader.servlet.CFMLServlet.service(CFMLServlet.java:51) ..."

Flag notifications