Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

NoMethodError (private method `gsub' called for #<ActionController::Request:>):

#6540

Backtrace explains it all:

[FATAL|# 1660] NoMethodError (private method gsub' called for #<ActionController::Request:0x7f41c25c8a40>): /usr/lib64/ruby/1.8/cgi.rb:370:inunescapeHTML' app/controllers/application_controller.rb:475:in rescue_action_in_public' thin (1.2.5) lib/thin/connection.rb:76:inpre_process' thin (1.2.5) lib/thin/connection.rb:74:in catch' thin (1.2.5) lib/thin/connection.rb:74:inpre_process' thin (1.2.5) lib/thin/connection.rb:57:in process' thin (1.2.5) lib/thin/connection.rb:42:inreceive_data' eventmachine (0.12.10) lib/eventmachine.rb:256:in run_machine' eventmachine (0.12.10) lib/eventmachine.rb:256:inrun' thin (1.2.5) lib/thin/backends/base.rb:57:in start' thin (1.2.5) lib/thin/server.rb:156:instart' thin (1.2.5) lib/thin/controllers/controller.rb:80:in start' thin (1.2.5) lib/thin/runner.rb:177:insend' thin (1.2.5) lib/thin/runner.rb:177:in run_command' thin (1.2.5) lib/thin/runner.rb:143:inrun!' thin (1.2.5) bin/thin:6 /usr/bin/thin:19:in `load' /usr/bin/thin:19

Or, the same a bit more lengthy:

[ERROR|# 1660] rescue_action: caught NoMethodError: private method gsub' called for #<ActionController::Request:0x7f41c25c8a40> [FATAL|# 1660] /!\ FAILSAFE /!\ Mon Mar 07 10:02:53 +0100 2011 Status: 500 Internal Server Error private methodgsub' called for #<ActionController::Request:0x7f41c25c8a40>

/usr/lib64/ruby/1.8/cgi.rb:370:in `unescapeHTML'
app/controllers/application_controller.rb:475:in `rescue_action_in_public'
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/rescue.rb:154:in `rescue_action_without_handler'
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/rescue.rb:74:in `rescue_action'
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:532:in `send'
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:532:in `process_without_filters'
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/filters.rb:606:in `process'
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/rescue.rb:65:in `call_with_exception'
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:90:in `dispatch'
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:121:in `_call'
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:130:in `build_middleware_stack'
/usr/lib64/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/query_cache.rb:29:in `call'
/usr/lib64/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/query_cache.rb:29:in `call'
/usr/lib64/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
/usr/lib64/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/query_cache.rb:9:in `cache'
/usr/lib64/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/query_cache.rb:28:in `call'
/usr/lib64/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/string_coercion.rb:25:in `call'
/usr/lib64/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/head.rb:9:in `call'
/usr/lib64/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/methodoverride.rb:24:in `call'
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/params_parser.rb:15:in `call'
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/session/cookie_store.rb:99:in `call'
/usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/cache/strategy/local_cache.rb:25:in `call'
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/failsafe.rb:26:in `call'
/usr/lib64/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/lock.rb:11:in `call'
/usr/lib64/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/lock.rb:11:in `synchronize'
/usr/lib64/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/lock.rb:11:in `call'
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:106:in `call'
/usr/lib64/ruby/gems/1.8/gems/thin-1.2.5/lib/rack/adapter/rails.rb:74:in `call'
/usr/lib64/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/connection.rb:76:in `pre_process'
/usr/lib64/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/connection.rb:74:in `catch'
/usr/lib64/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/connection.rb:74:in `pre_process'
/usr/lib64/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/connection.rb:57:in `process'
/usr/lib64/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/connection.rb:42:in `receive_data'
/usr/lib64/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
/usr/lib64/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
/usr/lib64/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/backends/base.rb:57:in `start'
/usr/lib64/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/server.rb:156:in `start'
/usr/lib64/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/controllers/controller.rb:80:in `start'
/usr/lib64/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/runner.rb:177:in `send'
/usr/lib64/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/runner.rb:177:in `run_command'
/usr/lib64/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/runner.rb:143:in `run!'
/usr/lib64/ruby/gems/1.8/gems/thin-1.2.5/bin/thin:6
/usr/bin/thin:19:in `load'
/usr/bin/thin:19

Reported by Sascha Peilicke · March 7th, 2011 @ 09:17 AM

State: invalid
Milestone: none
Assigned to: nobody
Importance: Low

Activity

  1. Andrew White
    Andrew White
    • State changed from new to invalid
    • Importance changed from to Low

    You're right it does explain it all - the error is in the ApplicationController of the obs-api application: http://gitorious.org/opensuse/build-service/blobs/master/src/api/ap...

    It's calling CGI.unescapeHTML on the request object when it actually should be giving it a string.

    March 7th, 2011 @ 09:44 AM

  2. Sascha Peilicke
    Sascha Peilicke

    Yeah, just discoverd it myself, my bad :-)

    March 7th, 2011 @ 09:45 AM