Tracking #731
closedredmine: disable usage of non-free gravatar service
100%
Description
The projects.duckcorp.org
instance of redmine uses the non-free gravatar service.
Usage of the service should be disabled or another instance backed by a free service should be used.
Note that the next release of redmine will allow to choose another instance than gravatar.
Updated by Pierre-Louis Bonicoli about 3 years ago
- Status changed from New to In Progress
- % Done changed from 0 to 50
One patch added in toushirou
patches/redmine
directory: libravatar.patch
--- app/helpers/application_helper.rb 2021-09-10 12:56:09.724361981 +0200 +++ app/helpers/application_helper.rb 2021-09-10 12:58:51.308796985 +0200 @@ -1478,7 +1478,7 @@ # Returns a link to edit user's avatar if avatars are enabled def avatar_edit_link(user, options={}) if Setting.gravatar_enabled? - url = "https://gravatar.com" + url = "https://seccdn.libravatar.org" link_to avatar(user, {:title => l(:button_edit)}.merge(options)), url, :target => '_blank' end end --- lib/plugins/gravatar/lib/gravatar.rb 2021-09-10 12:56:52.641540613 +0200 +++ lib/plugins/gravatar/lib/gravatar.rb 2021-09-10 12:58:34.076324401 +0200 @@ -61,7 +61,7 @@ # Returns the base Gravatar URL for the given email hash def gravatar_api_url(hash) - "//www.gravatar.com/avatar/#{hash}" + "//seccdn.libravatar.org/avatar/#{hash}" end # Return the gravatar URL for the given email address.
Updated by Pierre-Louis Bonicoli about 3 years ago
I didn't update the labels displayed in Administration->settings->Display (setting_gravatar_enabled: Use Gravatar user icons
and setting_gravatar_default: Default Gravatar image
).
@Marc Dequènes: does that look ok to you?
Updated by Marc Dequènes about 3 years ago
- Tracker changed from Bug to Tracking
- Category set to Service :: Web
- Status changed from In Progress to Blocked
- % Done changed from 50 to 90
Sorry for the lag. Yes it looks fine and it has been working well so far.
Let's keep this ticket open in order to remind us to check the setting when we are able to switch to a newer version on Bullseye.
Updated by Marc Dequènes over 1 year ago
- Status changed from Blocked to Resolved
- % Done changed from 90 to 100
In the version in Bookworm there is now a setting to change the URL. I updated the redmine role to take this into account.