TheHive: a Scalable, Open Source and Free Security Incident Response Platform
GNU Affero General Public License v3.0
3.28k
stars
604
forks
source link
[Bug] Unable to send Slack blocks template with `{{object.description}}` because of newlines #2458
Open
octocolby opened 1 year ago
Request Type
Bug
Work Environment
Problem Description
When sending the
{{object.description}}
to a Slack webhook that has newlines it breaks the slack payload and no messages arrive in Slack.Any help would be really appreciated. Thanks.
Steps to Reproduce
Create a slack webhook to send an object description. eg.
Create a case with a newline in the description.
Triggering the webhook will fail
Possible Solutions
I have tried to see if there is a way to strip newlines in the templating engine but I haven't seen anything to show that is possible.
Complementary information
I tested and confirmed that my Slack webhook works by setting the description to only a single line and it works.
Here is a full screenshot of my test webhook configuration.