Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1485892 - Web console hangs on project overview if Deployment Config name is just digits
Web console hangs on project overview if Deployment Config name is just digits
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console (Show other bugs)
3.5.1
Unspecified Unspecified
unspecified Severity medium
: ---
: 3.5.z
Assigned To: Samuel Padgett
XiaochuanWang
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-08-28 07:26 EDT by Brendan Mchugh
Modified: 2017-10-25 09:06 EDT (History)
5 users (show)

See Also:
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 09:06: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)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:3049 normal SHIPPED_LIVE OpenShift Container Platform 3.6, 3.5, and 3.4 bug fix and enhancement update 2017-10-25 11:57:15 EDT

  None (edit)
Description Brendan Mchugh 2017-08-28 07:26:35 EDT
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 07:47:07 EDT
This does not appear to be a problem in the new overview in 3.6.
Comment 2 Samuel Padgett 2017-08-28 08:23:49 EDT
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 05:35:45 EDT
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 09:06: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:3049

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