Skip to content

Saml2MetadataFilter response should configure writer to UTF-8 #12026

Closed
@SebastianS90

Description

@SebastianS90

In this line, the Saml2MetadataFilter sends out the response without specifying an encoding. The response will therefore be encoded using the default ISO-8859-1 encoding (see getWriter Javadoc).

However, the xml file itself starts with <?xml version="1.0" encoding="UTF-8"?>.

This results in a broken file when using OpenSamlMetadataResolver.setEntityDescriptorCustomizer to add a <md:ServiceDescription> element containing special characters like German umlauts (äöü).

Metadata

Metadata

Labels

in: saml2An issue in SAML2 modulestype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions