Skip to content

error 500 on ssh key add #212

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jekel opened this issue Jun 9, 2014 · 1 comment
Closed

error 500 on ssh key add #212

jekel opened this issue Jun 9, 2014 · 1 comment
Assignees
Labels

Comments

@jekel
Copy link

jekel commented Jun 9, 2014

hello
when i'm trying to add any(valid or not) new public key on my settings page - redmine gives me 500 error
here is the error log:

Started POST "/my/public_keys" for ... at 2014-06-09 18:55:38 +0400
Processing by GitolitePublicKeysController#create as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"...", "gitolite_public_key"=>{"title"=>"asdfasd", "key_type"=>"0", "delete_when_unused"=>"1", "key"=>"asdf"}, "cre
  Current user: 
Completed 500 Internal Server Error in 72.8ms


NoMethodError (undefined method `[]' for nil:NilClass):
  plugins/redmine_git_hosting/app/models/gitolite_public_key.rb:208:in `key_uniqueness'
  activesupport (3.2.17) lib/active_support/callbacks.rb:495:in `_run__2454677585896258442__validate__3626413234657450090__callbacks'
  activesupport (3.2.17) lib/active_support/callbacks.rb:405:in `__run_callback'
  activesupport (3.2.17) lib/active_support/callbacks.rb:385:in `_run_validate_callbacks'
  activesupport (3.2.17) lib/active_support/callbacks.rb:81:in `run_callbacks'
  activemodel (3.2.17) lib/active_model/validations.rb:228:in `run_validations!'
  activemodel (3.2.17) lib/active_model/validations/callbacks.rb:53:in `block in run_validations!'
  activesupport (3.2.17) lib/active_support/callbacks.rb:436:in `_run__2454677585896258442__validation__3626413234657450090__callbacks'
  activesupport (3.2.17) lib/active_support/callbacks.rb:405:in `__run_callback'
  activesupport (3.2.17) lib/active_support/callbacks.rb:385:in `_run_validation_callbacks'
  activesupport (3.2.17) lib/active_support/callbacks.rb:81:in `run_callbacks'
  activemodel (3.2.17) lib/active_model/validations/callbacks.rb:53:in `run_validations!'
  activemodel (3.2.17) lib/active_model/validations.rb:195:in `valid?'
  activerecord (3.2.17) lib/active_record/validations.rb:69:in `valid?'
  activerecord (3.2.17) lib/active_record/validations.rb:77:in `perform_validations'
  activerecord (3.2.17) lib/active_record/validations.rb:50:in `save'
  activerecord (3.2.17) lib/active_record/attribute_methods/dirty.rb:22:in `save'
  activerecord (3.2.17) lib/active_record/transactions.rb:259:in `block (2 levels) in save'
  activerecord (3.2.17) lib/active_record/transactions.rb:313:in `block in with_transaction_returning_status'
  activerecord (3.2.17) lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
  activerecord (3.2.17) lib/active_record/transactions.rb:208:in `transaction'
  activerecord (3.2.17) lib/active_record/transactions.rb:311:in `with_transaction_returning_status'
  activerecord (3.2.17) lib/active_record/transactions.rb:259:in `block in save'
  activerecord (3.2.17) lib/active_record/transactions.rb:270:in `rollback_active_record_state!'
  activerecord (3.2.17) lib/active_record/transactions.rb:258:in `save'
  plugins/redmine_git_hosting/app/controllers/gitolite_public_keys_controller.rb:20:in `create'

Environment:
  Redmine version                2.4.5.stable
  Ruby version                   1.9.3-p484 (2013-11-22) [x86_64-linux]
  Rails version                  3.2.17
  Environment                    production
  Database adapter               PostgreSQL
SCM:
  Subversion                     1.6.16
  Mercurial                      1.7
  Git                            1.8.5.5
  Filesystem                     
Redmine plugins:
  redmine_bootstrap_kit          0.1
  redmine_git_hosting            0.7.3
  redmine_plugin_views_revisions 0.0.1
  redmine_sidekiq                2.0.0
n-rodriguez pushed a commit that referenced this issue Jun 10, 2014
@n-rodriguez
Copy link
Contributor

Thank you!

@n-rodriguez n-rodriguez self-assigned this Jun 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants