-
Notifications
You must be signed in to change notification settings - Fork 40
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
Extra junk in url's produced by UriMatch.match #16
Comments
Good report. I think you might have a point about the behavior of Uri, but that might be a backwards breaking change. We need to fix this here. I see a few options:
Opinions and patches welcome here. |
I think this is actually a breaking change from Uri in 1.6. The tests are failing on the dev channel, and setting the parts to null fixes it. |
ok, I have a fix, which is the first option. The output from the above code is now |
Cool thanks. I'll back out the workaround in shelf_route when it's ready. On 17 Jul 2014, at 12:44 pm, Justin Fagnani [email protected] ok, I have a fix, which is the first option. The output from the above code — |
did this ever get released? |
Expected
Actual
Cause
UriMatch
builds (viaUriBuilder
) a uri with '' rather than null in fragment and host, plus an empty map for queryParameters.Uri.toString()
assume all those are null or have something interesting in them.Note: I would consider it a bug in Uri to required null queryParameters as empty collections are normally considered better practice than null
The text was updated successfully, but these errors were encountered: