1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/test/controller
Yutaka Kamei 0b7f37fbed
Initialize ActionController::Parameters with @logging_context
`params` contains `@logging_context` in its instance to notify
unpermitted parameters including the context through Rails
Instrumentation API. However, the logging context disappeared when
`params` is updated with some methods, such as `require`, `slice`,
`merge`, etc, so the subscriber of `unpermitted_parameters` could not
get the information.

This patch tries to initialize `Parameters` with `@logging_context`
where it makes sense to pass the information. The following methods will
be affected with this patch:

* `require`
* `deep_dup`
* `slice`
* `except`
* `extract!`
* `transform_values`
* `transform_keys`
* `deep_transform_keys`
* `select`
* `reject`
* `compact`
* `merge`
* `reverse_merge`
2021-12-16 23:11:49 +09:00
..
api Use binread instead of setting file mode manually 2020-05-13 00:05:32 +01:00
controller_fixtures
metal Change ActionDispatch::Response#content_type returning Content-Type header as it is 2019-06-01 09:20:13 +09:00
mime Perform details matching on UnboundTemplates 2021-04-20 14:35:40 -07:00
new_base Replaces the "hash rocket" operator in favor of the newer Ruby syntax when rendering on render 2021-10-03 23:33:56 -03:00
parameters Initialize ActionController::Parameters with @logging_context 2021-12-16 23:11:49 +09:00
request
action_pack_assertions_test.rb url -> URL where apt inside actionpack/ 2019-04-01 22:58:02 +05:30
base_test.rb Change default X-XSS-Protection header to '0' 2021-09-14 14:14:21 +01:00
caching_test.rb Auto-correct rubocop offences 2019-11-24 09:54:47 +09:00
content_type_test.rb Fix content_type= to not discard extra part 2019-08-23 05:22:53 +09:00
default_url_options_with_before_action_test.rb
filters_test.rb chore: fix spelling 2021-04-15 15:49:48 +10:00
flash_hash_test.rb
flash_test.rb Exclude added flash types from action_methods 2021-07-14 08:35:27 +02:00
form_builder_test.rb
helper_test.rb Setup the once autoloader on bootstrap 2021-08-17 05:23:51 +02:00
http_basic_authentication_test.rb Check basic auth credentials contains a colon 2021-09-16 00:29:34 +03:00
http_digest_authentication_test.rb Always use OpenSSL constants for Digest operations 2021-06-30 13:57:54 +02:00
http_token_authentication_test.rb Make Rubocop happy adding extra spaces 2021-05-05 13:19:35 -03:00
integration_test.rb Use image/jpeg instead of non-standard image/jpg 2021-03-05 13:14:11 -05:00
live_stream_test.rb Enable Style/ExplicitBlockArgument cop 2021-09-05 17:06:19 +02:00
localized_templates_test.rb Change ActionDispatch::Response#content_type returning Content-Type header as it is 2019-06-01 09:20:13 +09:00
log_subscriber_test.rb Handle throwing in controller action in log subscriber 2021-01-24 09:52:27 +01:00
logging_test.rb Add ActionController::Base.log_at 2019-09-24 13:47:34 -04:00
metal_test.rb Change default X-XSS-Protection header to '0' 2021-09-14 14:14:21 +01:00
output_escaping_test.rb
parameter_encoding_test.rb Deduplicate some routing data 2020-06-30 18:32:31 +02:00
params_parse_test.rb Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00
params_wrapper_test.rb Adds support to wrap aliased attributed in object hash in params wrapper. 2020-01-20 02:45:40 +05:30
permitted_params_test.rb
redirect_test.rb Raise ActionController::Redirecting::UnsafeRedirectError for unsafe redirect_to redirects. 2021-11-05 03:23:12 +01:00
render_js_test.rb Change ActionDispatch::Response#content_type to return the full Content-Type header 2020-10-30 00:25:49 +00:00
render_json_test.rb Add a test to catch regressions for render_to_string to not override subsequent render 2021-08-23 20:40:21 +01:00
render_test.rb Enable Style/ExplicitBlockArgument cop 2021-09-05 17:06:19 +02:00
render_to_string_test.rb Add a test to catch regressions for render_to_string to not override subsequent render 2021-08-23 20:40:21 +01:00
render_xml_test.rb Change ActionDispatch::Response#content_type to return the full Content-Type header 2020-10-30 00:25:49 +00:00
renderer_test.rb Remove support for templates with "." 2021-04-14 11:27:11 -07:00
renderers_test.rb Revert "Raise when calling render with invalid options" 2020-10-29 13:49:30 -07:00
request_forgery_protection_test.rb Merge pull request #43817 from etiennebarrie/deprecate-non-url-safe-csrf-tokens 2021-12-15 01:48:51 +00:00
required_params_test.rb Clean up checks to see if DidYouMean is defined 2021-07-04 13:43:50 +02:00
rescue_test.rb Add spell checking with codespell as a GitHub Action 2021-05-04 14:46:21 +10:00
resources_test.rb Fix end alignment 2021-03-21 15:46:36 +09:00
route_helpers_test.rb [ci skip] Fix a typo in the comment 2019-12-15 00:36:28 +01:00
routing_test.rb Enable Lint/DuplicateMethods rubocop rule 2021-11-15 13:51:28 -05:00
runner_test.rb
send_file_test.rb Remove IE6-7-8 file download related hack/fix 2021-06-25 19:15:19 +01:00
show_exceptions_test.rb Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00
streaming_test.rb
test_case_test.rb ActionController::TestCase: reset instance variables after each request 2021-12-09 16:22:54 -06:00
url_for_integration_test.rb
url_for_test.rb Consider AC::Parameters as Hash in url_for 2021-06-25 18:07:48 +02:00
url_rewriter_test.rb
webservice_test.rb