Bug 1485892 - Web console hangs on project overview if Deployment Config name is just digits
Summary: Web console hangs on project overview if Deployment Config name is just digits
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 3.5.1
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 3.5.z
Assignee: Samuel Padgett
QA Contact: XiaochuanWang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-08-28 11:26 UTC by Brendan Mchugh
Modified: 2020-12-14 09:44 UTC (History)
5 users (show)

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.
Clone Of:
Environment:
Last Closed: 2017-10-25 13:06:40 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:3049 0 normal SHIPPED_LIVE OpenShift Container Platform 3.6, 3.5, and 3.4 bug fix and enhancement update 2017-10-25 15:57:15 UTC

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


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