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

Strip '\r' in notification messages to avoid 'Content-Type: application/octet-stream' #10061

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Al2Klimov
Copy link
Member

Without this patch, an accidential \r in e.g. $NOTIFICATIONCOMMENT leads to a Content-Type: application/octet-stream header in e-mails. The accidential \r might slip in usually using Icinga/Nagios apps...

fixes #7510
ref/IP/6369

This is a cherry-pick of #6369.

…on/octet-stream'

Without this patch, an accidential `\r` in e.g. `$NOTIFICATIONCOMMENT`
leads to a `Content-Type: application/octet-stream` header in e-mails.
The accidential `\r` might slip in usually using Icinga/Nagios apps...
@icinga-probot icinga-probot bot added area/notifications Notification events area/setup Installation, systemd, sample files bug Something isn't working good first issue Good for newcomers labels May 15, 2024
@Icinga Icinga deleted a comment from cla-bot bot May 15, 2024
@Al2Klimov Al2Klimov removed the good first issue Good for newcomers label May 15, 2024
@Al2Klimov
Copy link
Member Author

Tested by #7510 (comment) 👍

@robert-scheck
Copy link
Contributor

robert-scheck commented May 15, 2024

As the author of #7184 it's interesting and sad to see that it got reverted later by a wrong analysis. My PR did not change anything Bash or Dash related, the Debian-reported breakage/issue existed before already. So, thank you, @Al2Klimov, for the second attempt 5 years after mine.

Oh, by the way: Do I need to sign the CLA even the same PR was initially accepted about 5 years ago already? If so, please let me know explicitly what you expect.

@Al2Klimov
Copy link
Member Author

At least it would be nice if you sign it.

Please follow instructions at https://icinga.com/company/contributor-agreement to sign the CLA.

After that, please reply here with a comment and we'll verify.

@Al2Klimov Al2Klimov requested a review from yhabteab June 10, 2024 15:47
Copy link
Member

@yhabteab yhabteab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not able to reproduce the behaviour described in the referenced issue, it should be fine though as it only removes the CR.

Bildschirmfoto 2024-06-11 um 15 47 23

Before:

Bildschirmfoto 2024-06-11 um 15 50 22

After:

Bildschirmfoto 2024-06-11 um 15 55 10

@Al2Klimov Al2Klimov added this to the 2.15.0 milestone Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/notifications Notification events area/setup Installation, systemd, sample files bug Something isn't working ref/IP
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Acknowledgement comments with newlines break emails using default notify scripts.
3 participants