gitlab-org--gitlab-foss/spec/support/helpers
Stan Hu 6552197eec Fix error creating a merge request when diff includes a null byte
If a diff happened to include a single null byte anywhere, insertion
into the database would fail with an Error 500 since the column is text
and not a byte array. To fix this, we mark the diff as binary if we
detect a single null byte and Base64-encode it.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/57710
2019-03-14 12:55:45 -07:00
..
features
api_helpers.rb
assets_helpers.rb
bare_repo_operations.rb
board_helpers.rb
capybara_helpers.rb
ci_artifact_metadata_generator.rb
cookie_helper.rb
cycle_analytics_helpers.rb
database_connection_helpers.rb
devise_helpers.rb
drag_to_helper.rb
dropzone_helper.rb
email_helpers.rb
exclusive_lease_helpers.rb
expect_next_instance_of.rb
expect_offense.rb
fake_blob_helpers.rb
fake_migration_classes.rb
fake_u2f_device.rb
file_mover_helpers.rb
filter_spec_helper.rb
filtered_search_helpers.rb
fixture_helpers.rb
git_helpers.rb
git_http_helpers.rb
gitlab_verify_helpers.rb
gpg_helpers.rb
graphql_helpers.rb
import_spec_helper.rb
input_helper.rb
inspect_requests.rb
issue_helpers.rb
javascript_fixtures_helpers.rb
jira_service_helper.rb
key_generator_helper.rb
kubernetes_helpers.rb
ldap_helpers.rb
live_debugger.rb
login_helpers.rb
markdown_feature.rb
merge_request_diff_helpers.rb
merge_request_helpers.rb
migrations_helpers.rb
mobile_helpers.rb
note_interaction_helpers.rb
notification_helpers.rb
project_forks_helper.rb
prometheus_helpers.rb
query_recorder.rb
quick_actions_helpers.rb
rake_helpers.rb
reactive_caching_helpers.rb
redis_without_keys.rb
reference_parser_helpers.rb
repo_helpers.rb Fix error creating a merge request when diff includes a null byte 2019-03-14 12:55:45 -07:00
routes_helpers.rb
search_helpers.rb
seed_helper.rb
seed_repo.rb
select2_helper.rb
selection_helper.rb
sorting_helper.rb
stub_configuration.rb
stub_env.rb
stub_feature_flags.rb
stub_gitlab_calls.rb
stub_gitlab_data.rb
stub_metrics.rb
stub_object_storage.rb
terms_helper.rb
test_env.rb
test_request_helpers.rb
upload_helpers.rb
user_login_helper.rb
wait_for_requests.rb
wiki_helpers.rb
workhorse_helpers.rb