Repository navigation
Drop last CGI usage (ActionController proxy) - #425
Merged
Merged
Conversation
Use OAuth::Helper.form_unescape, widen the CGI-independence spec to any CGI.* call, and add changelog entries for #424 and this change.
Coverage Report for CI Build 47096032039Coverage remained the same at 82.616%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsNo coverage regressions found. Coverage Stats
💛 - Coveralls |
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The existing ActionController spec checks method, URI, and parameters, but never exercises the decoder change. Signature handling of query/form inputs containing +, %2B, malformed escapes, and non-ASCII bytes therefore lacks regression coverage through ActionControllerRequest#parameters_for_signature or signature normalization.
1 open issue
What changed in this PR
Completes the CGI removal started in #424 by replacing the OAuth ActionController proxy’s final CGI call.
Changes:
- Uses
OAuth::Helper.form_unescapefor signature parameter decoding. - Broadens the source guard to detect
CGI.*calls. - Documents both CGI-removal changes.
| File | Description |
|---|---|
spec/integration/oauth_cgi_independence_spec.rb |
Broadens the CGI usage guard. |
lib/oauth/request_proxy/action_controller_request.rb |
Replaces CGI.unescape with the internal helper. |
CHANGELOG.md |
Records helper additions and compatibility fixes. |
Review effort: Balanced
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.

Follow-up to #424.
ActionControllerRequestnow usesOAuth::Helper.form_unescapeinstead ofCGI.unescape, solib/no longer depends onCGIat all.CGI.*call inlib/, not justCGI.parse.Note: the ActionController spec is skipped in my environment (actionpack not installed), so CI should confirm that path.
Built with Cloudroom