Bug 1130645
Summary: | Host Collection actions selects all available hosts if collection name has spaces in them | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Og Maciel <omaciel> | ||||
Component: | WebUI | Assignee: | Walden Raines <walden> | ||||
WebUI sub component: | Katello | QA Contact: | sthirugn <sthirugn> | ||||
Status: | CLOSED CURRENTRELEASE | Docs Contact: | |||||
Severity: | high | ||||||
Priority: | unspecified | CC: | bbuckingham, jmontleo, sthirugn, walden | ||||
Version: | 6.0.4 | Keywords: | Triaged | ||||
Target Milestone: | Unspecified | ||||||
Target Release: | Unused | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
URL: | http://projects.theforeman.org/issues/7119 | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2014-09-11 12:23:35 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Created redmine issue http://projects.theforeman.org/issues/7119 from this bug Moving to POST since upstream bug http://projects.theforeman.org/issues/7119 has been closed ------------- Walden Raines Applied in changeset commit:katello|37df2d9d4eb0162e643eca4fe6abf679b8f4b4f7. Verified. Version Tested: GA Snap 7 - Satellite-6.0.4-RHEL-6-20140828.0 * apr-util-ldap-1.3.9-3.el6_0.1.x86_64 * candlepin-0.9.23-1.el6_5.noarch * candlepin-common-1.0.1-1.el6_5.noarch * candlepin-scl-1-5.el6_4.noarch * candlepin-scl-quartz-2.1.5-5.el6_4.noarch * candlepin-scl-rhino-1.7R3-1.el6_4.noarch * candlepin-scl-runtime-1-5.el6_4.noarch * candlepin-selinux-0.9.23-1.el6_5.noarch * candlepin-tomcat6-0.9.23-1.el6_5.noarch * elasticsearch-0.90.10-6.el6sat.noarch * foreman-1.6.0.42-1.el6sat.noarch * foreman-compute-1.6.0.42-1.el6sat.noarch * foreman-gce-1.6.0.42-1.el6sat.noarch * foreman-libvirt-1.6.0.42-1.el6sat.noarch * foreman-ovirt-1.6.0.42-1.el6sat.noarch * foreman-postgresql-1.6.0.42-1.el6sat.noarch * foreman-proxy-1.6.0.30-1.el6sat.noarch * foreman-selinux-1.6.0.14-1.el6sat.noarch * foreman-vmware-1.6.0.42-1.el6sat.noarch * katello-1.5.0-30.el6sat.noarch * katello-ca-1.0-1.noarch * katello-certs-tools-1.5.6-1.el6sat.noarch * katello-installer-0.0.62-1.el6sat.noarch * openldap-2.4.23-34.el6_5.1.x86_64 * openldap-devel-2.4.23-34.el6_5.1.x86_64 * pulp-katello-0.3-4.el6sat.noarch * pulp-nodes-common-2.4.1-0.5.rc1.el6sat.noarch * pulp-nodes-parent-2.4.1-0.5.rc1.el6sat.noarch * pulp-puppet-plugins-2.4.1-0.5.rc1.el6sat.noarch * pulp-puppet-tools-2.4.1-0.5.rc1.el6sat.noarch * pulp-rpm-plugins-2.4.1-0.5.rc1.el6sat.noarch * pulp-selinux-2.4.1-0.5.rc1.el6sat.noarch * pulp-server-2.4.1-0.5.rc1.el6sat.noarch * python-ldap-2.3.10-1.el6.x86_64 * ruby193-rubygem-net-ldap-0.3.1-3.el6sat.noarch * ruby193-rubygem-runcible-1.1.0-2.el6sat.noarch This was delivered with Satellite 6.0 which was released on 10 September 2014. |
Created attachment 927236 [details] All content hosts are selected Description of problem: Created a host collection named 'RHEL 6 x86_64' and added one of my 2 content hosts to it. I then went to Host Collections, chose content_view:'RHEL 6 x86_64' and tried to install a package by choosing the "Package Installation, Removal, and Update" from the Collection Actions tab. I noticed that all my existing content hosts were being selected (see attached screenshot). I then renamed my host collection to 'foo' and tried it again. This time only the one content host associated with 'foo' were selected/displayed. Version-Release number of selected component (if applicable): Browser: -------- * Firefox 31.0 Mac OS Build: ------ * Satellite-6.0.4-RHEL-6-20140813.2 Packages: --------- * candlepin-0.9.23-1.el7.noarch * candlepin-common-1.0.1-1.el7.noarch * candlepin-guice-3.0-2_redhat_1.el7.noarch * candlepin-scl-1-5.el7.noarch * candlepin-scl-quartz-2.1.5-6.el7.noarch * candlepin-scl-rhino-1.7R3-3.el7.noarch * candlepin-scl-runtime-1-5.el7.noarch * candlepin-selinux-0.9.23-1.el7.noarch * candlepin-tomcat-0.9.23-1.el7.noarch * elasticsearch-0.90.10-4.el7sat.noarch * foreman-1.6.0.40-1.el7sat.noarch * foreman-compute-1.6.0.40-1.el7sat.noarch * foreman-gce-1.6.0.40-1.el7sat.noarch * foreman-libvirt-1.6.0.40-1.el7sat.noarch * foreman-ovirt-1.6.0.40-1.el7sat.noarch * foreman-postgresql-1.6.0.40-1.el7sat.noarch * foreman-proxy-1.6.0.27-1.el7sat.noarch * foreman-selinux-1.6.0.6-1.el7sat.noarch * foreman-vmware-1.6.0.40-1.el7sat.noarch * katello-1.5.0-28.el7sat.noarch * katello-ca-1.0-1.noarch * katello-certs-tools-1.5.6-1.el7sat.noarch * katello-installer-0.0.59-1.el7sat.noarch * openldap-2.4.39-3.el7.x86_64 * pulp-katello-0.3-3.el7sat.noarch * pulp-nodes-common-2.4.0-0.30.beta.el7sat.noarch * pulp-nodes-parent-2.4.0-0.30.beta.el7sat.noarch * pulp-puppet-plugins-2.4.0-0.30.beta.el7sat.noarch * pulp-puppet-tools-2.4.0-0.30.beta.el7sat.noarch * pulp-rpm-plugins-2.4.0-0.30.beta.el7sat.noarch * pulp-selinux-2.4.0-0.30.beta.el7sat.noarch * pulp-server-2.4.0-0.30.beta.el7sat.noarch * python-ldap-2.4.6-6.el7.x86_64 * ruby193-rubygem-net-ldap-0.3.1-3.el7sat.noarch * ruby193-rubygem-runcible-1.1.0-2.el7sat.noarch * rubygem-hammer_cli-0.1.1-11.el7sat.noarch * rubygem-hammer_cli_foreman-0.1.1-15.el7sat.noarch * rubygem-hammer_cli_foreman_tasks-0.0.3-3.el7sat.noarch * rubygem-hammer_cli_katello-0.0.4-12.el7sat.noarch How reproducible: Steps to Reproduce: 1. Make sure to have more than one content host 2. Create a new host collection and name it 'RHEL 6 x86_64' 3. Add one one of your existing content hosts to this host collection 4. Select the 'RHEL 6 x86_64' host collection and then attempt to perform one of the available actions from the Collection Actions tab Actual results: All available content hosts are selected Expected results: Only the one content host associated to 'RHEL 6 x86_64' should be selected/displayed Additional info: ==> /var/log/foreman/production.log <== Processing by Katello::Api::V2::HostCollectionsController#show as JSON Parameters: {"fields"=>"full", "api_version"=>"v2", "id"=>"2"} Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/views/katello/api/v2/host_collections/show.json.rabl within katello/api/v2/layouts/resource (4.4ms) Completed 200 OK in 12ms (Views: 5.0ms | ActiveRecord: 1.4ms) Processing by Katello::Api::V2::SystemsController#index as JSON Parameters: {"page"=>"1", "paged"=>"true", "search"=>"", "sort_by"=>"name", "sort_order"=>"ASC", "api_version"=>"v2", "host_collection_id"=>"2"}