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

Triggering resubmission via the rails commands is not sending email notifications #4

Open
teatower opened this issue Jul 8, 2020 · 5 comments

Comments

@teatower
Copy link

teatower commented Jul 8, 2020

Hello!

Thank you very much for a great tool with so many configuration options.

After some testing I came along a problem.
When triggering the resubmissions via the webinterface (bottom of the configuration page) or via the URL it all works well and the user, who the ticket is assigned to, is notified by email.
When triggering the resubmission via the rake command as a shell command, the ticket is modified as expected, but only without triggering an email notification.

Do you have an idea what is the reason and can I get around this issue?

Thank you!
(Die Antwort darf gerne auch auf deutsch sein ;-)

Cheers,
teatower

@teatower
Copy link
Author

Hallo Stephan,

arbeiten Sie noch an diesem plugin?

Freundliche Grüße,
Tom

@m-fuchs
Copy link

m-fuchs commented Jan 24, 2021

+1 Have the same problem and looking for a solution.

@teatower
Copy link
Author

Hello Stephan,
as I have seen you are back at your github projects, may I kindly try to attract your attention also to this issue?
Thank you very much!

Viele Grüße,
teatower

@Froschmedia
Copy link

Hello,
someone got a solution for that issue?
regards

@teatower
Copy link
Author

Hi,
leider nein - unfortunately not.
I put more effort in it in the meanwhile, but with no sufficient knowledge in Rails there is no good chance to get it solved by my own.
redmine logs showing a difference in sending out notification mails via ActionMailer. Whereas events triggered by the website (user-interface) ending with a block where ActionMailer performes some Rendering operations
[ActiveJob] [ActionMailer::DeliveryJob] [1ee95954-1119-4232-98cf-fe7da140b8cd] Rendered mailer/_issue.text.erb (18.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [1ee95954-1119-4232-98cf-fe7da140b8cd] Rendered mailer/issue_edit.text.erb within layouts/mailer (22.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [1ee95954-1119-4232-98cf-fe7da140b8cd] Rendering mailer/issue_edit.html.erb within layouts/mailer [ActiveJob] [ActionMailer::DeliveryJob] [b6161442-2918-4e4d-9bf1-994aaca20893] Rendering mailer/issue_edit.html.erb within layouts/mailer [ActiveJob] [ActionMailer::DeliveryJob] [b6161442-2918-4e4d-9bf1-994aaca20893] Rendered mailer/_issue.html.erb (2.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [b6161442-2918-4e4d-9bf1-994aaca20893] Rendered mailer/issue_edit.html.erb within layouts/mailer (5.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [1ee95954-1119-4232-98cf-fe7da140b8cd] Rendered mailer/_issue.html.erb (1.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [1ee95954-1119-4232-98cf-fe7da140b8cd] Rendered mailer/issue_edit.html.erb within layouts/mailer (18.6ms)

these tasks are missing when performing the rake task from the shell. ActionMailer ends with

[ActiveJob] [ActionMailer::DeliveryJob] [1ee95954-1119-4232-98cf-fe7da140b8cd] Performing ActionMailer::DeliveryJob (Job ID: 1ee95954-1119-4232-98cf-fe7da140b8cd) from Async(mailers) with arguments: "Mailer", "issue_edit", "deliver_now", #<GlobalID:0x000055ee2d54d780 @uri=#<URI::GID gid://redmine-app/User/69>>, #<GlobalID:0x000055ee2d5bd378 @uri=#<URI::GID gid://redmine-app/Journal/16092>>

It is not pracitcal to call the given URL, as this requests a user being logged in.

On the other hand, it is a great tool so far and I can not find adequate replacement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants