Bug 1242313

Summary: Template using Custom BuildConfig causes JavaScript error in Console
Product: OpenShift Container Platform Reporter: Andrew Block <andrew.block>
Component: Management ConsoleAssignee: Jessica Forrester <jforrest>
Status: CLOSED DUPLICATE QA Contact: Yanping Zhang <yanpzhan>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.0.0CC: jliggitt, jokerman, libra-bugs, libra-onpremise-devel, mmccomas
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-07-15 14:48: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
templ none

Description Andrew Block 2015-07-13 02:20:12 UTC
Description of problem:

If a custom BuildConfig in defined in a template, when attempting to use the template during the creation of an application from a template, an JavaScript error occurs obscuring the template parameters from being displayed or modified.

The following error is shown in the Chrome (43.0.2357.132 64bit) developer console referencing vendor.js (5301)

TypeError: Cannot read property 'namespace' of undefined
    at scripts.js:2557
    at scripts.js:1600
    at Object.f [as forEach] (vendor.js:3208)
    at n (scripts.js:1598)
    at scripts.js:1671
    at i (vendor.js:5547)
    at vendor.js:5555
    at l.$get.l.$eval (vendor.js:5835)
    at l.$get.l.$digest (vendor.js:5792)
    at l.$get.l.$apply (vendor.js:5857)

The template can still be instantiated successfully from the oc CLI tool


Version-Release number of selected component (if applicable):

OpenShift Enterprise 3.0.0


How reproducible:
Always


Steps to Reproduce:
1. Use Template with custom BuildConfig strategy
2. Using web console, create a new application using the template. 
3. JS error occurs where parameters can not be managed

Actual results:
JavaScript error occurs when creating an application from a template with a Custom BuildConfig

Expected results:
Parameters in a template can be viewed and modified in the web console

Additional info:

Comment 1 Andrew Block 2015-07-13 02:20:44 UTC
Created attachment 1051272 [details]
templ

Comment 3 Jordan Liggitt 2015-07-15 14:48:40 UTC

*** This bug has been marked as a duplicate of bug 1242312 ***