Description of problem: Webhook urls in BC edit page are invalid with "undefined" included Version-Release number of selected component (if applicable): OCP v3.6.122 How reproducible: Always Steps to Reproduce: 1. $ oc new-app centos/ruby-22-centos7~https://github.com/openshift/ruby-ex.git # Create BC 2. On BC ruby-ex page, click Actions --> Edit --> Show advanced options. In "Triggers" part, check the webhook urls 3. Add webhook (any type), check the webhook url in text box Actual results: 2 and 3: The webhook urls look like: https://...:8443/oapi/v1/namespaces/xxia-test/buildconfigs/ruby-ex/webhooks/undefined/github Click "Click to clipboard", paste, the pasted url also includes "undefined" Check BC Configuration tab, the webhook urls are valid like: https://...:8443/oapi/v1/namespaces/xxia-test/buildconfigs/ruby-ex/webhooks/uaI8TxDyq0WhJwd20JIH/github Expected results: 2 and 3: Should be valid urls, like in BC Configuration tab Additional info:
Created attachment 1290976 [details] invalid-webhook-urls
Commit pushed to master at https://github.com/openshift/origin-web-console https://github.com/openshift/origin-web-console/commit/b27c9acdf6ab5003cc57121722faddc74dc4b503 Bug 1464397 and Bug 1461702 - problems with webhook trigger urls and display
Fixed in https://github.com/openshift/origin-web-console/pull/1763
Tested this issue in openshift v3.6.126.1, the webhooks url is valid without "undefined".
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/RHEA-2017:1716