-
Notifications
You must be signed in to change notification settings - Fork 63
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
NewRelic.Parsing.StringsHelper.CleanURI() throws InvalidOperationException #2373
Labels
bug
Something isn't working
Comments
tippmar-nr
added a commit
that referenced
this issue
Mar 26, 2024
4 tasks
tippmar-nr
added a commit
that referenced
this issue
Mar 26, 2024
This was referenced Jul 7, 2024
This was referenced Jul 21, 2024
This was referenced Aug 4, 2024
This was referenced Aug 25, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
The .NET agent throws an unhandled exception
when presented with a Uri that has been created with
UriCreationOptions.DangerousDisablePathAndQueryCanonicalization = true
:Expected Behavior
The .NET agent should handle the exception.
Steps to Reproduce
Requires a .NET 6+ application that somehow sets
UriCreationOptions.DangerousDisablePathAndQueryCanonicalization = true
. It's not clear how one might go about setting that flag, but the solution is pretty clear -- handle theInvalidOperationException
and returnCleanUri(uri.ToString())
instead.Additional context
Customer reported issue
For Maintainers Only or Hero Triaging this bug
Suggested Priority (P1,P2,P3,P4,P5):
P2
Suggested T-Shirt size (S, M, L, XL, Unknown):
S
The text was updated successfully, but these errors were encountered: