Bug #24834
closedFact names and values are not displayed properly
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1625611
Description of problem:
If you upload Host Facts that contain characters like <>"&
- curl -u admin:changeme -k https://localhost/api/v2/hosts/facts -d '{"name": "facthost", "facts": {"name; <>\"&": "value; <>\"&", "operatingsystem": "RedHat", "operatingsystemrelease": "6.12"}}' -H 'Content-Type: application/json'
They are not displayed properly in UI
1. Monitor > Facts (/fact_values)
fact name is double escaped in the table
facthost name <>"& value <>"&
2. Monitor > Facts (/fact_values)
links in Name and Value columns points to not valid searches
3. Monitor > Facts > View Chart
fact names and values are double escaped in the charts
4. Monitor > Trends
values are escaped twice in graphs in Trends
Version-Release number of selected component (if applicable):
Satellite 6.4 snap 20
satellite-6.4.0-13.el7sat.noarch
katello-3.7.0-5.el7sat.noarch
foreman-1.18.0.18-1.el7sat.noarch
Additional info:
bz 1509442 cooment 5