Project "avatar_url" in hooks now relative path instead of full URL
Summary
Webhook's project.avatar_url
should be a full URL, is now relative path.
We used to be on GitLab CE 9.0 and recently upgraded to GitLab CE 9.3. We have several Webhooks set up for projects to send notifications on push, for example. After the upgrade, we noticed that project icons were not showing up properly. After some investigation, we discovered that in the webhook's data, project.avatar_url
used to contain the full URL of the avatar, but it now only contains a relative path. Given that all other fields called *_url
in these data are full URLs, not relative paths, we expect that this field should, too, still be a full URL, not a relative path.
Steps to reproduce
- Create a webhook for a project which has an avatar uploaded, where you can view the JSON that gets sent to the webhook.
- Trigger the webhook.
- Review the
project.avatar_url
value.
What is the current bug behavior?
project.avatar_url
in webhooks is relative path, e.g. /uploads/system/project/avatar/43/filename.png
.
What is the expected correct behavior?
project.avatar_url
should be a full URL, e.g. https://git.company.com/uploads/system/project/avatar/43/filename.png
.