Bug 1485892

Summary: Web console hangs on project overview if Deployment Config name is just digits
Product: OpenShift Container Platform Reporter: Brendan Mchugh <bmchugh>
Component: Management ConsoleAssignee: Samuel Padgett <spadgett>
Status: CLOSED ERRATA QA Contact: XiaochuanWang <xiaocwan>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.5.1CC: aos-bugs, bmchugh, erich, jokerman, mmccomas
Target Milestone: ---   
Target Release: 3.5.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Previously, the web console overview would not finish loading if a resource name contained only digits, for example deployment config "54321". The problem has been fixed, and the overview works as expected for any valid resource name.
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-10-25 13:06: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:

Description Brendan Mchugh 2017-08-28 11:26:35 UTC
Description of problem:
Navigating to a project overview page hangs indefinitely if the project contains a dc named with just digits.


Version-Release number of selected component (if applicable):
openshift v3.5.5.26
kubernetes v1.5.2+43a9be4
etcd 3.1.0


How reproducible:
Always

Steps to Reproduce:
1. Create new project
# oc new-app centos/ruby-22-centos7~https://github.com/openshift/ruby-ex.git --name='x54321'

2. export current DC
# oc export dc/x54321 > break.yaml

3. Scale down DC
# oc scale --replicas=0 dc/x54321

4. Edit DC name in break.yaml from x54321 to "54321"

5. Create new DC
# oc create -f break.yaml 
deploymentconfig "54321" created

6. Login to Web Console
7. Click on project name containing the the above deploymentconfig

Actual results:
Web Console freezes while trying to load project overview page with browser asking to wait/stop repeatedly.

Expected results:
Web Console should load project overview page.

Additional info:

Comment 1 Samuel Padgett 2017-08-28 11:47:07 UTC
This does not appear to be a problem in the new overview in 3.6.

Comment 2 Samuel Padgett 2017-08-28 12:23:49 UTC
It looks like the call to _.set here is incorrectly adding a length property to the object, which later causes it to be treated as an array:

https://github.com/openshift/origin-web-console/blob/enterprise-3.5/app/scripts/services/labels.js#L60

The function is not used in 3.6, so the bug doesn't happen in 3.6.

Comment 7 XiaochuanWang 2017-09-15 09:35:45 UTC
This is not reproduced, verified on OCP 3.5.5.31.27-1:
OpenShift Master:     v3.5.5.31.27
Kubernetes Master:    v1.5.2+43a9be4

Comment 9 errata-xmlrpc 2017-10-25 13:06: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:3049