Bug 769719

Summary: resource key not HTML-escaped in search results and resource detail (possibly elsewhere?)
Product: [Other] RHQ Project Reporter: Lukas Krejci <lkrejci>
Component: Core UIAssignee: Jay Shaughnessy <jshaughn>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: high Docs Contact:
Priority: medium    
Version: 4.3CC: hrupp, jshaughn, skondkar
Target Milestone: ---   
Target Release: RHQ 4.3.0   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: 4.3 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-08-31 10:12:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 760116    
Attachments:
Description Flags
Key_Resource_Detail
none
Services_Key-Column none

Description Lukas Krejci 2011-12-21 21:31:07 UTC
Description of problem:
The resource key for apache Directory and IfModule resources starts with a '<' which makes them invisible in both search results and resource detail page.

Version-Release number of selected component (if applicable):
4.3.0-SNAPSHOT

How reproducible:
always

Steps to Reproduce:
1. inventory apache, enable augeas in its connection settings, run detailed discovery to get the directory and IfModule resources discovered
2. click on one of the discovered directories or ifmodules
3. expand the details on the detail page
  
Actual results:
key appears empty

Expected results:
key is shown

Additional info:
alternative repro steps:
1. inventory apache, enable augeas in its connection settings, run detailed discovery to get the directory and IfModule resources discovered
2. go to Inventory > Services
3. right-click on the search results table header, check the "Key" in the "Columns" menu.
4. search for one of the directories or ifmodules

Comment 1 Jay Shaughnessy 2012-01-16 20:20:01 UTC
That's an annoying resource key.

Comment 2 Jay Shaughnessy 2012-01-16 21:06:03 UTC
master commit 2c9a0b72daaefbab9697d0a14494106a957b2dac

Treat the key value as needing to be HTML escaped in the resource
overview and search views. Although, it is not typically displayed in
search results anyway.

Comment 3 Sunil Kondkar 2012-05-03 09:45:34 UTC
Verified on build#1457 (Version: 4.4.0-SNAPSHOT Build Number: 804e43c)

Verified that resource key is shown in Apache directories and ifmodules resource details page and in 'key' column of Inventory->Services. Also verified in 'key' column of Inventory tab of a compatible group of apache directories and ifmodules.
Screenshots attached.

Comment 4 Sunil Kondkar 2012-05-03 09:46:42 UTC
Created attachment 581816 [details]
Key_Resource_Detail

Comment 5 Sunil Kondkar 2012-05-03 09:47:50 UTC
Created attachment 581817 [details]
Services_Key-Column

Comment 6 Heiko W. Rupp 2013-08-31 10:12:24 UTC
Bulk close of old bugs in VERIFIED state.