You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The '@' character is not a valid character for the userinfo. If use of a '@' is required then it would need to be %nn encoded. Multiple '@' before those host looks to be invalid and should probably be rejected.
We can refer what java.lang.URL does.
I think change to lastIndexOf() brings no harm, there's also no need to add error promotion. But we should remove the '@' use cases in UT.
Activity
leiwei2094 commentedon Mar 26, 2018
We will improve the URL interpreting logic, thanks a lot.
ralf0131 commentedon Apr 28, 2018
Hi, thanks for reporting, could you please send a pull request to fix it?
markt-asf commentedon May 21, 2018
I'm not convinced that this bug report is valid.
From RFC 3986
authority = [ userinfo "@" ] host [ ":" port ]
userinfo = ( unreserved / pct-encoded / sub-delims / ":" )
unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"
sub-delims = "!" / "$" / "&" / "'" / "(" / ")" / "" / "+" / "," / ";" / "="
The '@' character is not a valid character for the userinfo. If use of a '@' is required then it would need to be %nn encoded. Multiple '@' before those host looks to be invalid and should probably be rejected.
beiwei30 commentedon May 21, 2018
I agree with Mark's opinion.
@is used as seperator for userinfo. I think we could close this issue directly.chickenlj commentedon May 22, 2018
We can refer what java.lang.URL does.
I think change to
lastIndexOf()brings no harm, there's also no need to add error promotion. But we should remove the '@' use cases in UT.Merge pull request apache#1808, fix URL parsing problem when user fil…
fix default setting (#4955)