Skip to content

SLING-13144: PostServlet with space in :redirect#34

Merged
stefanseifert merged 2 commits intoapache:masterfrom
orx0815:SLING-13144
Apr 13, 2026
Merged

SLING-13144: PostServlet with space in :redirect#34
stefanseifert merged 2 commits intoapache:masterfrom
orx0815:SLING-13144

Conversation

@orx0815
Copy link
Copy Markdown
Contributor

@orx0815 orx0815 commented Mar 27, 2026

Solves SLING-13144

URISyntaxException when submitting space | double encoding %2520 in returned location-header

curl -i -Ftitle="my redirect" -F:redirect="/content/new/my space.json?q=foo+bar" http://admin:admin@localhost:8080/new/content/my%20space

Location: http://localhost:8080/new/my%20space.json?q=foo+bar

@sonarqubecloud
Copy link
Copy Markdown

@stefanseifert stefanseifert self-requested a review April 13, 2026 13:34
Copy link
Copy Markdown
Member

@stefanseifert stefanseifert left a comment

Choose a reason for hiding this comment

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

lgtm - thanks!

PR includes some minor additional code refactoring not necessary to fix the actual issue (e.g. introduction of handleStarResource method), but it improves the code, so it's fine.

also validated with sling starter, all integration tests are passing.

@stefanseifert stefanseifert merged commit 8f0aaff into apache:master Apr 13, 2026
3 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