gvmd icon indicating copy to clipboard operation
gvmd copied to clipboard

Email Alert message with `attach report` option does not allow use of $i for full report text

Open syspect-sec opened this issue 2 years ago • 0 comments

Expected behavior

According to the manual, the $i dynamic report information variable should work with both include and attach report reporting options according to the docs here

Actual behavior

Although the $i variable is honoured with the include report option it is not honoured for the attach report option. In the attach report case, the emailed report does not include the full report text into the email body. This impacts all installations tested so far:

  • Ubuntu source code install
  • Ubuntu Docker containers
  • Kali Linux native GVM installation
  • CentOS source code install

Steps to reproduce

  1. Configure Greenbone with SMTP configuration (can use this tutorial here)
  2. Create an alert and select Email method with the attach report option
  3. Select any report attachment option
  4. Add the $i variable to the report text configuration input textbox
  5. Trigger a test of the alert

Environment

Operating system:

This impacts all installations tested so far:

  • Ubuntu source code install
  • Ubuntu Docker containers
  • Kali Linux native GVM installation
  • CentOS source code install

Logfiles

No relevant output in the logs.

syspect-sec avatar Aug 29 '23 17:08 syspect-sec