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 was trying to create hostgroup via CLI and UI and the gve html tags in hostname and it was accepted by rule and rule was created. However, html names shouldn't be accepted by rule.
2016-09-22 16:38:04 - robottelo.ssh - DEBUG - >>> LANG=en_US.UTF-8 hammer -v -u admin -p changeme --output=csv discovery_rule create --hostgroup-id="73" --location-ids="157" --name="WtjWj4OecF" --search="cpu_count = 1" --organization-ids="156" --hostname="<var>RFuNdfAprC</var>"
2016-09-22 16:38:05 - robottelo.ssh - DEBUG - <<< stdout
Message,Id,Name
Rule created,105,WtjWj4OecF
2016-09-22 16:38:05 - robottelo.ssh - INFO - Destroying Paramiko client 0x7f125420b0d0
2016-09-22 16:38:05 - robottelo.ssh - INFO - Destroyed Paramiko client 0x7f125420b0d0
2016-09-22 16:38:08 - robottelo.ssh - INFO - Instantiated Paramiko client 0x7f125420b950
2016-09-22 16:38:08 - robottelo.ssh - DEBUG - Connected to [cloud-qe-15.idmqe.lab.eng.bos.redhat.com]
2016-09-22 16:38:08 - robottelo.ssh - DEBUG - >>> LANG=en_US.UTF-8 hammer -v -u admin -p changeme discovery_rule info --id="105"
2016-09-22 16:38:09 - robottelo.ssh - DEBUG - <<< stdout
ID: 105
Name: WtjWj4OecF
Priority: 0
Search: cpu_count = 1
Host Group: QLJuIC
Hosts Limit: 0
Enabled: true
Hostname template: <var>RFuNdfAprC</var>
In webUI, when you pass html tags, rule got created but you won't see the rule name when you edit it.
Version-Release number of selected component (if applicable):
sat6.3 snap1
How reproducible:
Steps to Reproduce:
1. create discovery rule via html tags
2.
3.
Actual results:
rule is getting created with html tags
Expected results:
rule should not be created with html tags
Additional info: