Bug 1369338

Summary: When adding BC env with same name, we got different result from BC environment tab and BC edit page
Product: OKD Reporter: Yadan Pei <yapei>
Component: Management ConsoleAssignee: bpeterse
Status: CLOSED CURRENTRELEASE QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.xCC: aos-bugs, jforrest, mmccomas
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-19 13:55:43 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:

Description Yadan Pei 2016-08-23 07:41:10 UTC
Description of problem:
When adding BC env with same name, we got different result from BC environment tab and BC edit page

Version-Release number of selected component (if applicable):
openshift v1.3.0-alpha.3+31f6add-dirty(based on latest origin-web-console commit at 1c4709f)
kubernetes v1.3.0+507d3a7
etcd 2.3.0+git

How reproducible:
Always

Steps to Reproduce:
1.Create app from image on web console
2.Go to Builds -> Environment tab
3.Add one pair of Name/Value  bcname:bcvalue1
4.Add another pair of Name/Value with same Name, bcname:bcvalue1update
5.Click "Actions -> Edit" to go to edit/builds page
6.Check BC environment via CLI
# oc get bc <bcname> -o yaml 
<..snip...>
      env:
      - name: bcname
        value: bcvalue1
      - name: bcname
        value: bcvalue1update
<..snip...>

Actual results:
4.On Builds Environment tab, two pairs of Name/Value are shown: bcname:bcvalue1, bcname:bcvalue1update
5.Only one pair of Name/Value is displayed: bcname:bcvalue1update
6.Two pairs of Name/Value are shown

Expected results:
Should get the same result for 4,5,6


Additional info:

Comment 1 bpeterse 2016-08-23 20:11:21 UTC
PR merged: https://github.com/openshift/origin-web-console/pull/456

Comment 2 Jessica Forrester 2016-08-23 23:32:44 UTC
merging to origin in https://github.com/openshift/origin/pull/10605

Comment 3 Yadan Pei 2016-08-24 08:20:08 UTC
Checked against origin-web-console(based on latest origin-web-console commit 'd24e068')


Now after adding envs with same name at BC environmenttab, edit/builds page shows all envs 

Move to VERIFIED