Project

General

Profile

Actions

Defect #31428

closed

Gravatar can't be displayed when copy configration.yml.example to configration.yml

Added by Mizuki ISHIKAWA almost 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

Gravatar can't be displayed when copy config/configration.yml.example to config/configration.yml.

Steps to reproduce:
  • Copy configration.yml.example to make configration.yml
  • Start redmine
  • Enable "Use Gravatar user icons" setting
  • Display issues/show
  • Gravatar is not displayed and ActionController::RoutingError occurs
ActionController::RoutingError (No route matches [GET] "/avatar/982b6086063a22d85509455d8e31cca2"):

Cause:
The default for avatar_server_url is 'https://www.gravatar.com' by configuration.rb#L25.
However, the value of avatar_server_url is overwritten with nil because configuration.yml.example#L225 is not commented out.

#9112 is related.
Affected version: trunk.


Related issues

Blocks Redmine - Feature #9112: Libravatar and Gravatar-compatible servers supportClosedGo MAEDA2011-08-24

Actions
Actions #1

Updated by Mizuki ISHIKAWA almost 5 years ago

I think the problem will not occur if you change it as below.

diff --git a/config/configuration.yml.example b/config/configuration.yml.example
index d11bc61469..d04a239aa4 100644
--- a/config/configuration.yml.example
+++ b/config/configuration.yml.example
@@ -222,7 +222,7 @@ default:
   # avatar_server_url: https://www.gravatar.com        # default
   # avatar_server_url: https://seccdn.libravatar.org
   #
-  avatar_server_url:
+  # avatar_server_url:

 # specific configuration options for production environment
 # that overrides the default ones

Actions #2

Updated by Go MAEDA almost 5 years ago

  • Blocks Feature #9112: Libravatar and Gravatar-compatible servers support added
Actions #3

Updated by Go MAEDA almost 5 years ago

  • Status changed from New to Closed
  • Assignee set to Go MAEDA
  • Resolution set to Fixed

Committed the fix. Thank you for detecting and reporting this issue.

Actions

Also available in: Atom PDF