Project

General

Profile

redmine - cache security issue

Added by Jorge L almost 9 years ago

- Ruby implementation and version =
- Rails version =
- Operating system Ubuntu 14
- Database used =
- Ruby-aware server used: Webrick

I got this result (file attached) from a security perspective related with redmine.

Any hint on how you solve this?

Thanks.

config.eager_load is set to nil. Please update your config/environments/*.rb files accordingly:

  • development - set it to false
  • test - set it to false (unless you use a tool that preloads your test environment)
  • production - set it to true

/home/ubuntu/redmine-3.0.3-0/apps/redmine/htdocs/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.1/lib/active_record/connection_adapters/connection_specification.rb:248:in `resolve_symbol_connection': 'YOUR_ENVIRONMENT' database is not configured. Available: ["production", "development", "test"] (ActiveRecord::AdapterNotSpecified)
from /home/ubuntu/redmine-3.0.3-0/apps/redmine/htdocs/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.1/lib/active_record/connection_adapters/connection_specification.rb:211:in `resolve_connection'
from /home/ubuntu/redmine-3.0.3-0/apps/redmine/htdocs/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.1/lib/active_record/connection_adapters/connection_specification.rb:139:in `resolve'
from /home/ubuntu/redmine-3.0.3-0/apps/redmine/htdocs/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.1/lib/active_record/connection_adapters/connection_specification.rb:169:in `spec'
from /home/ubuntu/redmine-3.0.3-0/apps/redmine/htdocs/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.1/lib/active_record/connection_handling.rb:50:in `establish_connection'
from /home/ubuntu/redmine-3.0.3-0/apps/redmine/htdocs/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.1/lib/active_record/railtie.rb:120:in `block (2 levels) in <class:Railtie>'
from /home/ubuntu/redmine-3.0.3-0/apps/redmine/htdocs/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.1/lib/active_support/lazy_load_hooks.rb:38:in `instance_eval'
from /home/ubuntu/redmine-3.0.3-0/apps/redmine/htdocs/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.1/lib/active_support/lazy_load_hooks.rb:38:in `execute_hook'
from /home/ubuntu/redmine-3.0.3-0/apps/redmine/htdocs/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.1/lib/active_support/lazy_load_hooks.rb:45:in `block in run_load_hooks'
from /home/ubuntu/redmine-3.0.3-0/apps/redmine/htdocs/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.1/lib/active_support/lazy_load_hooks.rb:44:in `each'
from /home/ubuntu/redmine-3.0.3-0/apps/redmine/htdocs/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.1/lib/active_support/lazy_load_hooks.rb:44:in `run_load_hooks'
from /home/ubuntu/redmine-3.0.3-0/apps/redmine/htdocs/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.1/lib/active_record/base.rb:316:in `<module:ActiveRecord>'
from /home/ubuntu/redmine-3.0.3-0/apps/redmine/htdocs/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.1/lib/active_record/base.rb:26:in `<top (required)>'
from /home/ubuntu/redmine-3.0.3-0/apps/redmine/htdocs/lib/plugins/acts_as_activity_provider/init.rb:2:in `block in <top (required)>'
from /home/ubuntu/redmine-3.0.3-0/apps/redmine/htdocs/config/initializers/00-core_plugins.rb:12:in `eval'
from /home/ubuntu/redmine-3.0.3-0/apps/redmine/htdocs/config/initializers/00-core_plugins.rb:12:in `block in <top (required)>'
from /home/ubuntu/redmine-3.0.3-0/apps/redmine/htdocs/config/initializers/00-core_plugins.rb:2:in `each'
from /home/ubuntu/redmine-3.0.3-0/apps/redmine/htdocs/config/initializers/00-core_plugins.rb:2:in `<top (required)>'
from /home/ubuntu/redmine-3.0.3-0/apps/redmine/htdocs/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:268:in `load'
from /home/ubuntu/redmine-3.0.3-0/apps/redmine/htdocs/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:268:in `block in load'
from /home/ubuntu/redmine-3.0.3-0/apps/redmine/htdocs/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:240:in `load_dependency'
from /home/ubuntu/redmine-3.0.3-0/apps/redmine/htdocs/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:268:in `load'
from /home/ubuntu/redmine-3.0.3-0/apps/redmine/htdocs/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/engine.rb:652:in `block in load_config_initializer'
from /home/ubuntu/redmine-3.0.3-0/apps/redmine/htdocs/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.1/lib/active_support/notifications.rb:166:in `instrument'
from /home/ubuntu/redmine-3.0.3-0/apps/redmine/htdocs/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/engine.rb:651:in `load_config_initializer'
from /home/ubuntu/redmine-3.0.3-0/apps/redmine/htdocs/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/engine.rb:616:in `block (2 levels) in <class:Engine>'
from /home/ubuntu/redmine-3.0.3-0/apps/redmine/htdocs/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/engine.rb:615:in `each'
from /home/ubuntu/redmine-3.0.3-0/apps/redmine/htdocs/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/engine.rb:615:in `block in <class:Engine>'
from /home/ubuntu/redmine-3.0.3-0/apps/redmine/htdocs/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/initializable.rb:30:in `instance_exec'
from /home/ubuntu/redmine-3.0.3-0/apps/redmine/htdocs/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/initializable.rb:30:in `run'
from /home/ubuntu/redmine-3.0.3-0/apps/redmine/htdocs/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/initializable.rb:55:in `block in run_initializers'
from /home/ubuntu/redmine-3.0.3-0/ruby/lib/ruby/2.0.0/tsort.rb:150:in `block in tsort_each'
from /home/ubuntu/redmine-3.0.3-0/ruby/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
from /home/ubuntu/redmine-3.0.3-0/ruby/lib/ruby/2.0.0/tsort.rb:210:in `block (2 levels) in each_strongly_connected_component_from'
from /home/ubuntu/redmine-3.0.3-0/ruby/lib/ruby/2.0.0/tsort.rb:219:in `each_strongly_connected_component_from'
from /home/ubuntu/redmine-3.0.3-0/ruby/lib/ruby/2.0.0/tsort.rb:209:in `block in each_strongly_connected_component_from'
from /home/ubuntu/redmine-3.0.3-0/apps/redmine/htdocs/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/initializable.rb:44:in `each'
from /home/ubuntu/redmine-3.0.3-0/apps/redmine/htdocs/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/initializable.rb:44:in `tsort_each_child'
from /home/ubuntu/redmine-3.0.3-0/ruby/lib/ruby/2.0.0/tsort.rb:203:in `each_strongly_connected_component_from'
from /home/ubuntu/redmine-3.0.3-0/ruby/lib/ruby/2.0.0/tsort.rb:182:in `block in each_strongly_connected_component'
from /home/ubuntu/redmine-3.0.3-0/ruby/lib/ruby/2.0.0/tsort.rb:180:in `each'
from /home/ubuntu/redmine-3.0.3-0/ruby/lib/ruby/2.0.0/tsort.rb:180:in `each_strongly_connected_component'
from /home/ubuntu/redmine-3.0.3-0/ruby/lib/ruby/2.0.0/tsort.rb:148:in `tsort_each'
from /home/ubuntu/redmine-3.0.3-0/apps/redmine/htdocs/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/initializable.rb:54:in `run_initializers'
from /home/ubuntu/redmine-3.0.3-0/apps/redmine/htdocs/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/application.rb:352:in `initialize!'
from /home/ubuntu/redmine-3.0.3-0/apps/redmine/htdocs/config/environment.rb:14:in `<top (required)>'
from /home/ubuntu/redmine-3.0.3-0/ruby/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /home/ubuntu/redmine-3.0.3-0/ruby/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /home/ubuntu/redmine-3.0.3-0/apps/redmine/htdocs/bin/about:4:in `<main>'