wazuh / wazuh-dashboard-plugins

Plugins for Wazuh Dashboard
https://wazuh.com/
GNU General Public License v2.0
425 stars 176 forks source link

Graphs are not shown in the reports (Safari) #3844

Open matiasmoreno876 opened 2 years ago

matiasmoreno876 commented 2 years ago
Wazuh Elastic Rev Security
4.3 7.16.3 xxx Xpack
Browser
Safari

Description When generating a report with the Safari browser, the alerts graphs are not displayed.

Preconditions

  1. We must have alerts loaded

Steps to reproduce

  1. Navigate to 'Modules/Security Events'
  2. Click on 'Generate report'

Expected Result

  1. The report should be generated correctly and show the graphs with their respective results

Actual Result

  1. The reports are generated but the graphs are not displayed.

Screenshots Grabación de pantalla 2022-02-14 a la(s) 11 44 23

This happens only with the Safari browser, in Chrome it works correctly

matiasmoreno876 commented 2 years ago

Reports safari-report.pdf chrome-report.pdf

Machi3mfl commented 2 years ago

Error when "Generate Report" is clicked

Screen Shot 2022-02-16 at 11 32 52

vis2png.js - linea 63 const tmpResult = await domtoimage.toPng(tmpNode[0]);

matiasmoreno876 commented 2 years ago

The problem is also replicated in versions 4.2.5-7.14.2 Files: 4.2.5-7.14.2-safari.pdf

4.2.5-7.14.2-chrome.pdf