Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OF-2883: Add fallback to older style base64 encoding for security.xml #2678

Merged
merged 1 commit into from
Feb 13, 2025

Conversation

guusdk
Copy link
Member

@guusdk guusdk commented Feb 11, 2025

In Openfire 4.9.0, the base64 encoder was changed. This causes a compatibility issue with security.xml files that were generated by older values, that use the 'MIME' type of decoding (with linebreaks) that's not used in later versions. While persisting data in 'security.xml', linebreaks are replaced by white space.

With the changes in this commit, the decoder checks for white space, and uses the older-style type of decoding when found.

In Openfire 4.9.0, the base64 encoder was changed. This causes a compatibility issue with security.xml files that
were generated by older values, that use the 'MIME' type of decoding (with linebreaks) that's not used in later versions.
While persisting data in 'security.xml', linebreaks are replaced by white space.

With the changes in this commit, the decoder checks for white space, and uses the older-style type of decoding when found.
Copy link
Member

@Fishbowler Fishbowler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've read the issue, the implementation, the tests. All looks sensible.
I've not run it, but I'm confident this will solve the problem.

@guusdk guusdk merged commit d4ad8bb into igniterealtime:main Feb 13, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants