Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1414195 - project display name inside angle brackets will be hidden when create app on external page
project display name inside angle brackets will be hidden when create app on ...
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console (Show other bugs)
3.5.0
Unspecified Unspecified
medium Severity low
: ---
: ---
Assigned To: Robb Hamilton
Yadan Pei
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-01-17 21:01 EST by XiaochuanWang
Modified: 2017-07-24 10 EDT (History)
5 users (show)

See Also:
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 15:09:40 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
display name is <my display name> (25.05 KB, image/png)
2017-01-17 21:01 EST, XiaochuanWang
no flags Details
display name is "my <display name>" (24.82 KB, image/png)
2017-01-17 21:02 EST, XiaochuanWang
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:0884 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.5 RPM Release Advisory 2017-04-12 18:50:07 EDT

  None (edit)
Description XiaochuanWang 2017-01-17 21:01:23 EST
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-17 21:02 EST
Created attachment 1242019 [details]
display name is "my <display name>"
Comment 2 Robb Hamilton 2017-01-18 11:26:48 EST
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 14:36:33 EST
PR to resolve:  https://github.com/openshift/origin-web-console/pull/1135
Comment 4 Robb Hamilton 2017-01-19 13:47:06 EST
New PR to resolve replacing the previous one:  https://github.com/openshift/origin-web-console/pull/1145
Comment 5 Troy Dawson 2017-01-27 12:46:50 EST
This has been merged into ocp and is in OCP v3.5.0.10 or newer.
Comment 6 Yanping Zhang 2017-02-02 21:56:25 EST
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 15:09:40 EDT
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

Note You need to log in before you can comment on or make changes to this bug.