1modm / petereport

PeTeReport is an open-source application vulnerability reporting tool.
https://1modm.github.io/petereport/
BSD 3-Clause "New" or "Revised" License
449 stars 131 forks source link

PDF export format giving 500 error #65

Closed pswalia2u closed 1 year ago

pswalia2u commented 1 year ago

image

tech-surajrk commented 1 year ago

@1modm Even I am getting this same error on latest 1.3.3. Even when I export html report for the findings imported from DefectDojo. The image in the finding does not loads up. image

1modm commented 1 year ago

@pswalia2u Could you enable the debug mode and attach the output?

in petereport_config.py: 'debug': True,

@surajanuja Could you check the source of the image? what data was exported? is an URL or the image in base64 format?

Thanks

pswalia2u commented 1 year ago

Hi @1modm , I have enabled debug mode. Where will i get the debug output? I am using docker . Thanks

pswalia2u commented 1 year ago

Got it. Here is the output debug_petereport.pdf Untitled

pswalia2u commented 1 year ago

Hi, Is anyone able to find a fix for this?

1modm commented 1 year ago

@pswalia2u it seems that happens when the size of the table is bigger than the width of the column. The next couple of lines appear in the latex output once the above condition is triggered. The application used to generate the PDF has still an opened issue about that: https://github.com/jgm/pandoc/issues/1023

If you have a table in markdown try to reduce the columns, if not, could be an unicode issue.