Skip to content
This repository was archived by the owner on Jan 26, 2026. It is now read-only.

Fix error when writting XML metadata with utf-8 characters#148

Open
vgiralt wants to merge 1 commit into
lighthouse-intelligence:masterfrom
vgiralt:master
Open

Fix error when writting XML metadata with utf-8 characters#148
vgiralt wants to merge 1 commit into
lighthouse-intelligence:masterfrom
vgiralt:master

Conversation

@vgiralt
Copy link
Copy Markdown

@vgiralt vgiralt commented Jan 23, 2023

If SP metadata contains utf-8 characters, for example letters with diacriticals, the generation of the corresponding XML file on the filesystem, fails with an error, resulting in interrupted SAML flow and, thus, blocking authentication (at least in the relatively dated systems I'm forced to use). Properly formatted Metadata XML SHOULD be utf-8, so, adding the encoding parameter to the open statement, fixes the problem.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant