dmarc-srg
dmarc-srg copied to clipboard
XML parsing Errors
have this error when importing some yahoo reports
{
"error_code": -1,
"message": "Incorrect XML report file",
"debug_info": {
"code": -1,
"content": "Liuch\\DmarcSrg\\Exception\\RuntimeException: XML error!\nParser code: 9\nParser message: Invalid character\nLine: 289; Column: 75\n in \/var\/www\/html\/dmarc\/dmarc-srg\/classes\/Report\/ReportData.php:81\nStack trace:\n#0 \/var\/www\/html\/dmarc\/dmarc-srg\/classes\/Report\/Report.php(52): Liuch\\DmarcSrg\\Report\\ReportData::fromXmlFile()\n#1 \/var\/www\/html\/dmarc\/dmarc-srg\/classes\/Report\/ReportFetcher.php(123): Liuch\\DmarcSrg\\Report\\Report::fromXmlFile()\n#2 \/var\/www\/html\/dmarc\/dmarc-srg\/public\/files.php(159): Liuch\\DmarcSrg\\Report\\ReportFetcher->fetch()\n#3 {main}"
}
}
the reason is a BEL character in the comment tag
<reason>
<type>local_policy</type>
<comment>arc=pass as[3].d=google.com as[3].s=arc-20240605^Gas[2].d=google.com as[2].s=arc-20240605^Gas[1].d=microsoft.com as[1].s=arcselector10001^G</comment>
</reason>
i tried to contact yahoo like a message in bottle, hope they'll fix that
Hello VilainMamuth, Honestly, I don't know what to do about something like that, and I'm not sure anything needs to be done. Are you sure these reports are really coming from Yahoo?