Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 785131

Summary: adding package to template - 705: unexpected token at 'null'
Product: Red Hat Satellite Reporter: Garik Khachikyan <gkhachik>
Component: WebUIAssignee: Martin Bacovsky <mbacovsk>
Status: CLOSED CURRENTRELEASE QA Contact: Garik Khachikyan <gkhachik>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: bkearney, mbacovsk, mkoci
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-22 18:23:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
error adding package to template none

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