Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1414195

Summary: project display name inside angle brackets will be hidden when create app on external page
Product: OpenShift Container Platform Reporter: XiaochuanWang <xiaocwan>
Component: Management ConsoleAssignee: Robb Hamilton <rhamilto>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: low Docs Contact:
Priority: medium    
Version: 3.5.0CC: aos-bugs, jokerman, mmccomas, tdawson, yanpzhan
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: Less than (<) and greater than (>) characters are valid within project display names, but inclusion of them in a way that mimics html (e.g., <displayname>) results in display names that do not appear in the choose existing project dropdown on the create from URL page. Consequence: Project display names that look like html do not appear in the choose existing project dropdown on the create from URL page. Fix: Escape < and > characters as HTML entities so that they display properly. Result: Strings that looks like HTML are now properly escaped and display as strings.
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-12 19:09:40 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:
Attachments:
Description Flags
display name is <my display name>
none
display name is "my <display name>" none

Description XiaochuanWang 2017-01-18 02:01:23 UTC
Created attachment 1242018 [details]
display name is <my display name>

Description of problem:
Create a project with display name in angle brackets like "<my display name>". Go to external page like https://xxx:8443/console/create?tab=fromCatalog&name=nodejs-ex&imageStream=nodejs&imageTag=4. Click drop down list and the project "<my display name>" is missing

Version-Release number of selected component (if applicable):
v3.5.0.5+8f2840d

How reproducible:
Always

Steps to Reproduce:
1. Create a project with: *name is "myproject", *Display Name is "<my display name>"
2. Go to external page to create app:
Eg. https://xxx:8443/console/create?tab=fromCatalog&name=nodejs-ex&imageStream=nodejs&imageTag=4
3. From "Choose Existing Project" drop down list, check the projects
4. Create another project with: *name is "myproject", *Display Name is "my <display name>"
5. Go to the external page by step2 and check the drop down list again

Actual results:
3. Content inside angle brackets is missing.  
5. The "<display name>" is missing from the drop down list, only left "my", the new created project is actually exist.
Please see the screenshot.

Expected results:
3&5. Content inside angle brackets should be shown. 


Additional info:

Comment 1 XiaochuanWang 2017-01-18 02:02:02 UTC
Created attachment 1242019 [details]
display name is "my <display name>"

Comment 2 Robb Hamilton 2017-01-18 16:26:48 UTC
This is an issue with ui-select (the Angular directive we're using to create the dropdown picker).  See https://github.com/angular-ui/ui-select/issues/846.  I'm trying to determine how to workaround.

Comment 3 Robb Hamilton 2017-01-18 19:36:33 UTC
PR to resolve:  https://github.com/openshift/origin-web-console/pull/1135

Comment 4 Robb Hamilton 2017-01-19 18:47:06 UTC
New PR to resolve replacing the previous one:  https://github.com/openshift/origin-web-console/pull/1145

Comment 5 Troy Dawson 2017-01-27 17:46:50 UTC
This has been merged into ocp and is in OCP v3.5.0.10 or newer.

Comment 6 Yanping Zhang 2017-02-03 02:56:25 UTC
Checked on OCP v3.5.0.14, create projects with Display Name "<my display name>" and "my <display name>", when create app from external page, all project are list correctly in "Choose Existing Project" drop down list and can be chosen.
The bug has been fixed, so move it to Verified.

Comment 8 errata-xmlrpc 2017-04-12 19:09:40 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:0884