Description of problem: Link "Create New Secret" is not shown on BC edit page when accessed by direct url. DC edit page has no this problem Version-Release number of selected component (if applicable): openshift v3.5.0.18 How reproducible: Always Steps to Reproduce: 1. Create BC $ oc new-app centos/ruby-22-centos7~https://github.com/openshift/ruby-ex.git 2. Come to BC edit page by accessing direct url: "https://<master:port>/console/project/xxia-test/edit/builds/ruby-ex" 3. Click "Show advanced options", check link "Create New Secret" under parts "Pull Secret", "Push Secret" 4. As comparison, come to BC edit page by: on overview page, click Builds --> Builds --> ruby-ex --> Actions --> Edit Then check step 3 again Actual results: 2. Link "Create New Secret" is NOT shown under "Pull Secret", "Push Secret" 4. Link is shown Expected results: 2. Link should be shown as step 4 Additional info:
Fixed for enterprise 3.5 in https://github.com/openshift/origin-web-console/pull/1281 Fixed for master in https://github.com/openshift/origin-web-console/pull/1280
This has been merged into ocp and is in OCP v3.5.0.34 or newer.
Checked on openshift v3.5.0.34 Steps to test: 1. Create BC $ oc new-app centos/ruby-22-centos7~https://github.com/openshift/ruby-ex.git 2. Come to BC edit page by accessing direct url: "https://<master:port>/console/project/xxia-test/edit/builds/ruby-ex" 3. Click "Show advanced options", check link "Create New Secret" under parts "Source Secret", "Pull Secret", "Push Secret", "Build Secret" 4. As comparison, come to BC edit page by: on overview page, click Builds --> Builds --> ruby-ex --> Actions --> Edit Actual restults: 3. There is link "Create New Secret" under "Source Secret", but still no "Create New Secret" under "Pull Secret", "Push Secret", "Build Secret". 4. Link is shown under all parts. From the result of step 3, the issue is still reproduced, so assign it back.
The linked pull request was a fix for a different page (add to project).
OK the remaining issue can probably just go into 3.6 at this point
There is also a runtime error in the console. TypeError: Cannot read property 'secret' of undefined at Scope.$scope.canAddSourceSecret (oscSourceSecrets.js:26) at fn (eval at compile (angular.js:15126), <anonymous>:4:245) at Scope.$digest (angular.js:17828) at Scope.$apply (angular.js:18102) at done (angular.js:12082) at completeRequest (angular.js:12291) at XMLHttpRequest.requestLoaded (angular.js:12219)
Commit pushed to master at https://github.com/openshift/origin-web-console https://github.com/openshift/origin-web-console/commit/95a277843519a026ca207140f3bfd2624e0f454b Bug 1421097 - Fix problems with secret links on build config page * Fix missing "Create Secret" link if the page is accessed directly by URL * Fix runtime error in `canAddSourceSecret` https://bugzilla.redhat.com/show_bug.cgi?id=1421097
enterprise-3.5 PR: https://github.com/openshift/origin-web-console/pull/1305
This has been merged into ocp and is in OCP v3.5.0.37 or newer.
Tested on OCP v3.5.0.37 Checked on external bc edit page, there are links "Create New Secret" under "Source Secret", "Pull Secret", "Push Secret", but still lack a link "Create New Secret" under "Build Secret". Pls have a check, thx! In the console, there is no runtime error in `canAddSourceSecret` now. This issue is fixed.
(In reply to Yanping Zhang from comment #11) > Tested on OCP v3.5.0.37 > > Checked on external bc edit page, there are links "Create New Secret" under > "Source Secret", "Pull Secret", "Push Secret", but still lack a link "Create > New Secret" under "Build Secret". Pls have a check, thx! > > In the console, there is no runtime error in `canAddSourceSecret` now. This > issue is fixed. Fixes for the for the follow-on issue: master https://github.com/openshift/origin-web-console/pull/1317 enterprise-3.5 https://github.com/openshift/origin-web-console/pull/1318
Commit pushed to master at https://github.com/openshift/origin-web-console https://github.com/openshift/origin-web-console/commit/2716958732552612589d99aad8203276db414de9 Bug 1421097: Fix create secret link for build secrets https://bugzilla.redhat.com/show_bug.cgi?id=1421097
This has been merged into ocp and is in OCP v3.5.0.38 or newer.
"Create New Secret" displays under "Pull Secret" and under "Push Secret" individually and correctly. Verified on Openshift v3.5.0.40