Defect #17887

NoMethodError (undefined method `downcase' for nil:NilClass):

Added by Tristan S. almost 5 years ago. Updated almost 4 years ago.

Status:Needs feedbackStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:SCM
Target version:-
Resolution:No feedback Affected version:2.5.2

Description

When I follow the instructions at http://www.redmine.org/projects/redmine/wiki/HowTo_keep_in_sync_your_git_repository_for_redmine and point the repository to the just mirrored git repo, I get a Redmine 500 error, with the following in the production log:

NoMethodError (undefined method `downcase' for nil:NilClass):
app/models/changeset.rb:100:in `scan_for_issues'
app/models/repository/git.rb:218:in `save_revision'
app/models/repository/git.rb:207:in `block (2 levels) in save_revisions'
app/models/repository/git.rb:204:in `block in save_revisions'
app/models/repository/git.rb:203:in `each'
app/models/repository/git.rb:203:in `save_revisions'
app/models/repository/git.rb:153:in `fetch_changesets'
app/controllers/repositories_controller.rb:114:in `show'

History

#1 Updated by Tristan S. almost 5 years ago

Environment:
Redmine version 2.5.1.stable.13174
Ruby version 2.0.0-p481 (2014-05-08) [x86_64-linux]
Rails version 3.2.18
Environment production
Database adapter Mysql2
SCM:
Subversion 1.8.8
Git 1.9.1

#2 Updated by Toshi MARUYAMA almost 5 years ago

  • Category changed from Importers to SCM

#3 Updated by Toshi MARUYAMA almost 5 years ago

  • Status changed from New to Needs feedback

Log says Setting.commit_ref_keywords is nil.
source:tags/2.5.2/app/models/changeset.rb#L118
It seems your Redmine installation is broken.

#4 Updated by Tristan S. almost 5 years ago

Toshi MARUYAMA wrote:

It seems your Redmine installation is broken.

It's a fresh install... Just updated (via "svn update") to 2.5.2.stable.13410 and still the same problem. How is my installation broken?

#5 Updated by Masato NODA almost 5 years ago

I guess that settings table has NULL value when name = 'commit_ref_keywords' or your config/setting.yml is broken.
Because, if settings table doesn't have row when name = 'commit_ref_keywords', Setting.commit_ref_keywords returns value of commit_ref_keywords.default in config/setting.yml

#6 Updated by Terry Hwang almost 5 years ago

Masato NODA wrote:

I guess that settings table has NULL value when name = 'commit_ref_keywords' or your config/setting.yml is broken.
Because, if settings table doesn't have row when name = 'commit_ref_keywords', Setting.commit_ref_keywords returns value of commit_ref_keywords.default in config/setting.yml

Hello Masato NODA and Tristan,
I have same problem in one of two redmine systems only when I connected HTTPS subversion.
The db table had a value "refs,references,IssueID" for name "commit_ref_keywords".

working system's environment:
Environment:
Redmine version 2.5.1.stable
Ruby version 1.9.3-p231 (2012-05-25) [i386-mingw32]
Rails version 3.2.17
Environment production
Database adapter Mysql2
SCM:
Subversion 1.8.9
Git 1.9.0
Filesystem
Redmine plugins:
no plugin installed

System not working:
Environment:
Redmine version 2.5.2.stable
Ruby version 2.0.0-p481 (2014-05-08) [i386-mingw32]
Rails version 3.2.19
Environment production
Database adapter Mysql2
SCM:
Subversion 1.8.10
Git 1.9.4
Filesystem
Redmine plugins:
clipboard_image_paste 1.8
issue_id 0.0.1b
redmine_agile 1.3.3
redmine_code_review 0.6.3
redmine_didyoumean 1.2.0
redmine_hudson 2.1.2
redmine_monitoring_controlling 0.1.1
redmine_wiki_lists 0.0.3
sidebar_hide 0.0.7

#7 Updated by Jan Niggemann (redmine.org team member) almost 4 years ago

  • Resolution set to No feedback

Also available in: Atom PDF