-
Notifications
You must be signed in to change notification settings - Fork 334
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
With 4.x release behavior of decoding url parameters (path and query parameters) has changed. #393
Comments
I agree code is related to encoding and not decoding and it is just my understanding, would need to debug (owin and webapi assemblies both) to ascertain that #104 is the reason for this issue.
I believe WebApi pipeline is also taking care of decoding at 1 level and that is the reason the difference in this encoding of the path is creating a difference at Action and ActionFilter. |
We are observing a similar behavior updating from version 3.0.1 to 4.1.1. Previously are sending requests that can look like this, (note the percentage symbol): The object value is extracted using the [FromUri] attribute On version 3.0.1, the [FromUri] attribute resolves to: Device-:%25_*?a689c3ce-90a3-4317-a260-dfc61ad3e1f6 On version 4.1.1 it resolves to Device-:%_*?a689c3ce-90a3-4317-a260-dfc61ad3e1f6 |
I'm seeing a similar issue upgrading from In Here's a walkthrough of the current behavior:
Here's a walkthrough of the expected behavior:
As it stands, the only work around I have is to violate the OWIN specification be rewriting |
I recently updated the version of Microsoft.Owin.dll from 3.0 to 4.1 and found a couple of issues that impact backward compatibility.
I have this url
http://localhost:${Port}/api/values/${Parameter}/${Parameter}?query1=${Parameter}&query2=${Parameter}&query3=${Parameter}
, where parameter contains url encoded characters (trying to pass URL reserved characters in the route as path and query parameter.Simple Controller and it's action is defined as
For example:
Parameter = :?#[]@"!$&'()*,;=
The above table is just a sample and there are other possible scenarios like adding '+' & '/' to the parameter string and encoding three times at the client side before making a request.
I see a couple of issues
After looking at a code and after several trials, I believe this behavior in 4.x was introduced with a resolution of bug 104
I have placed sample server and test client code at GitHub repo for reference (it also includes other scenarios to verify) AspNetKatana-Issue
The text was updated successfully, but these errors were encountered: