petereport icon indicating copy to clipboard operation
petereport copied to clipboard

Import Findiings

Open matholiveira91 opened this issue 3 years ago • 6 comments

I had problems to import a findings csv to a report, and i have another problem i have a lot of hosts and a lot of vulnerabilities to manage, add then one by one manually i'll take me a lot of time. When i try to import a csv filie with a set of vulnerabilities i receive HTTP 500 error

matholiveira91 avatar Oct 09 '22 18:10 matholiveira91

Same error when I generate PDF report imagen

ramsal avatar Nov 07 '22 23:11 ramsal

Same error when I generate PDF report imagen

Solved! I config debug true and detect special characters in my description

ramsal avatar Nov 08 '22 00:11 ramsal

@ramsal thanks for the update, do you know which character was causing the issue? I would like to take a look.

Thanks!

1modm avatar Nov 08 '22 07:11 1modm

@ramsal thanks for the update, do you know which character was causing the issue? I would like to take a look.

Thanks!

this ☒ (U+2612)

ramsal avatar Nov 08 '22 08:11 ramsal

@ramsal Found the issue, some unicode chars have problems with pandoc and latex. To fix the issue you can add to the line 985 the next option: '--pdf-engine', 'xelatex' :

output_pypandoc = pypandoc.convert_text(final_markdown_output, to='pdf', outputfile=pdf_file_output, format='md', extra_args=['-H', PDF_HEADER_FILE, '--from', 'markdown+yaml_metadata_block+raw_html', '--template', PETEREPORT_LATEX_FILE, '--table-of-contents', '--toc-depth', '4', '--number-sections', '--highlight-style', 'breezedark', '--filter', 'pandoc-latex-environment', '--listings', '--pdf-engine', 'xelatex'])

1modm avatar Nov 10 '22 10:11 1modm

Thanks! Regards!

ramsal avatar Nov 10 '22 11:11 ramsal

@matholiveira91 Hi, I did some updates, could you try?

First update https://1modm.github.io/petereport/django/#upgrade-petereport

If doesn't works enable debug mode in app/config/petereport_config.py and attach here the output

1modm avatar Dec 12 '22 01:12 1modm