Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: custom mail template class is broken in 29.0.5 / 28.0.9 #47430

Closed
5 of 8 tasks
phreaker0 opened this issue Aug 22, 2024 · 1 comment · Fixed by #47435
Closed
5 of 8 tasks

[Bug]: custom mail template class is broken in 29.0.5 / 28.0.9 #47430

phreaker0 opened this issue Aug 22, 2024 · 1 comment · Fixed by #47435

Comments

@phreaker0
Copy link
Contributor

⚠️ This issue respects the following points: ⚠️

Bug description

I guess on code restructure one function call was forgotten to be adapted with the new logo parameters:

return new $class(

Steps to reproduce

  1. Use a custom "mail_template_class" for mailing
  2. Upgrade to nextcloud v29.0.5
  3. Creating shares errors out and lot's of errors in the log

Expected behavior

Creating shares works without errors and no errors in the log with custom mail template class.

Installation method

Community Manual installation with Archive

Nextcloud Server version

29

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.2

Web server

Apache (supported)

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

Updated from a MINOR version (ex. 28.0.1 to 28.0.2)

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

{"reqId":"U9sl2V4TMbKYY9EsDtlv","level":3,"time":"2024-08-22T13:35:06+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"Error while running background job OCA\\Activity\\BackgroundJob\\EmailNotification (id: 2, arguments: null)","userAgent":"--","version":"29.0.5.1","exception":{"Exception":"TypeError","Message":"OC\\Mail\\EMailTemplate::__construct(): Argument #4 ($logoWidth) must be of type ?int, string given, called in /var/www/nextcloud/lib/private/Mail/Mailer.php on line 136","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Mail/Mailer.php","line":136,"function":"__construct","class":"OC\\Mail\\EMailTemplate","type":"->"},{"file":"/var/www/nextcloud/apps/activity/lib/MailQueueHandler.php","line":324,"function":"createEMailTemplate","class":"OC\\Mail\\Mailer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/apps/activity/lib/MailQueueHandler.php","line":124,"function":"sendEmailToUser","class":"OCA\\Activity\\MailQueueHandler","type":"->"},{"file":"/var/www/nextcloud/apps/activity/lib/BackgroundJob/EmailNotification.php","line":58,"function":"sendEmails","class":"OCA\\Activity\\MailQueueHandler","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/Job.php","line":80,"function":"run","class":"OCA\\Activity\\BackgroundJob\\EmailNotification","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/TimedJob.php","line":102,"function":"start","class":"OCP\\BackgroundJob\\Job","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/TimedJob.php","line":92,"function":"start","class":"OCP\\BackgroundJob\\TimedJob","type":"->"},{"file":"/var/www/nextcloud/cron.php","line":177,"function":"execute","class":"OCP\\BackgroundJob\\TimedJob","type":"->"}],"File":"/var/www/nextcloud/lib/private/Mail/EMailTemplate.php","Line":337,"message":"Error while running background job OCA\\Activity\\BackgroundJob\\EmailNotification (id: 2, arguments: null)","exception":[],"CustomMessage":"Error while running background job OCA\\Activity\\BackgroundJob\\EmailNotification (id: 2, arguments: null)"},"id":"66c754f1d3fbd"}

Additional info

No response

@phreaker0 phreaker0 added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Aug 22, 2024
@kesselb kesselb added 2. developing Work in progress 28-feedback 29-feedback and removed 0. Needs triage Pending check for reproducibility or if it fits our roadmap labels Aug 22, 2024
@kesselb
Copy link
Contributor

kesselb commented Aug 22, 2024

Regression from #46419

@kesselb kesselb added 3. to review Waiting for reviews 4. to release Ready to be released and/or waiting for tests to finish and removed 2. developing Work in progress 3. to review Waiting for reviews labels Aug 23, 2024
@kesselb kesselb removed their assignment Aug 23, 2024
@kesselb kesselb changed the title [Bug]: custom mail template class is broken in 29.0.5 [Bug]: custom mail template class is broken in 29.0.5 / 28.0.9 Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants