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
eileencodes 92209356c3 Path parameters should default to UTF8
This commit changes the behavior such the path_params now default to
UTF8 just like regular parameters. This also changes the behavior such
that if a path parameter contains invalid UTF8 it returns a 400 bad
request. Previously the behavior was to encode the path params as binary
but that's not the same as query params.

So this commit makes path params behave the same as query params.

It's important to test with a path that's encoded as binary because
that's how paths are encoded from the socket. The test that was altered
was changed to make the behavior for bad encoding the same as query
params. We want to treat path params the same as query params. The params
in the test are invalid UTF8 so they should return a bad request.

Fixes #29669

*Eileen M. Uchitelle, Aaron Patterson, & Tsukuru Tanimichi*
2017-08-01 13:28:57 -04:00
..
api Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
controller_fixtures
metal Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
mime Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
new_base Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
parameters Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
request Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
action_pack_assertions_test.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
base_test.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
caching_test.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
content_type_test.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
default_url_options_with_before_action_test.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
filters_test.rb Make actionpack frozen string friendly 2017-07-24 23:38:04 +03:00
flash_hash_test.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
flash_test.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
force_ssl_test.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
form_builder_test.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
helper_test.rb Make actionpack frozen string friendly 2017-07-24 23:38:04 +03:00
http_basic_authentication_test.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
http_digest_authentication_test.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
http_token_authentication_test.rb Make actionpack frozen string friendly 2017-07-24 23:38:04 +03:00
integration_test.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
live_stream_test.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
localized_templates_test.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
log_subscriber_test.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
metal_test.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
output_escaping_test.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
parameter_encoding_test.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
params_wrapper_test.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
permitted_params_test.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
redirect_test.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
render_js_test.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
render_json_test.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
render_test.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
render_xml_test.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
renderer_test.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
renderers_test.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
request_forgery_protection_test.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
required_params_test.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
rescue_test.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
resources_test.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
routing_test.rb Path parameters should default to UTF8 2017-08-01 13:28:57 -04:00
runner_test.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
send_file_test.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
show_exceptions_test.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
streaming_test.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
test_case_test.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
url_for_integration_test.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
url_for_test.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
url_rewriter_test.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
webservice_test.rb Make actionpack frozen string friendly 2017-07-24 23:38:04 +03:00