Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Share common Uri redaction logic in Http #114483

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

Merged
merged 2 commits into from
Apr 10, 2025

Conversation

MihaZupan
Copy link
Member

We had duplicate logic between the client factory and http, and the Redirect redaction was different (didn't account for user info & fragment).

This makes all the places share the same logic.

@MihaZupan MihaZupan added this to the 10.0.0 milestone Apr 10, 2025
@Copilot Copilot AI review requested due to automatic review settings April 10, 2025 11:20
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 9 out of 12 changed files in this pull request and generated no comments.

Files not reviewed (3)
  • src/libraries/Microsoft.Extensions.Http/src/Microsoft.Extensions.Http.csproj: Language not supported
  • src/libraries/System.Net.Http/src/System.Net.Http.csproj: Language not supported
  • src/libraries/System.Net.Http/tests/UnitTests/System.Net.Http.Unit.Tests.csproj: Language not supported
Comments suppressed due to low confidence (1)

src/libraries/System.Net.Http/tests/FunctionalTests/TelemetryTest.cs:937

  • [nitpick] Verify that the computed expectedUriTail correctly reflects the updated redaction behavior (i.e. excluding any URI fragments) and aligns with the new centralized logic in UriRedactionHelper.
string expectedUriTail = uriTail;

Copy link
Contributor

Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

@MihaZupan MihaZupan requested a review from a team April 10, 2025 11:23
Co-authored-by: Anton Firszov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants