Hide Forgot
Created attachment 557844 [details] error adding package to template Description of problem: On the recent git build of Katello adding packages to the template fails (through UI) with following exception: --- Started GET "/katello/packages/auto_complete_locker?term=lion&_=1327664727988" for 10.34.30.194 at Fri Jan 27 12:49:17 +0100 2012 Processing by PackagesController#show as Parameters: {"term"=>"lion", "id"=>"auto_complete_locker", "_"=>"1327664727988"} 705: unexpected token at 'null' 705: unexpected token at 'null' #<JSON::ParserError: 705: unexpected token at 'null'> /usr/lib/ruby/gems/1.8/gems/json-1.4.6/lib/json/common.rb:146:in `parse' /usr/lib/ruby/gems/1.8/gems/json-1.4.6/lib/json/common.rb:146:in `parse' /usr/share/katello/lib/resources/pulp.rb:89:in `find' /usr/share/katello/app/models/glue/pulp/package.rb:19:in `find' /usr/share/katello/app/controllers/packages_controller.rb:61:in `lookup_package' /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/callbacks.rb:453:in `_run__193850094__process_action__453433196__callbacks' /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/callbacks.rb:221:in `_conditional_callback_around_2712' /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_2712' /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/callbacks.rb:451:in `_run__193850094__process_action__453433196__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' --- Version-Release number of selected component (if applicable): katello-0.1.198-1.git.5.5f27de3.el6.noarch pulp-0.0.262-1.el6.noarch candlepin-0.5.8-1.el6.noarch How reproducible: always on this latest katello Steps to Reproduce: 1.prepare provider/product/repo (with url: http://lzap.fedorapeople.org/fakerepos/zoo4/ that has some packages) 2.sync the product 3.create template and add the product to it 4.try to add a package from the repo Actual results: exception thrown (captured screeshot is attached) Expected results: no errors Additional info: might be something related to changes Locker->Library ?
I forgot to rename Locker in th js files. It should be fixed in katello-0.1.200
# VERIFIED and that's true: it fixed. packages where it works: --- katello-0.1.200-1.git.0.996f43a.el6.noarch