Bug 1464397

Summary: Webhook urls in BC edit page are invalid with "undefined" included
Product: OpenShift Container Platform Reporter: Xingxing Xia <xxia>
Component: Management ConsoleAssignee: Jessica Forrester <jforrest>
Status: CLOSED ERRATA QA Contact: XiaochuanWang <xiaocwan>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.6.0CC: aos-bugs, hasha, jokerman, mmccomas, smunilla
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: 2017-08-10 05:28:56 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
invalid-webhook-urls none

Description Xingxing Xia 2017-06-23 10:53:01 UTC
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:

Comment 1 Xingxing Xia 2017-06-23 10:59:09 UTC
Created attachment 1290976 [details]
invalid-webhook-urls

Comment 2 openshift-github-bot 2017-06-23 16:41:12 UTC
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

Comment 3 Jessica Forrester 2017-06-23 16:42:28 UTC
Fixed in https://github.com/openshift/origin-web-console/pull/1763

Comment 5 shahan 2017-06-29 03:31:46 UTC
Tested this issue in openshift v3.6.126.1, the webhooks url is valid without "undefined".

Comment 7 errata-xmlrpc 2017-08-10 05:28:56 UTC
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