gutmensch / docker-dmarc-report

229 stars 26 forks source link

PARSER_XML_COMPRESS=1 breaks raw XML functionality #51

Open ghnp5 opened 8 months ago

ghnp5 commented 8 months ago

PARSER_XML_COMPRESS=1 seems to be supported as an env variable.

Then the parser saves the XML as gzip.

The problem is that the Report Viewer UI doesn't seem to support XML saved as gzip.

Warning: DOMDocument::loadXML(): Start tag expected, '<' not found in Entity, line: 1 in /var/www/viewer/dmarcts-report-viewer-report-data.php on line 213

Warning: Attempt to read property "localName" on null in /var/www/viewer/dmarcts-report-viewer-report-data.php on line 222

Warning: Attempt to read property "childNodes" on null in /var/www/viewer/dmarcts-report-viewer-report-data.php on line 227

Warning: foreach() argument must be of type array|object, null given in /var/www/viewer/dmarcts-report-viewer-report-data.php on line 227

Warning: Attempt to read property "localName" on null in /var/www/viewer/dmarcts-report-viewer-report-data.php on line 243