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

Deprecate URLBuilder in favor of AddressBuilder. #272

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

Conversation

mdfst13
Copy link
Contributor

@mdfst13 mdfst13 commented Sep 12, 2018

These are the last two internal use cases for URLBuilder. And replacing them makes my IDE happy without having to suppress warnings. Both are similar to the create case but different.

InboundRewriteRuleAdaptor needs encoding.
RewriteViewHandler needs to merge two query strings.

These are the last two internal use cases for URLBuilder.  And replacing
them makes my IDE happy.  Both are similar to the create case but
different.

InboundRewriteRuleAdaptor needs the encoding.
RewriteViewHandler needs to merge two query strings.
@chkal
Copy link
Member

chkal commented Sep 13, 2018

Thanks! But it looks like you broke the CI build...

Matt Fletcher added 7 commits September 13, 2018 14:59
If we send an invalid URL to the URI parser, it falls over and fails.
But apparently we are supposed to accept and fix rules that produce
invalid URLs.  So encode URL before we try to parse it.
String.join did not exist prior to Java 8.  So implement manually with
StringBuilder.
Use Pattern.quote to escape the question mark and use it literally.
Since both pathEncoded and pathDecoded decode the string, use
pathDecoded so people will know what's happening.
As this test is not failing locally and not producing useful information
on Travis, adding a message to the failing assertion.
We cast event to HttpServletRewrite before getting the inbound address.
We do not need to keep doing it, as we have the cast version stored.
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