Project

General

Profile

Actions

Defect #32293

closed

Redmine does not start if optional openid gems are not installed

Defect #32293: Redmine does not start if optional openid gems are not installed

Added by Go MAEDA about 7 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Gems support
Target version:
-
Resolution:
Wont fix
Affected version:

Description

At source:tags/4.0.4/Gemfile#L28, openid gems are stated as optional.

# Optional gem for OpenID authentication
group :openid do
  gem "ruby-openid", "~> 2.3.0", :require => "openid" 
  gem "rack-openid" 
end

However, but Redmine fails to start with the error "LoadError: cannot load such file -- openid" if you skipped installing openid gems.

Steps to reproduce:

$ svn co https://svn.redmine.org/redmine/trunk redmine
$ cd redmine
$ vim config/database.yml  # configure config/database.yml
$ bundle install --without openid
$ bin/rake db:migrate
rake aborted!
LoadError: cannot load such file -- openid
/private/tmp/redmine/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `require'
/private/tmp/redmine/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `block in require'
/private/tmp/redmine/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in `load_dependency'
/private/tmp/redmine/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `require'
/private/tmp/redmine/lib/plugins/open_id_authentication/lib/open_id_authentication.rb:2:in `<top (required)>'
/private/tmp/redmine/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `require'
/private/tmp/redmine/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `block in require'
/private/tmp/redmine/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in `load_dependency'
/private/tmp/redmine/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `require'
/private/tmp/redmine/lib/plugins/open_id_authentication/init.rb:7:in `block in <top (required)>'
/private/tmp/redmine/config/initializers/00-core_plugins.rb:14:in `eval'
/private/tmp/redmine/config/initializers/00-core_plugins.rb:14:in `block in <top (required)>'
/private/tmp/redmine/config/initializers/00-core_plugins.rb:4:in `each'
/private/tmp/redmine/config/initializers/00-core_plugins.rb:4:in `<top (required)>'
.
.
.


Related issues 1 (0 open — 1 closed)

Related to Redmine - Feature #35755: Drop OpenID supportClosedGo MAEDAActions

Updated by Go MAEDA about 7 years ago Actions #1

  • Description updated (diff)

Updated by Mischa The Evil about 7 years ago Actions #2

  • Status changed from New to Confirmed

This has been the case for many years in fact.

I once started work on this, fixed it but never got to posting the polished patch.
I am willing to see if I can lookup this branch if there really is interest in fixing this issue given that this hasn't been reported for so long.

Updated by Go MAEDA about 7 years ago Actions #3

To be honest, I think it is better to drop OpenID support than fixing this issue. In my observation, OpenID is getting obsolete. Many services have stopped being an OpenID provider.

Updated by Marius BĂLTEANU about 7 years ago Actions #4

Go MAEDA wrote:

To be honest, I think it is better to drop OpenID support than fixing this issue. In my observation, OpenID is getting obsolete. Many services have stopped being an OpenID provider.

I agree with you.

Updated by Mischa The Evil about 7 years ago Actions #5

I don't think that this low priority issue alone justifies dropping OpenID support in Redmine altogether. I think that is something that should be discussed in a separate, dedicated issue.

Updated by Go MAEDA over 5 years ago Actions #6

Updated by Go MAEDA almost 5 years ago Actions #7

  • Status changed from Confirmed to Closed
  • Resolution set to Wont fix

The OpenID support has been dropped by #35755 for the upcoming Redmine 5.0.0.

Actions

Also available in: PDF Atom