incorrect loading of SAML metadata when entityID containts html-encoded characters
Concerned version
Version: %2.0
Summary
I encountered a SAML application whose entityID is http://url/?param1¶m2
The SAML document thus contains
<EntityDescriptor
...
entityID="http://url/?param1&param2">
But when loaded by lemonLDAP, is is stored under the key http://url/?param1&param2
, causing various error, most notably this one:
SP http://url/?param1¶m2 not known
Possible fixes
I'm stumbling against a Lasso error while trying to fix this issue by retrieving the EntityID from Lasso after it went through the XML parser: https://dev.entrouvert.org/issues/35061
So instead, we'll simply unescape HTML-encoded characters in the entityID grepped from the metadata for now.