Bug 785131 - adding package to template - 705: unexpected token at 'null'
Summary: adding package to template - 705: unexpected token at 'null'
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: WebUI
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium vote
Target Milestone: Unspecified
Assignee: Martin Bacovsky
QA Contact: Garik Khachikyan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-27 11:54 UTC by Garik Khachikyan
Modified: 2019-09-25 21:08 UTC (History)
3 users (show)

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


Attachments (Terms of Use)
error adding package to template (65.66 KB, image/png)
2012-01-27 11:54 UTC, Garik Khachikyan
no flags Details

Description Garik Khachikyan 2012-01-27 11:54:27 UTC
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 ?

Comment 1 Martin Bacovsky 2012-01-27 15:31:00 UTC
I forgot to rename Locker in th js files. It should be fixed in katello-0.1.200

Comment 2 Garik Khachikyan 2012-01-27 16:15:04 UTC
# VERIFIED

and that's true: it fixed.

packages where it works:
---
katello-0.1.200-1.git.0.996f43a.el6.noarch


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