"No Avatar" image isn't displayed anymore in comments due to erroneously added parameter

Summary

After upgrading to 11.2.0, the "No Avatar" image is no longer displayed.

Steps to reproduce

  • Disable Gravatars on your installation
  • Have a user with no avatar set
  • Comment on a MR or an issue with that user

There is no user icon shown next to that comment (Chrome 69 beta, Gitlab 11.2.0)

Example Project

(Example project not possible on Gitlab.com, because Gravatars are enabled here)

What is the current bug behavior?

Browser shows a "broken image" icon instead

What is the expected correct behavior?

"No avatar" icon (grey generic user icon) is shown.

Possible fixes

The bug happens because of a ?width=40 which gets erroneously appended to the data:image/png URL.

Edited Aug 27, 2018 by Henning Hoefer
Assignee Loading
Time tracking Loading