diff options
author | Sean McGivern <sean@gitlab.com> | 2018-01-30 15:17:44 +0000 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2018-01-30 15:17:44 +0000 |
commit | 382421a9bed1ef0fd1e97f6dcec8a104342ae1d8 (patch) | |
tree | 2be2a81e676fadc4d12e7e2a2e76e7433759da93 /changelogs | |
parent | e74e6fcb5eecb7841a412cb0d3e9627556d83eaf (diff) | |
download | gitlab-ce-382421a9bed1ef0fd1e97f6dcec8a104342ae1d8.tar.gz |
Fix truncated_diff_lines for legacy notes without a line42160-error-500-loading-merge-request-undefined-method-index-for-nil-nilclass
It appears that some legacy diff notes on GitLab.com have invalid line codes,
which means truncated_diff_lines won't work. This is just a band-aid solution,
as neither the diff nor the discussion will display correctly for these notes,
but they won't cause a 500 error.
Diffstat (limited to 'changelogs')
-rw-r--r-- | changelogs/unreleased/42160-error-500-loading-merge-request-undefined-method-index-for-nil-nilclass.yml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/changelogs/unreleased/42160-error-500-loading-merge-request-undefined-method-index-for-nil-nilclass.yml b/changelogs/unreleased/42160-error-500-loading-merge-request-undefined-method-index-for-nil-nilclass.yml new file mode 100644 index 00000000000..64340ab08cd --- /dev/null +++ b/changelogs/unreleased/42160-error-500-loading-merge-request-undefined-method-index-for-nil-nilclass.yml @@ -0,0 +1,5 @@ +--- +title: Fix 500 error when loading a merge request with an invalid comment +merge_request: 16795 +author: +type: fixed |