gitlab-org--gitlab-foss/spec/features
Douwe Maan fdd7e3f6e9 Merge branch 'stanhu/gitlab-ce-fix-error-500-with-mr-images' into 'master'
Fix Error 500 when creating a merge request that contains an image that was deleted and added

_Originally opened at !4816 by @stanhu._

- - -

## What does this MR do?

This MR fixes an Error 500 when creating a merge request that contains an image that was deleted and added. Before, when displaying the before and after image, the code would always retrieve the image from the parent commit. However, in a diff, this could cause two different problems:
The "before" image may not actually be the image you want to compare against (regression of #14327)
It may appear as though a file was modified when it was really just added during the diff

## Are there points in the code the reviewer needs to double check?

There may be a more elegant to fix this bug.

## What are the relevant issue numbers?

Closes #3893, gitlab-org/gitlab-ee#678

See merge request !7457
2016-11-15 10:22:36 +00:00
..
admin Make specs a bit faster 2016-11-01 14:46:59 +02:00
atom Issues atom feed url reflect filters on dashboard 2016-11-03 18:26:06 +01:00
boards Fixed issue boards when not logged in 2016-11-14 12:12:01 +00:00
dashboard
groups Merge branch '22481-honour-issue-visibility-for-groups' into 'security' 2016-11-09 12:24:13 +01:00
issuables
issues Merge branch 'issue_23548_dev' into 'master' 2016-11-09 12:25:17 +01:00
merge_requests Fix Error 500 when creating a merge request that contains an image that was deleted and added 2016-11-14 15:57:01 +01:00
milestones Stop unauthorized users dragging on milestone page 2016-10-28 21:43:43 +11:00
profiles
projects Merge branch 'issue_20245' into 'master' 2016-11-14 10:05:30 +00:00
protected_branches
security Add missing security specs for raw snippet access 2016-11-05 07:11:50 +00:00
snippets Move spinach public snippet feature to rspec spec 2016-11-04 06:58:40 +00:00
tags
todos Issue #13823: random message when all Todos are Done 2016-11-11 20:59:54 +01:00
users
calendar_spec.rb
ci_lint_spec.rb
commits_spec.rb Merge remote-tracking branch 'upstream/master' into show-status-from-branch 2016-11-04 22:37:44 +08:00
compare_spec.rb
container_registry_spec.rb
dashboard_issues_spec.rb Issues atom feed url reflect filters on dashboard 2016-11-03 18:26:06 +01:00
dashboard_milestones_spec.rb
environments_spec.rb
expand_collapse_diffs_spec.rb Fix expanding a collapsed diff when converting a symlink to a regular file 2016-11-10 18:24:12 +01:00
gitlab_flavored_markdown_spec.rb
global_search_spec.rb Fix broken commits search 2016-11-08 12:03:23 +02:00
groups_spec.rb 19205 Redesign group page header to match new navigation 2016-11-09 17:24:17 -08:00
help_pages_spec.rb
issues_spec.rb implements reset incoming email token on issues modal and account page, 2016-11-07 15:56:18 +00:00
login_spec.rb Fix rubocop build error 2016-10-24 21:44:24 -04:00
markdown_spec.rb
milestone_spec.rb
notes_on_merge_requests_spec.rb
participants_autocomplete_spec.rb
password_reset_spec.rb
profile_spec.rb implements reset incoming email token on issues modal and account page, 2016-11-07 15:56:18 +00:00
projects_spec.rb
protected_branches_spec.rb
runners_spec.rb
search_spec.rb Fix broken commits search 2016-11-08 12:03:23 +02:00
signup_spec.rb
snippets_spec.rb
task_lists_spec.rb
triggers_spec.rb
u2f_spec.rb
unsubscribe_links_spec.rb
users_spec.rb
variables_spec.rb