#988138 libauthcas-perl: CAS autentication fails when a new line character is missing in xml file

Package:
libauthcas-perl
Source:
libauthcas-perl
Submitter:
"Luis A. Martinez"
Date:
2021-06-04 06:27:05 UTC
Severity:
important
Tags:
#988138#5
Date:
2021-05-06 11:29:24 UTC
From:
To:
Dear Maintainer,

CAS authentication fails when the xml file provided by CAS servers is missing a new line character after the XML declaration. We have tested that this declaration works fine:

<?xml version="1.0" encoding="ISO-8859-1"?>
<cas:serviceResponse xmlns:cas='http://www.yale.edu/tp/cas'>

but this one fails providing a "CAS ticket validation failed" error:

<?xml version="1.0" encoding="ISO-8859-1"?><cas:serviceResponse xmlns:cas='http://www.yale.edu/tp/cas'>

I understand that both forms of the XML file are syntactically valid and the file should be equally parsed.