Skip to content
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

fix: Handle InvalidOperationException in StringsHelper.CleanUri() #2373 #2374

Merged
merged 1 commit into from Mar 26, 2024

Conversation

tippmar-nr
Copy link
Member

@tippmar-nr tippmar-nr commented Mar 26, 2024

Description

Adds handling for InvalidOperationException that can be thrown in certain cases (.NET 6 and later) when calling Uri.GetComponents().

Updates unit tests for the Parsing project to target .NET 8 in addition to .NET Framework 4.6.2. Had to make a number of tests run only in .NET Framework due to references to Framework-specific types.

Fixes #2373.

Author Checklist

  • Unit tests, Integration tests, and Unbounded tests completed
  • Performance testing completed with satisfactory results (if required)

Reviewer Checklist

  • Perform code review
  • Pull request was adequately tested (new/existing tests, performance tests)

@tippmar-nr tippmar-nr enabled auto-merge (squash) March 26, 2024 18:22
@tippmar-nr tippmar-nr merged commit 9f1a6af into main Mar 26, 2024
75 of 77 checks passed
@tippmar-nr tippmar-nr deleted the fix/2373-uri-parsing branch March 26, 2024 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NewRelic.Parsing.StringsHelper.CleanURI() throws InvalidOperationException
4 participants