-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Sharing PathNormalizer Implementations #57178
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
Sharing PathNormalizer Implementations #57178
Conversation
- Follow up on comment: dotnet#56805 (comment) - Moving PathNormalizer from Shared\HttpSys to Shared\PathNormalizer, changing the namespace to AspNetCore.Internal - Shares the code between HttpSys and Kestrel.Core - Remaining Kestrel specific code renamed to PathDecoder - Keeping the tests and benchmarks in Kestrel
8e0e0b8 to
ca16213
Compare
|
Looks like you missed including the shared file in the httpsys csproj |
Co-authored-by: Günther Foidl <gue@korporal.at>
|
Thank you @BrennanConroy I will follow up on that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but I'll wait for @BrennanConroy to take a look to merge.
| <Compile Include="$(SharedSourceRoot)test\Shared.Tests\runtime\Http2\*.cs" LinkBase="Shared\runtime\Http2" /> | ||
| <Compile Include="$(SharedSourceRoot)test\Shared.Tests\runtime\Http3\*.cs" LinkBase="Shared\runtime\Http3" /> | ||
| <Compile Include="$(SharedSourceRoot)TestResources.cs" LinkBase="Shared" /> | ||
| <Compile Include="$(SharedSourceRoot)test\Shared.Tests\PathNormalizerTests.cs" LinkBase="/" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is causing these tests to run again. They should already be running from the Shared.Tests.csproj.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I can remove this line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated. I wonder though how "discoverability" can be improved as the shared files are linked ie. in Kestrel.slnf but changing and finding corresponding unit tests are not that easy as the projects are not linked. Or is there a better slnf to edit.
ie. I did not notice this file exists until the failure in the CI, while I knew about the PathNormaizers.
Sharing PathNormalizer Implementations
Sharing PathNormalizer Implementations between HttpSys and Kestrel servers
Description
Linked to #56534