The absolute path for files uploaded sent through webhook gives me a 404.

Summary

(Summarize the bug encountered concisely)

The absolute path for files uploaded sent through webhook gives me a 404.

Steps to reproduce

Setup a webhook to a wiki edit. Upload an image to the wiki page. The url to the image sent in the webhook is not accessible. It returns a 404.

Example Project

https://gitlab.com/charuru2009/public-test/wikis/test-uploads

What is the current bug behavior?

Path returns 404.

What is the expected correct behavior?

Path returns image.

I would actually highly prefer if the path is not related to gitlab at all and instead gives me the url of the underlying s3 item.

Relevant logs and/or screenshots

https://gitlab.com/charuru2009/public-test/wikis/test-uploads

Added by @phikai: Relevant Webhook body:

{
  "object_kind": "wiki_page",
  "user": {
    "name": "Administrator",
    "username": "root",
    "avatar_url": "https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80\u0026d=identicon"
  },
  "project": {
    "id":1,
    "name":"Gitlab Test",
    "description":"Maxime repellendus rem quo odit molestias.",
    "web_url":"http://localhost:3001/gitlab-org/gitlab-test",
    "avatar_url":null,
    "git_ssh_url":"ssh://phikai@localhost:2222/gitlab-org/gitlab-test.git",
    "git_http_url":"http://localhost:3001/gitlab-org/gitlab-test.git",
    "namespace":"Gitlab Org",
    "visibility_level":20,
    "path_with_namespace":"gitlab-org/gitlab-test",
    "default_branch":"master",
    "ci_config_path":null,
    "homepage":"http://localhost:3001/gitlab-org/gitlab-test",
    "url":"ssh://phikai@localhost:2222/gitlab-org/gitlab-test.git",
    "ssh_url":"ssh://phikai@localhost:2222/gitlab-org/gitlab-test.git",
    "http_url":"http://localhost:3001/gitlab-org/gitlab-test.git"
  },
  "wiki":{
    "web_url":"http://localhost:3001/gitlab-org/gitlab-test/wikis/home",
    "git_ssh_url":"ssh://phikai@localhost:2222/gitlab-org/gitlab-test.wiki.git",
    "git_http_url":"http://localhost:3001/gitlab-org/gitlab-test.wiki.git",
    "path_with_namespace":"gitlab-org/gitlab-test.wiki",
    "default_branch":"master"
  },
  "object_attributes": {
    "content":"![Screenshot_2019-09-10_08.15.05](http://localhost:3001/uploads/b62e8bd0ea964644cc365641b716f4b7/Screenshot_2019-09-10_08.15.05.png)",
    "format":"markdown",
    "message":"Create extra image page",
    "title":"extra image page",
    "slug":"extra-image-page",
    "url":"http://localhost:3001/gitlab-org/gitlab-test/wikis/extra-image-page",
    "action":"create"
  }
}

Output of checks

This bug happens on GitLab.com TOO.

Edited Sep 11, 2019 by Alex Kalderimis
Assignee Loading
Time tracking Loading