Bug 1608972

Summary: Settings and Diagnostics accordions empty if a zone has backslash in description
Product: Red Hat CloudForms Management Engine Reporter: Tasos Papaioannou <tpapaioa>
Component: UI - OPSAssignee: Dávid Halász <dhalasz>
Status: CLOSED DUPLICATE QA Contact: Tasos Papaioannou <tpapaioa>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.9.3CC: dmetzger, hkataria, lavenel, mpovolny, obarenbo
Target Milestone: GAKeywords: Regression
Target Release: 5.9.5   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-07-30 12:28:24 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:

Description Tasos Papaioannou 2018-07-26 15:31:20 UTC
Description of problem:

If a zone is created or edited to have a description with a backslash, the Settings and Diagnostics accordions are empty.

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

Verified on 5.9.0.22 through 5.9.4.0. Issue does not appear in 5.8 or 5.10.

How reproducible:

100%

Steps to Reproduce:
1.) Create a new zone, with a backslash in the description, e.g.,

Name: zone1
Description: zone1\a

2.) Refresh the browser, or navigate away and then back to the Configuration page.

3.) See that the Settings and Diagnostics sections of the accordion are now empty.

Actual results:

Backslashes in zone description cause Settings and Diagnostics accordions to display as empty.

Expected results:

Certain combinations of backslash with other characters don't cause this problem, but the zone's description in the accordion doesn't display as expected, indicating that the backslash+character is being interpreted as a special character.

For example, after saving the zone with a description of 'zone1\t', the accordion initially displays as 'zone1\t' but after a page refresh it displays as 'zone1 '. Similarly, a description of 'zone1\\a' initially displays as 'zone1\\a' but after a page refresh it displays as 'zone1\a'.

Additional info:

Comment 4 Milan Zázrivec 2018-07-30 11:33:17 UTC
This is in fact the same problem as bug #1568417

Assigning to Dávid -- you may choose to close this one as a duplicate
or keep them open both.