Replace Uri.UnescapeDataString with UrlDecoder in FormReader - #68241
Closed
4bitsteams wants to merge 18 commits into
Closed
Replace Uri.UnescapeDataString with UrlDecoder in FormReader#682414bitsteams wants to merge 18 commits into
4bitsteams wants to merge 18 commits into
Conversation
Co-authored-by: Weihan Li <weihanli@outlook.com>
Upgrade gradle-wrapper.properties to use a more recent version of Gradle to improve build performance and compatibility with modern Java tooling. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Complete the OpenAPI dotnet-openapi tool by registering the AddProjectCommand that was previously implemented but not wired up. This enables users to add OpenAPI references from project files.
Use the more accurate UrlDecoder for URL form data decoding instead of Uri.UnescapeDataString which has known limitations with UTF-8 sequences and cross-platform behavior differences.
Implement error handling for Redis connection failures in cache retrieval operations. This addresses TODO comments and improves error diagnostics.
Update Gradle wrapper from 6.5 to 8.9 for SignalR Java client
Re-enable 21 previously quarantined tests in Redis caching. Tests verify critical cache functionality including expiration handling and set/remove operations.
Enhance error handling and documentation for server disconnection scenarios: 1. Clarify comment about remote server disconnection handling during cross-server invocations. When a connection is on another server, the system publishes the invocation and waits for a response. If the remote server becomes unavailable, this operation may timeout. 2. Improve connection abort callback to provide clearer error message when connection is prematurely disconnected. Replace generic "Connection disconnected" with "Connection disconnected before result received" to better communicate the specific scenario. These changes improve observability and make disconnection scenarios more explicit for debugging distributed SignalR deployments. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Enhance error handling and documentation for server disconnection scenarios in distributed SignalR deployments with Redis backplane.
- GPG Key ID: 4C5E6AF9415EC46C - Email: rubelislam301@gmail.com - Auto-signing: Enabled - Ready for: GitHub integration + Vigilant mode Next: Add public key to GitHub and enable Vigilant Mode
Use UrlDecoder for more accurate URL form data decoding: - Properly handles UTF-8 percent-encoded sequences - Consistent cross-platform behavior - Addresses performance concerns raised in review - Removes unnecessary intermediate operations - Resolves TODO comment about accuracy The isFormEncoding:true parameter handles '+' to space conversion, eliminating the need for separate Replace operation. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Contributor
Author
|
@gfoidl - This is the cleaned version addressing your feedback on performance |
Member
|
Thanks for the contribution. We will not be moving forward with this PR. It has no associated issue and contains extensive changes unrelated to the stated |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replaces the deprecated
Uri.UnescapeDataStringwith the more accurateUrlDecoderfor URL form data decoding in the FormReader class.Changes
UrlDecoder.DecodeInPlace()withisFormEncoding: truefor proper URL form encoding handlingBenefits
Addresses Feedback
This PR addresses review feedback by: