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

Disables HTML escaping in LoadPlan json encoding. #5299

Merged
merged 1 commit into from
Feb 3, 2025

Conversation

keith-turner
Copy link
Contributor

The encoding in LoadPlan was using GSon default settings which encoded some HTML chars like = as unicode escape sequences. This did not cause any problems because GSon would reverse this encoding. However it was not documented in the javadoc for LoadPlan and it seems unnecessary.

Disabled the HTML escaping so the code aligns w/ the javadoc. Also updated the unit test to produce = in the base64 and see how that behaves in the json. This allows the test to better detect changes in the way the code persist data.

The encoding in LoadPlan was using GSon default settings which encoded
some HTML chars like `=` as unicode escape sequences.  This did not
cause any problems because GSon would reverse this encoding.  However it
was not documented in the javadoc for LoadPlan and it seems unnecessary.

Disabled the HTML escaping so the code aligns w/ the javadoc.  Also
updated the unit test to produce `=` in the base64 and see how that
behaves in the json.  This allows the test to better detect changes in
the way the code persist data.
@keith-turner keith-turner added this to the 2.1.4 milestone Feb 3, 2025
@keith-turner keith-turner merged commit 7bf0ecf into apache:2.1 Feb 3, 2025
8 checks passed
@keith-turner keith-turner deleted the disable-html-escaping branch February 3, 2025 22:16
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.

3 participants