Bug 772897 - "Package Filters" from UI throws "undefined method `downcase' for :asc:Symbol"
Summary: "Package Filters" from UI throws "undefined method `downcase' for :asc:Symbol"
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: WebUI
Version: 6.0.1
Hardware: Unspecified
OS: Unspecified
urgent
high
Target Milestone: Unspecified
Assignee: Jason E. Rist
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks: katello-blockers
TreeView+ depends on / blocked
 
Reported: 2012-01-10 09:36 UTC by Sachin Ghai
Modified: 2019-09-26 13:27 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-22 18:18:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Package_filter page is working fine (51.60 KB, image/png)
2012-01-11 10:27 UTC, Sachin Ghai
no flags Details

Description Sachin Ghai 2012-01-10 09:36:36 UTC
Description of problem:
UI throws error while selecting Package filters from Providers tab.

Version-Release number of selected component (if applicable):
[root@dhcp201-220 ~]# rpm -qa | grep katello
katello-glue-foreman-0.1.171-2.el6.noarch
katello-qpid-broker-key-pair-1.0-1.noarch
katello-certs-tools-1.0.1-2.el6.noarch
katello-common-0.1.171-2.el6.noarch
katello-cli-0.1.34-2.el6.noarch
katello-glue-pulp-0.1.171-2.el6.noarch
katello-httpd-ssl-key-pair-1.0-1.noarch
katello-cli-common-0.1.34-2.el6.noarch
katello-configure-0.1.52-2.el6.noarch
katello-glue-candlepin-0.1.171-2.el6.noarch
katello-all-0.1.171-2.el6.noarch
katello-0.1.171-2.el6.noarch
katello-trusted-ssl-cert-1.0-1.noarch
[root@dhcp201-220 ~]# rpm -qa | grep pulp
m2crypto-0.21.1.pulp-5.el6.x86_64
python-isodate-0.4.4-4.pulp.el6.noarch
katello-glue-pulp-0.1.171-2.el6.noarch
pulp-common-0.0.256-1.el6.noarch
pulp-selinux-server-0.0.256-1.el6.noarch
pulp-0.0.256-1.el6.noarch
python-oauth2-1.5.170-2.pulp.el6.noarch
mod_wsgi-3.2-6.pulp.el6.x86_64
[root@dhcp201-220 ~]# 

How reproducible:
always

Steps to Reproduce:
1. Installed latest katello build (0.1.171) from brew:
http://download.devel.redhat.com/brewroot/repos/se-rhel-6-build/latest/x86_64/
2. Login with admin user
3. Select Provider ==> Package Filters
  
Actual results:
undefined method `downcase' for :asc:Symbol

Expected results:
No error should be raised while selecting Package filters. User should be able to define filters.

Additional info:

Started GET "/katello//filters/items?offset=0&=undefined&search=&_=1326187169524" for 10.65.193.48 at Tue Jan 10 14:46:15 +0530 2012
  Processing by FiltersController#items as 
  Parameters: {"_"=>"1326187169524", "search"=>"", "offset"=>"0"}
undefined method `downcase' for :asc:Symbol
undefined method `downcase' for :asc:Symbol
#<NoMethodError: undefined method `downcase' for :asc:Symbol>
/usr/share/katello/app/controllers/application_controller.rb:307:in `render_panel_direct'
/usr/lib/ruby/gems/1.8/gems/tire-0.3.12/lib/tire/search/sort.rb:7:in `instance_eval'
/usr/lib/ruby/gems/1.8/gems/tire-0.3.12/lib/tire/search/sort.rb:7:in `initialize'
/usr/lib/ruby/gems/1.8/gems/tire-0.3.12/lib/tire/search.rb:26:in `new'
/usr/lib/ruby/gems/1.8/gems/tire-0.3.12/lib/tire/search.rb:26:in `sort'
/usr/share/katello/app/controllers/application_controller.rb:307:in `render_panel_direct'
/usr/lib/ruby/gems/1.8/gems/tire-0.3.12/lib/tire/model/search.rb:89:in `instance_eval'
/usr/lib/ruby/gems/1.8/gems/tire-0.3.12/lib/tire/model/search.rb:89:in `search'
/usr/lib/ruby/gems/1.8/gems/tire-0.3.12/lib/tire/model/search.rb:264:in `__send__'
/usr/lib/ruby/gems/1.8/gems/tire-0.3.12/lib/tire/model/search.rb:264:in `search'
/usr/share/katello/app/controllers/application_controller.rb:296:in `render_panel_direct'
/usr/share/katello/app/controllers/filters_controller.rb:67:in `items'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/abstract_controller/base.rb:150:in `process_action'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_controller/metal/rendering.rb:11:in `process_action'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/abstract_controller/callbacks.rb:18:in `process_action'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/callbacks.rb:462:in `_run__1952089072__process_action__608984409__callbacks'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/callbacks.rb:221:in `_conditional_callback_around_2615'
/usr/share/katello/lib/util/threadsession.rb:79:in `thread_locals'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/callbacks.rb:220:in `_conditional_callback_around_2615'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/callbacks.rb:451:in `_run__1952089072__process_action__608984409__callbacks'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/callbacks.rb:410:in `send'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/callbacks.rb:410:in `_run_process_action_callbacks'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/callbacks.rb:94:in `send'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/callbacks.rb:94:in `run_callbacks'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/abstract_controller/callbacks.rb:17:in `process_action'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_controller/metal/rescue.rb:17:in `process_action'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/notifications.rb:52:in `instrument'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/notifications.rb:52:in `instrument'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/abstract_controller/base.rb:119:in `process'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/abstract_controller/rendering.rb:41:in `process'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_controller/metal.rb:138:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_controller/metal.rb:178:in `action'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_dispatch/routing/route_set.rb:62:in `call'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_dispatch/routing/route_set.rb:62:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_dispatch/routing/route_set.rb:27:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-mount-0.7.1/lib/rack/mount/route_set.rb:150:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-mount-0.7.1/lib/rack/mount/code_generation.rb:93:in `recognize'
/usr/lib/ruby/gems/1.8/gems/rack-mount-0.7.1/lib/rack/mount/code_generation.rb:68:in `optimized_each'
/usr/lib/ruby/gems/1.8/gems/rack-mount-0.7.1/lib/rack/mount/code_generation.rb:92:in `recognize'
/usr/lib/ruby/gems/1.8/gems/rack-mount-0.7.1/lib/rack/mount/route_set.rb:141:in `call'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_dispatch/routing/route_set.rb:493:in `call'
/usr/lib/ruby/gems/1.8/gems/warden-1.0.5/lib/warden/manager.rb:35:in `call'
/usr/lib/ruby/gems/1.8/gems/warden-1.0.5/lib/warden/manager.rb:34:in `catch'
/usr/lib/ruby/gems/1.8/gems/warden-1.0.5/lib/warden/manager.rb:34:in `call'
/usr/lib/ruby/gems/1.8/gems/sass-3.1.4/lib/sass/../sass/plugin/rack.rb:54:in `call'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_dispatch/middleware/head.rb:14:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-1.3.0/lib/rack/methodoverride.rb:24:in `call'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_dispatch/middleware/flash.rb:182:in `call'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_dispatch/middleware/session/abstract_store.rb:149:in `call'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_dispatch/middleware/cookies.rb:302:in `call'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.0.10/lib/active_record/query_cache.rb:32:in `call'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.0.10/lib/active_record/connection_adapters/abstract/query_cache.rb:28:in `cache'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.0.10/lib/active_record/query_cache.rb:12:in `cache'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.0.10/lib/active_record/query_cache.rb:31:in `call'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.0.10/lib/active_record/connection_adapters/abstract/connection_pool.rb:354:in `call'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_dispatch/middleware/callbacks.rb:46:in `call'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/callbacks.rb:416:in `_run_call_callbacks'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_dispatch/middleware/callbacks.rb:44:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-1.3.0/lib/rack/sendfile.rb:102:in `call'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_dispatch/middleware/remote_ip.rb:48:in `call'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_dispatch/middleware/show_exceptions.rb:47:in `call'
/usr/lib/ruby/gems/1.8/gems/railties-3.0.10/lib/rails/rack/logger.rb:13:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-1.3.0/lib/rack/runtime.rb:17:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-1.3.0/lib/rack/lock.rb:34:in `call'
/usr/lib/ruby/gems/1.8/gems/railties-3.0.10/lib/rails/application.rb:168:in `call'
/usr/lib/ruby/gems/1.8/gems/railties-3.0.10/lib/rails/application.rb:77:in `send'
/usr/lib/ruby/gems/1.8/gems/railties-3.0.10/lib/rails/application.rb:77:in `method_missing'
/usr/lib/ruby/gems/1.8/gems/rack-1.3.0/lib/rack/urlmap.rb:52:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-1.3.0/lib/rack/urlmap.rb:46:in `each'
/usr/lib/ruby/gems/1.8/gems/rack-1.3.0/lib/rack/urlmap.rb:46:in `call'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/connection.rb:84:in `pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/connection.rb:82:in `catch'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/connection.rb:82:in `pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/connection.rb:57:in `process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/connection.rb:42:in `receive_data'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/backends/base.rb:61:in `start'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/server.rb:159:in `start'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/controllers/controller.rb:86:in `start'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/runner.rb:185:in `send'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/runner.rb:185:in `run_command'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/runner.rb:151:in `run!'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.11/bin/thin:6
/usr/share/katello/script/thin:59:in `load'
/usr/share/katello/script/thin:59
Rendering 500:undefined method `downcase' for :asc:Symbol
Rendered common/_config.html.haml (0.5ms)
Rendered layouts/_ajax_notices.haml (2.9ms)
Rendered layouts/_notification.haml (0.3ms)
Rendered common/_common_i18n.html.haml (0.3ms)
Rendered layouts/_org.haml (0.8ms)
Rendered layouts/_header.haml (5.1ms)
Rendered layouts/_footer.haml (0.8ms)
Rendered common/500.html.haml within layouts/katello (369.9ms)
Completed 500 Internal Server Error in 461ms (Views: 350.4ms | ActiveRecord: 92.5ms)

Comment 1 Sachin Ghai 2012-01-10 09:47:02 UTC
Similar issue found while adding "GPG keys" from UI.

Started GET "/katello//gpg_keys/items?offset=0&=undefined&search=&_=1326188718630" for 10.65.193.48 at Tue Jan 10 15:12:04 +0530 2012
  Processing by GpgKeysController#items as 
  Parameters: {"_"=>"1326188718630", "search"=>"", "offset"=>"0"}
undefined method `downcase' for :asc:Symbol
undefined method `downcase' for :asc:Symbol
#<NoMethodError: undefined method `downcase' for :asc:Symbol>
/usr/share/katello/app/controllers/application_controller.rb:307:in `render_panel_direct'
/usr/lib/ruby/gems/1.8/gems/tire-0.3.12/lib/tire/search/sort.rb:7:in `instance_eval'
/usr/lib/ruby/gems/1.8/gems/tire-0.3.12/lib/tire/search/sort.rb:7:in `initialize'
/usr/lib/ruby/gems/1.8/gems/tire-0.3.12/lib/tire/search.rb:26:in `new'
/usr/lib/ruby/gems/1.8/gems/tire-0.3.12/lib/tire/search.rb:26:in `sort'
/usr/share/katello/app/controllers/application_controller.rb:307:in `render_panel_direct'
/usr/lib/ruby/gems/1.8/gems/tire-0.3.12/lib/tire/model/search.rb:89:in `instance_eval'

 <truncate>

Comment 2 Ivan Necas 2012-01-10 10:24:09 UTC
It was fixed in ffd9268c1c2182e7d32a5114a611f72401c5154d, unfortunately it was after that build and it was not tagged. Doing it so now - version katello-0.1.172-1

Comment 3 Sachin Ghai 2012-01-11 10:25:45 UTC
verified in following katello build:

[root@dhcp201-187 yum.repos.d]# rpm -qa | grep katello-0
katello-0.1.174-2.el6.noarch
[root@dhcp201-187 yum.repos.d]# 

The reported issue has been fixed. I can open the "Package filter" page from UI. Please see the attachment in next comment.

Comment 4 Sachin Ghai 2012-01-11 10:27:21 UTC
Created attachment 552071 [details]
Package_filter page is working fine

Comment 7 Mike McCune 2013-08-16 18:22:54 UTC
getting rid of 6.0.0 version since that doesn't exist


Note You need to log in before you can comment on or make changes to this bug.