gitlab mr raw_diffs api 不可用

Summary

基于 Show merge request raw diffs 去查看 合并请求 中某个mr 的raw_diffs时候,请求后返回**{"error":"404 Not Found"}**

Steps to reproduce

  • 新建 mr
  • 记录 mr 的 id
  • 记录项目 id
  • 生成个人 token,scope 选择 api 即可
  • 参考Show merge request raw diffs去请求
  • 目前是在 gitlab inc saas 可以获取到详情,但是极狐 saas 和自管理都提示报错。

Example Project

gitlab inc 案例 image
jh saas 案例 image
自管理 案例 image

What is the current bug behavior?

What is the expected correct behavior?

Relevant logs and/or screenshots

Output of checks

Results of GitLab environment info

Expand for output related to GitLab environment info

(For installations with omnibus-gitlab package run and paste the output of:
`sudo gitlab-rake gitlab:env:info`)

(For installations from source run and paste the output of:
`sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)

Results of GitLab application Check

Expand for output related to the GitLab application check

(For installations with omnibus-gitlab package run and paste the output of: sudo gitlab-rake gitlab:check SANITIZE=true)

(For installations from source run and paste the output of: sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true)

(we will only investigate if the tests are passing)

Possible fixes