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

Add Support ServerFormPostRedirectStrategy #16551

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

franticticktick
Copy link
Contributor

Closes gh-16542

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Feb 7, 2025
@franticticktick
Copy link
Contributor Author

@sjohnr thanks for trusting me with this ticket. I opened a separate issue #16556 and linked a second commit to it. Could you review this PR please?

@sjohnr sjohnr self-assigned this Feb 14, 2025
@sjohnr sjohnr added in: web An issue in web modules (web, webmvc) type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Feb 14, 2025
Copy link
Member

@sjohnr sjohnr left a comment

Choose a reason for hiding this comment

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

Thanks @franticticktick, this looks great so far! I added one minor comment for now, and then I will review this more thoroughly before merging and can make any other minor adjustments if I find anything.

.replace("{{action}}", HtmlUtils.htmlEscape(uriComponentsBuilder.query(null).build().toUriString()))
.replace("{{params}}", hiddenInputsHtmlBuilder.toString())
.replace("{{nonce}}", HtmlUtils.htmlEscape(nonce))
.getBytes(Charset.defaultCharset());
Copy link
Member

Choose a reason for hiding this comment

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

I believe we will want to use StandardCharsets.UTF_8 here instead since the html page declares that charset in a <meta> tag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web An issue in web modules (web, webmvc) type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support POST method for ServerRedirectStrategy
3 participants