Project

General

Profile

Bug #7488

On creating hostgroup with html tags, UI appends the closing tag and string in name

Added by Dominic Cleal almost 5 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Web Interface
Target version:
Difficulty:
Triaged:
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1131416
Description of problem:
when you create hostgroup with html tags, UI appends the closing tag and string in name and covert it to a link.

ex: create hostgroup with name <h1>test</h1> and after creation UI will list it as <h1>test

Version-Release number of selected component (if applicable):
sat6 GA snap5

How reproducible:
always

Steps to Reproduce:
1. create hostgroup with name <h1>test</h1>
2. once created, see the listing
3.

Actual results:
UI shows <h1>test

see the string "test" and closing tag"</h1>" appended to the original name.

Expected results:
UI should the given name <h1>test</h1> in listing too and without converted it into a link

Additional info:

Associated revisions

Revision a08897e1 (diff)
Added by Tomer Brisker almost 5 years ago

Fixes #7488 - correctly display hostgroups with / in their names

Revision 0b31be3c (diff)
Added by Tomer Brisker over 4 years ago

Fixes #7488 - correctly display hostgroups with / in their names

(cherry picked from commit a08897e1ef0be9087720f8f19fa8326f9256faa2)

History

#1 Updated by Dominic Cleal almost 5 years ago

  • Subject changed from On creating hostgroup with html tags, UI appends the closing tag and string in name and converts it to link to On creating hostgroup with html tags, UI appends the closing tag and string in name
  • Category set to Web Interface

The "/" in the host group name is confusing the UI helpers and it's thinking that it's a nested host group, so is trying to display the parent portion in grey and the name in blue.

#2 Updated by Tomer Brisker almost 5 years ago

  • Status changed from New to Assigned
  • Assignee set to Tomer Brisker

#3 Updated by The Foreman Bot almost 5 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/1918 added
  • Pull request deleted ()

#4 Updated by Anonymous almost 5 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#5 Updated by Dominic Cleal almost 5 years ago

  • Legacy Backlogs Release (now unused) set to 21

Also available in: Atom PDF