View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|17237||Bug reports||Survey taking||public||2021-04-12 14:20||2021-07-12 11:53|
|Summary||17237: Zip attachments on email templates are not attached to the email|
|Description||When the email is sent it doesn't contain the attachment.|
> The zip file is attached on the template, before sending? Or that fails as well?
File is attached, template seems to be fine. So, it fails in the sending phase.
Reported while testing 17220
|Steps To Reproduce||OK. I deleted & re-created the database, deleted LS files, unzipped newest version and installed with default values. In first login I created a survey, clicked default question group & question, added participants table, activated, added user with email "firstname.lastname@example.org" (jm58660 is my account), added a zip-file to invitation email template, went to participants list, and clicked "sent email invitation" -icon.|
And got a mail without attachment.
So I think I did everything as directly as I could, not changed anything from defaults.
|Tags||No tags attached.|
|Complete LimeSurvey version number (& build)||4.4.16+210406|
|I will donate to the project if issue is resolved||No|
|Database & DB-Version||not relevant|
|Server OS (if known)|
|Webserver software & version (if known)|
|PHP Version||not relevant|
The issue was with LimeMailer:
It tried to "json_decode" the attributes, which are actually serialized.
Even then, it was trying to use the "path" property of the attachment, which doesn't exist (it's "url").
Finally, although this is not related to the issue, if the attachment had an invalid path it tried to throw a "CErrorEvent".
|Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=31635|
LimeSurvey: master d4b0376b
Committer: GitHub Details Diff
|Fixed issue 17237: Zip attachments on email templates are not attached to the email (#1856)
Co-authored-by: encuestabizdevgit <email@example.com>
|mod - application/core/LimeMailer.php||Diff File|
|2021-04-12 14:20||gabrieljenik||New Issue|
|2021-04-12 14:20||gabrieljenik||Status||new => assigned|
|2021-04-12 14:20||gabrieljenik||Assigned To||=> gabrieljenik|
|2021-04-12 14:20||gabrieljenik||Issue generated from: 17220|
|2021-04-12 14:20||gabrieljenik||Relationship added||related to 17220|
|2021-04-12 14:22||gabrieljenik||Reporter||gabrieljenik => Jmantysalo|
|2021-04-12 14:22||gabrieljenik||Sync to Zoho Project||Yes => |Yes||
|2021-04-12 14:23||gabrieljenik||Description Updated||View Revisions|
|2021-04-12 14:23||gabrieljenik||Sync to Zoho Project||Yes => |Yes||
|2021-04-23 15:34||gabrieljenik||Note Added: 64131|
|2021-04-23 15:34||gabrieljenik||Status||assigned => testing|
|2021-04-26 17:39||gabrieljenik||Changeset attached||=> LimeSurvey master d4b0376b|
|2021-04-26 17:39||gabrieljenik||Note Added: 64158|
|2021-04-26 17:39||gabrieljenik||Resolution||open => fixed|
|2021-04-26 19:04||ollehar||Status||testing => resolved|
|2021-07-12 11:53||c_schmitz||Note Added: 65365|
|2021-07-12 11:53||c_schmitz||Status||resolved => closed|