gitlab-org--gitlab-foss/app/controllers/projects
Stan Hu 384a92b736 Check for valid refs in CommitController before doing anything
Before a 404 would be rendered only after a request to Gitaly would
return with an InvalidArgument error. Now we check that the ref have a
valid format before sending it to Gitaly. In both cases, a 404 is
returned to the user, but this change prevents Gitaly from generating
error noise in production.

Closes https://gitlab.com/gitlab-org/gitaly/issues/1425
2018-12-09 21:56:31 -08:00
..
ci Enable even more frozen string in app/controllers 2018-09-25 22:43:49 -07:00
clusters Resolve controller sharing concern 2018-11-01 19:37:33 +13:00
cycle_analytics Enable even more frozen string in app/controllers 2018-09-25 22:43:49 -07:00
merge_requests Avoid 500's when serializing legacy diff notes 2018-12-04 13:13:22 -02:00
prometheus Enable even more frozen string in app/controllers 2018-09-25 22:43:49 -07:00
registry Enable even more frozen string in app/controllers 2018-09-25 22:43:49 -07:00
serverless Introduce Knative Serverless Tab 2018-12-06 18:08:49 +00:00
settings Use BFG object maps to clean projects 2018-12-06 18:58:00 +00:00
application_controller.rb Restore 403 functionality for external auth (EE) 2018-11-01 19:37:32 +13:00
artifacts_controller.rb Revert "[Rails5] Set request.format for artifacts_controller" 2018-12-03 12:29:01 +01:00
autocomplete_sources_controller.rb Remove instance autocomplete_service variable 2018-11-06 17:24:44 +01:00
avatars_controller.rb Fixed bug with the content disposition with wiki attachments 2018-10-17 15:47:05 +00:00
badges_controller.rb Enable even more frozen string in app/controllers 2018-09-25 22:43:49 -07:00
blame_controller.rb Enable even more frozen string in app/controllers 2018-09-25 22:43:49 -07:00
blob_controller.rb Revert "[Rails5] Explicitly set request.format for blob_controller" 2018-12-03 12:29:01 +01:00
boards_controller.rb Automatically navigate to last board visited 2018-10-26 12:49:16 +00:00
branches_controller.rb Rename project's pipelines relation 2018-12-05 14:39:15 +00:00
build_artifacts_controller.rb Disable artifact validation for download action 2018-10-16 13:01:48 +00:00
builds_controller.rb Enable even more frozen string in app/controllers 2018-09-25 22:43:49 -07:00
clusters_controller.rb Resolve controller sharing concern 2018-11-01 19:37:33 +13:00
commit_controller.rb Adds pagination to pipelines table in merge request page 2018-10-31 17:10:36 +00:00
commits_controller.rb Check for valid refs in CommitController before doing anything 2018-12-09 21:56:31 -08:00
compare_controller.rb Check for valid refs in CommitController before doing anything 2018-12-09 21:56:31 -08:00
cycle_analytics_controller.rb Enable even more frozen string in app/controllers 2018-09-25 22:43:49 -07:00
deploy_keys_controller.rb Fix enabling project deploy key for admins 2018-11-16 23:18:06 -08:00
deploy_tokens_controller.rb Enable even more frozen string in app/controllers 2018-09-25 22:43:49 -07:00
deployments_controller.rb Enable even more frozen string in app/controllers 2018-09-25 22:43:49 -07:00
discussions_controller.rb Enable even more frozen string in app/controllers 2018-09-25 22:43:49 -07:00
environments_controller.rb Use GitLab UI area chart 2018-12-07 17:36:17 -05:00
find_file_controller.rb Enable even more frozen string in app/controllers 2018-09-25 22:43:49 -07:00
forks_controller.rb Enable even more frozen string in app/controllers 2018-09-25 22:43:49 -07:00
git_http_client_controller.rb Enable even more frozen string in app/controllers 2018-09-25 22:43:49 -07:00
git_http_controller.rb Adds tracing messages for slow git pushes 2018-10-25 10:10:45 +01:00
graphs_controller.rb Enable even more frozen string in app/controllers 2018-09-25 22:43:49 -07:00
group_links_controller.rb Enable even more frozen string in app/controllers 2018-09-25 22:43:49 -07:00
hook_logs_controller.rb Enable even more frozen string in app/controllers 2018-09-25 22:43:49 -07:00
hooks_controller.rb Enable even more frozen string in app/controllers 2018-09-25 22:43:49 -07:00
imports_controller.rb Small code refactoring for condition circuit breaking 2018-11-28 10:01:00 +00:00
issues_controller.rb Merge branch 'security-fix-pat-web-access' into 'master' 2018-11-28 19:13:59 -05:00
jobs_controller.rb Add feature flag for workhorse content type calculation 2018-12-06 21:22:39 +00:00
labels_controller.rb Add subscribe filter to labels page 2018-10-04 10:24:50 +02:00
lfs_api_controller.rb Enable even more frozen string in app/controllers 2018-09-25 22:43:49 -07:00
lfs_locks_api_controller.rb Enable even more frozen string in app/controllers 2018-09-25 22:43:49 -07:00
lfs_storage_controller.rb Enable even more frozen string in app/controllers 2018-09-25 22:43:49 -07:00
mattermosts_controller.rb Enable even more frozen string in app/controllers 2018-09-25 22:43:49 -07:00
merge_requests_controller.rb Inline the new checks into normal update error handling 2018-12-07 12:31:36 +00:00
milestones_controller.rb Merge branch 'security-issue_51301' into 'master' 2018-11-28 19:08:42 -05:00
mirrors_controller.rb SSH public-key authentication for push mirroring 2018-11-19 11:46:39 +00:00
network_controller.rb Remove options assignment from ExtractsPath 2018-11-27 12:07:02 -06:00
notes_controller.rb Resolve "Filter discussion (tab) by comments or activity in issues and merge requests" 2018-10-23 09:49:45 +00:00
pages_controller.rb Enable even more frozen string in app/controllers 2018-09-25 22:43:49 -07:00
pages_domains_controller.rb Enable even more frozen string in app/controllers 2018-09-25 22:43:49 -07:00
pipeline_schedules_controller.rb Enable even more frozen string in app/controllers 2018-09-25 22:43:49 -07:00
pipelines_controller.rb Rename project's pipelines relation 2018-12-05 14:39:15 +00:00
pipelines_settings_controller.rb Enable even more frozen string in app/controllers 2018-09-25 22:43:49 -07:00
project_members_controller.rb Enable even more frozen string in app/controllers 2018-09-25 22:43:49 -07:00
protected_branches_controller.rb Enable even more frozen string in app/controllers 2018-09-25 22:43:49 -07:00
protected_refs_controller.rb Enable even more frozen string in app/controllers 2018-09-25 22:43:49 -07:00
protected_tags_controller.rb Enable even more frozen string in app/controllers 2018-09-25 22:43:49 -07:00
raw_controller.rb Fixed bug with the content disposition with wiki attachments 2018-10-17 15:47:05 +00:00
refs_controller.rb Enable even more frozen string in app/controllers 2018-09-25 22:43:49 -07:00
releases_controller.rb Enable even more frozen string in app/controllers 2018-09-25 22:43:49 -07:00
repositories_controller.rb Enable even more frozen string in app/controllers 2018-09-25 22:43:49 -07:00
runner_projects_controller.rb Enable even more frozen string in app/controllers 2018-09-25 22:43:49 -07:00
runners_controller.rb Enable even more frozen string in app/controllers 2018-09-25 22:43:49 -07:00
services_controller.rb Enable even more frozen string in app/controllers 2018-09-25 22:43:49 -07:00
snippets_controller.rb Enable even more frozen string in app/controllers 2018-09-25 22:43:49 -07:00
tags_controller.rb Rename project's pipelines relation 2018-12-05 14:39:15 +00:00
templates_controller.rb Enable even more frozen string in app/controllers 2018-09-25 22:43:49 -07:00
todos_controller.rb Enable even more frozen string in app/controllers 2018-09-25 22:43:49 -07:00
tree_controller.rb Enable even more frozen string in app/controllers 2018-09-25 22:43:49 -07:00
triggers_controller.rb Enable even more frozen string in app/controllers 2018-09-25 22:43:49 -07:00
uploads_controller.rb Enable even more frozen string in app/controllers 2018-09-25 22:43:49 -07:00
variables_controller.rb Enable even more frozen string in app/controllers 2018-09-25 22:43:49 -07:00
wikis_controller.rb Fixed bug with the content disposition with wiki attachments 2018-10-17 15:47:05 +00:00