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.
Description of problem:
I synched a custom repo and tried to schedule the hourly sync for that repo.
However when i clicked the "Apply selected plan to selected products" under "sync management ==> sync schedule, following error is appeared on UI:
---
500 Internal Server Error
Sorry about that! It seems something went wrong. If you continue having trouble with this, please contact an Administrator.
You might want to log out and log back in again to clear your cookies.
Error:
undefined method `collect' for nil:NilClass
----
Version-Release number of selected component (if applicable):
root@dhcp201-158 ~]# rpm -qa | grep katello
katello-cli-0.1.10-1.git.712.be6830e.fc15.noarch
katello-0.1.93-1.git.0.6934d37.fc15.noarch
katello-all-0.1.93-1.git.0.6934d37.fc15.noarch
katello-configure-0.1.6-1.git.5.76ba627.fc15.noarch
katello-repos-0.1.3-1.git.0.db2bd1d.fc15.noarch
[root@dhcp201-158 ~]# rpm -qa | grep pulp
pulp-common-0.0.237-5.fc15.noarch
pulp-0.0.237-5.fc15.noarch
m2crypto-0.21.1.pulp-5.fc15.x86_64
[root@dhcp201-158 ~]#
How reproducible:
always
Steps to Reproduce:
1. Create a repo
2. sync it
3. create a sync plan
4. Now click on "Apply selected plan to selected products" without "selecting any plan and product
Actual results:
undefined method `collect' for nil:NilClass
Expected results:
Button should be disabled if no sync plan and product is selected or a proper error message should be raised, saying that please select defined sync plan and product.
Additional info:
Verified with following katello build:
[root@dhcp201-176 ~]# rpm -qa | grep katello
katello-glue-candlepin-0.1.178-1.el6.noarch
katello-trusted-ssl-cert-1.0-1.noarch
katello-common-0.1.178-1.el6.noarch
katello-httpd-ssl-key-pair-1.0-1.noarch
katello-repos-testing-0.1.5-1.el6.noarch
katello-cli-0.1.35-1.el6.noarch
katello-0.1.178-1.el6.noarch
katello-configure-0.1.53-1.el6.noarch
katello-glue-pulp-0.1.178-1.el6.noarch
katello-qpid-broker-key-pair-1.0-1.noarch
katello-cli-common-0.1.35-1.el6.noarch
katello-certs-tools-1.0.2-1.el6.noarch
katello-all-0.1.178-1.el6.noarch
katello-glue-foreman-0.1.178-1.el6.noarch
katello-repos-0.1.5-1.el6.noarch
Now proper error messages are raised as below when neither product nor any sync plan is selected.
"There must be at least one product selected"
Also if either of them is selected but not both.
like:
i) if product is selected but not the sync plan, following message raised:
"There must be at least one plan selected"
ii) if sync plan is selected but not the product then:
"There must be at least one product selected"
so moving this to verified.
Description of problem: I synched a custom repo and tried to schedule the hourly sync for that repo. However when i clicked the "Apply selected plan to selected products" under "sync management ==> sync schedule, following error is appeared on UI: --- 500 Internal Server Error Sorry about that! It seems something went wrong. If you continue having trouble with this, please contact an Administrator. You might want to log out and log back in again to clear your cookies. Error: undefined method `collect' for nil:NilClass ---- Version-Release number of selected component (if applicable): root@dhcp201-158 ~]# rpm -qa | grep katello katello-cli-0.1.10-1.git.712.be6830e.fc15.noarch katello-0.1.93-1.git.0.6934d37.fc15.noarch katello-all-0.1.93-1.git.0.6934d37.fc15.noarch katello-configure-0.1.6-1.git.5.76ba627.fc15.noarch katello-repos-0.1.3-1.git.0.db2bd1d.fc15.noarch [root@dhcp201-158 ~]# rpm -qa | grep pulp pulp-common-0.0.237-5.fc15.noarch pulp-0.0.237-5.fc15.noarch m2crypto-0.21.1.pulp-5.fc15.x86_64 [root@dhcp201-158 ~]# How reproducible: always Steps to Reproduce: 1. Create a repo 2. sync it 3. create a sync plan 4. Now click on "Apply selected plan to selected products" without "selecting any plan and product Actual results: undefined method `collect' for nil:NilClass Expected results: Button should be disabled if no sync plan and product is selected or a proper error message should be raised, saying that please select defined sync plan and product. Additional info: