gitlab-org--gitlab-foss/spec/lib/gitlab
Stan Hu 038be9fffa Fix Error 500s due to encoding issues when Wiki hooks fire
Saved Wiki content goes through the GitalyClient::WikiService, which calls
StringIO#set_encoding on the input stream. The problem is that this call
mutates the encoding of the given string object to ASCII-88BIT, which
causes problems for models expecting the data to still be in UTF-8.

Freezing the input disables this behavior:
https://github.com/ruby/ruby/blob/v2_4_4/ext/stringio/stringio.c#L1583

Closes #50590
2018-08-29 09:46:46 -07:00
..
auth Backport LDAP changes to CE 2018-08-23 15:46:45 +02:00
background_migration Whitelist existing destroy_all offenses 2018-08-16 17:29:37 +02:00
badge Change coverage badge rounding for other CI system consistency 2018-02-01 17:40:26 -06:00
bare_repository_import Refactor Rainbow usage in specs 2018-08-16 21:31:19 +02:00
bitbucket_import Fix Bitbucket Cloud importer omitting replies 2018-08-07 14:34:25 -07:00
bitbucket_server_import Remove date from author line since that is already present in created_at 2018-08-03 06:07:37 -07:00
cache Allow rake cache:clear clearing pipeline status cache 2018-04-10 20:57:00 +08:00
checks Merge branch '27456-improve-feedback-when-dev-cannot-push-to-empty-repo' into 'master' 2018-07-18 11:22:25 +00:00
ci Removes <br> sent from backend on tooltips in jobs 2018-08-28 16:36:25 -05:00
cleanup Backport of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/6860 2018-08-14 19:21:48 +03:00
conflict Include rich_text in diff cache keys 2018-08-28 16:36:25 -05:00
cross_project_access Port read_cross_project ability from EE 2018-02-22 17:11:36 +01:00
cycle_analytics Resolve "Rename the Master role to Maintainer" Backend 2018-07-11 14:36:08 +00:00
data_builder Test for failure_reason in job webhook 2018-08-20 12:54:46 +02:00
database disable_statement_timeout doesn't require any argument anymore 2018-08-11 04:15:59 +02:00
dependency_linker
diff Include rich_text in diff cache keys 2018-08-28 16:36:25 -05:00
downtime_check
email Implement action mailer delivery metrics observer 2018-07-16 13:40:55 +02:00
etag_caching
fogbugz_import
gfm Fix minor spec review comments in uploader specs 2018-07-03 09:57:15 -07:00
git Fix typo 2018-08-18 00:18:58 -07:00
gitaly_client Fix merge requests not showing any diff files for big patches 2018-08-17 13:22:38 -03:00
github_import Refactor GitHub Importer database helpers into helper methods 2018-08-24 05:34:38 -07:00
gitlab_import Fix gitlab import project load 2018-07-23 07:52:15 +00:00
google_code_import Resolve "Rename the Master role to Maintainer" Backend 2018-07-11 14:36:08 +00:00
gpg Updates from rubocop -a 2018-07-09 21:13:08 +08:00
grape_logging/loggers Log queue duration for Grape API calls 2018-05-28 13:56:42 -07:00
graphql Add mutation toggling WIP state of merge requests 2018-07-25 18:37:12 +02:00
graphs Fix failing tests for commit_per_day 2018-07-31 20:25:15 +03:00
hashed_storage Replace 'Sidekiq::Testing.inline!' with 'perform_enqueued_jobs' 2018-07-23 15:34:54 +11:00
health_checks Gitaly metrics check for read/writeability 2018-06-27 08:56:19 +02:00
hook_data Keep #absolute_image_urls as a private instance method 2018-07-17 14:58:14 +01:00
i18n Correctly translate all forms in tests 2018-06-15 14:58:47 +02:00
import Rails5: fix can't quote ActiveSupport::HashWithIndifferentAccess 2018-08-27 20:08:02 +02:00
import_export Resolve "Orphaned upload files are accessible via project exports" 2018-08-28 16:36:25 -05:00
kubernetes Resolve "Mutual SSL Auth For Helm TIller" 2018-08-07 12:39:38 +00:00
legacy_github_import Implement expect_next_instance_of and use it 2018-06-21 16:32:07 +08:00
manifest_import Improve manifest feature after backend review 2018-07-11 12:22:57 +03:00
metrics Cleanup ruby sampler metrics 2018-06-22 14:12:22 +02:00
middleware Add public/uploads/tmp to allowed upload paths 2018-08-21 17:39:46 +02:00
popen Use Process::Status rather than an integer 2018-01-26 19:42:48 +08:00
prometheus Squashed commit of the following: 2018-02-24 00:15:12 +01:00
query_limiting Do not count rails sql cache as queries in query limiting 2018-02-21 16:27:05 +11:00
quick_actions Resolve "Quick actions are case sensitive" 2018-06-13 10:23:57 +00:00
redis
sanitizers Use stable gitlab-styles and eliminate offenses 2018-07-09 21:13:08 +08:00
search Implement filtering by filename on code search 2018-06-19 09:30:09 -06:00
serializer Fix deserializing yaml variables in imported projects 2018-07-19 14:00:35 +02:00
sherlock
sidekiq_logging Add support for Sidekiq JSON logging 2018-04-04 05:04:00 -07:00
sidekiq_middleware Restart Unicorn and Sidekiq when GRPC throws 14:Endpoint read failed 2018-02-26 09:54:20 +00:00
sidekiq_status
sidekiq_versioning Use a dedicated queue for each worker 2017-12-12 17:36:20 +01:00
slash_commands Resolve "Rename the Master role to Maintainer" Backend 2018-07-11 14:36:08 +00:00
sql Add Gitlab::SQL:CTE for easily building CTE statements 2018-06-11 12:44:08 -03:00
storage_check Move the circuitbreaker check out in a separate process 2017-12-08 09:11:39 +01:00
template Fix bugs in Gitlab::Template::Finders preventing instances from BaseTemplate.all from loading content 2018-08-14 22:28:46 +01:00
utils Also verify if extending would override a class method 2018-06-05 13:40:52 +08:00
verify Avoid N+1 queries while processing uploads 2018-06-20 10:38:17 -07:00
view/presenter Resolve "Show failure_reason in jobs view content section" 2018-04-19 07:20:53 +00:00
action_rate_limiter_spec.rb Address review comments with playing pipeline scheduler 2017-12-12 17:12:45 -08:00
allowable_spec.rb
app_logger_spec.rb Memoize GitLab logger to reduce open file descriptors 2017-10-24 14:06:23 +03:00
asciidoc_spec.rb Update asciidoctor to 1.5.6.2 2018-03-28 00:54:49 +09:00
auth_spec.rb Use proper auth_scope for deploy token 2018-04-07 10:35:00 +02:00
background_migration_spec.rb
blame_spec.rb
build_access_spec.rb Allow triggered builds git access 2018-05-11 15:20:11 +02:00
changes_list_spec.rb
chat_name_token_spec.rb
ci_access_spec.rb
closing_issue_extractor_spec.rb Merge branch 'update-issue-closing-pattern' into 'master' 2018-07-16 14:46:39 +00:00
color_schemes_spec.rb
contributions_calendar_spec.rb Count discussions on issues and merge requests as contributions for the contributions calendar 2018-03-07 10:16:38 +00:00
cross_project_access_spec.rb Port read_cross_project ability from EE 2018-02-22 17:11:36 +01:00
current_settings_spec.rb Make Gitlab::CurrentSettings.current_application_settings return cached settings early if they exist without issuing any DB query 2018-06-07 17:23:49 +02:00
daemon_spec.rb
database_spec.rb Backport various EE changes to Gitlab::Database 2018-07-24 13:25:01 +02:00
dependency_linker_spec.rb
downtime_check_spec.rb
encoding_helper_spec.rb Fix Error 500s due to encoding issues when Wiki hooks fire 2018-08-29 09:46:46 -07:00
exclusive_lease_helpers_spec.rb Fix static analysys 2018-07-04 13:28:18 +09:00
exclusive_lease_spec.rb Add rake task to cleanup any existing exclusive lease 2018-03-09 13:32:18 +00:00
fake_application_settings_spec.rb Allow password authentication to be disabled entirely 2017-11-23 13:16:14 +00:00
favicon_spec.rb Read asset host from ActionController::Base instead of application config 2018-06-29 11:22:51 +02:00
file_detector_spec.rb Cache issuable template names 2017-10-12 13:26:03 +01:00
file_finder_spec.rb Implement filtering by filename on code search 2018-06-19 09:30:09 -06:00
git_access_spec.rb Remove Repository#path memoization 2018-07-12 09:49:25 +00:00
git_access_wiki_spec.rb Deny repository disk access in development and test 2018-06-14 11:18:25 +00:00
git_ref_validator_spec.rb Prevent branches or tags from starting with invalid characters (e.g. -, .) 2017-10-05 14:56:36 -07:00
git_spec.rb add support for the commit reference filter 2017-12-07 09:01:37 -05:00
gitaly_client_spec.rb Add a gRPC health check to ensure Gitaly is up 2018-01-24 15:47:27 -08:00
github_import_spec.rb Refactor GitHub Importer database helpers into helper methods 2018-08-24 05:34:38 -07:00
gl_repository_spec.rb
gpg_spec.rb Reject GPG keys that have e-mail or names with non-valid UTF-8 encodings 2018-06-05 14:39:44 -07:00
group_hierarchy_spec.rb Make it possible to limit ancestors in a GroupHierarchy 2017-10-04 22:49:42 +02:00
highlight_spec.rb
http_io_spec.rb Fix and add specs for testing metadata entry 2018-07-09 14:19:52 +02:00
http_spec.rb Raise more descriptive errors when URLs are blocked 2018-04-02 17:20:01 +02:00
i18n_spec.rb
identifier_spec.rb Allow git pull/push on project redirects 2017-12-08 17:42:43 +00:00
import_sources_spec.rb Fix specs for Bitbucket Server 2018-07-17 21:14:11 -07:00
incoming_email_spec.rb Add anchor for incoming email regex, closes 44989 2018-05-11 14:51:21 -07:00
insecure_key_fingerprint_spec.rb Backport authorized_keys branch 'find-key-by-fingerprint' 2018-01-08 20:34:16 +00:00
issuable_metadata_spec.rb Fail when issuable_meta_data is called on an unlimited collection 2017-11-07 16:26:55 +00:00
issuable_sorter_spec.rb
issuables_count_for_state_spec.rb Re-use issue/MR counts for the pagination system 2017-09-05 11:53:45 +02:00
job_waiter_spec.rb
json_logger_spec.rb Bring JsonLogger to CE 2018-07-20 12:50:20 -07:00
kubernetes_spec.rb Fix an exception seen using the online terminal 2018-07-11 15:44:34 +01:00
language_detection_spec.rb Add repository languages for projects 2018-08-01 18:58:29 +02:00
lazy_spec.rb
lfs_token_spec.rb
markup_helper_spec.rb
metrics_spec.rb use Gitlab::UserSettings directly as a singleton instead of including/extending it 2018-02-02 18:39:55 +00:00
multi_collection_paginator_spec.rb Always use the same order specs for MultiCollectionPaginator 2017-10-11 11:27:59 +02:00
omniauth_initializer_spec.rb OmniauthInitializer created to improve devise.rb 2018-03-20 17:39:52 +00:00
optimistic_locking_spec.rb
other_markup_spec.rb
otp_key_rotator_spec.rb
pages_client_spec.rb Add gitlab-pages admin ping rake task 2018-04-27 11:01:54 +00:00
path_regex_spec.rb Add a minimal GraphQL API 2018-06-05 20:47:42 +02:00
performance_bar_spec.rb Always allow the performance bar to be enabled for admins 2018-04-02 14:19:19 -05:00
plugin_spec.rb Refactor plugins feature and make some doc improvements 2018-02-28 12:16:23 +02:00
polling_interval_spec.rb
popen_spec.rb Avoid process deadlock in popen by consuming input pipes 2018-07-12 16:21:30 -07:00
profiler_spec.rb Expose a clean_backtrace method from Gitlab::Profiler 2018-06-15 13:29:55 +01:00
project_authorizations_spec.rb Resolve "Rename the Master role to Maintainer" Backend 2018-07-11 14:36:08 +00:00
project_search_results_spec.rb Fixing bug with wiki ref in ProjectSearchResults 2018-07-20 13:49:30 +00:00
project_template_spec.rb Simplify project page 2017-10-11 09:07:19 +00:00
project_transfer_spec.rb Refactor specs 2018-03-13 14:45:17 -07:00
prometheus_client_spec.rb Backport custom metrics ce components 2018-02-23 17:58:40 +00:00
query_limiting_spec.rb Disable query limiting warnings for now on GitLab.com 2018-02-12 11:41:03 -08:00
reference_counter_spec.rb Implement /internal/post_receive unified endpoint for PostReceive tasks 2017-08-31 11:31:45 -03:00
reference_extractor_spec.rb Replace '.team << [user, role]' with 'add_role(user)' in specs 2017-12-22 19:18:28 +11:00
regex_spec.rb Ensure users can't create environments with leading or trailing slashes (Fixes #39885) 2018-02-13 11:07:12 +11:00
repo_path_spec.rb Remove Gitlab::RepoPath.strip_storage_path 2018-05-11 13:57:43 +02:00
repository_cache_adapter_spec.rb Expire correct method caches after HEAD changed 2018-06-29 17:41:57 +02:00
repository_cache_spec.rb Cache #can_be_resolved_in_ui? git operations 2018-03-08 11:54:21 -03:00
request_context_spec.rb
request_forgery_protection_spec.rb
request_profiler_spec.rb
route_map_spec.rb
routing_spec.rb
search_results_spec.rb Use limited count queries also for scoped searches 2018-03-05 13:25:56 +00:00
sentry_spec.rb Method to track recoverable exceptions in sentry 2018-04-17 11:39:23 +02:00
shard_health_cache_spec.rb Bring Gitlab::ShardHealthCache to CE 2018-06-27 21:43:23 +02:00
shell_spec.rb Use Gitaly for fetches and creating bundles 2018-07-09 12:50:17 +02:00
sidekiq_config_spec.rb Use a dedicated queue for each worker 2017-12-12 17:36:20 +01:00
sidekiq_status_spec.rb Simplify check for running job on Redis 2017-10-13 10:17:41 +02:00
sidekiq_throttler_spec.rb
sidekiq_versioning_spec.rb Use a dedicated queue for each worker 2017-12-12 17:36:20 +01:00
snippet_search_results_spec.rb
ssh_public_key_spec.rb Validate SSH keys through the sshkey gem 2018-02-16 11:32:08 -05:00
string_placeholder_replacer_spec.rb Projects and groups badges API 2018-03-05 17:51:40 +00:00
string_range_marker_spec.rb
string_regex_marker_spec.rb Render htmlentities correctly for links not supported by Rinku 2018-02-21 19:37:08 +01:00
tcp_checker_spec.rb Add a gitlab:tcp_check rake task 2017-12-13 15:53:32 +00:00
themes_spec.rb Restore navigation theme order 2018-06-07 12:24:57 +00:00
untrusted_regexp_spec.rb Simplify untrusted regexp factory method 2018-05-18 10:14:10 +02:00
upgrader_spec.rb
uploads_transfer_spec.rb
url_blocker_spec.rb Block link-local addresses in URLBlocker 2018-08-28 16:36:25 -05:00
url_builder_spec.rb Sidebar Milestone - Fix wrong URL when selecting a parent group milestone 2018-06-12 17:22:12 -06:00
url_sanitizer_spec.rb Escape username and password in UrlSanitizer#full_url 2018-07-19 03:28:38 -07:00
usage_data_spec.rb Added count for label, assignee, and milestone lists 2018-08-21 08:21:01 -07:00
user_access_spec.rb Resolve "Rename the Master role to Maintainer" Backend 2018-07-11 14:36:08 +00:00
utils_spec.rb Backport of EE !4989 2018-04-11 22:05:07 -05:00
version_info_spec.rb
visibility_level_spec.rb Avoid error when no restricted levels are defined 2018-02-02 13:17:32 +01:00
wiki_file_finder_spec.rb Add ability to search wiki titles 2018-06-04 11:41:37 +00:00
workhorse_spec.rb Remove last flags from Blob and Workhorse 2018-07-11 12:59:15 +02:00