BigW Consortium Gitlab
Here was the problem: 1. When determining whether a given blob is viewable text, gitlab_git reads the first 1024 bytes and checks with Linguist whether it is a text or binary file. 2. If the blob is text, GitLab will attempt to display it. 3. However, if the text has binary characters after the first 1024 bytes, then GitLab will attempt to load the entire contents, but the encoding will be ASCII-8BIT since there are binary characters. 4. The Error 500 results when GitLab attempts to display a mix UTF-8 and ASCII-8BIT. To fix this, we load as much data as we are willing to display so that the detection will work properly. Requires an update to gitlab_git: gitlab-org/gitlab_git!86 Closes #13826
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
api | Loading commit data... | |
gitlab_stubs | Loading commit data... | |
matchers | Loading commit data... | |
api_helpers.rb | Loading commit data... | |
capybara.rb | Loading commit data... | |
capybara_helpers.rb | Loading commit data... | |
carrierwave.rb | Loading commit data... | |
db_cleaner.rb | Loading commit data... | |
email_format_shared_examples.rb | Loading commit data... | |
email_helpers.rb | Loading commit data... | |
factory_girl.rb | Loading commit data... | |
fake_u2f_device.rb | Loading commit data... | |
filter_spec_helper.rb | Loading commit data... | |
fixture_helpers.rb | Loading commit data... | |
import_spec_helper.rb | Loading commit data... | |
issue_tracker_service_shared_example.rb | Loading commit data... | |
jira_service_helper.rb | Loading commit data... | |
login_helpers.rb | Loading commit data... | |
markdown_feature.rb | Loading commit data... | |
mentionable_shared_examples.rb | Loading commit data... | |
project_hook_data_shared_example.rb | Loading commit data... | |
reference_parser_helpers.rb | Loading commit data... | |
relative_url.rb | Loading commit data... | |
repo_helpers.rb | Loading commit data... | |
select2_helper.rb | Loading commit data... | |
services_shared_context.rb | Loading commit data... | |
setup_builds_storage.rb | Loading commit data... | |
stub_configuration.rb | Loading commit data... | |
stub_gitlab_calls.rb | Loading commit data... | |
stub_gitlab_data.rb | Loading commit data... | |
taskable_shared_examples.rb | Loading commit data... | |
test_env.rb | Loading commit data... | |
wait_for_ajax.rb | Loading commit data... | |
webmock.rb | Loading commit data... | |
workhorse_helpers.rb | Loading commit data... |