Bug 1266402 - [fork][origin_userinterface_538]Show incorrect webhook url in /console/project/<project name>/browse/builds/<buildname> page
Summary: [fork][origin_userinterface_538]Show incorrect webhook url in /console/projec...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Management Console
Version: 3.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Jessica Forrester
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-09-25 08:09 UTC by weiwei jiang
Modified: 2015-11-23 21:17 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-23 21:17:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description weiwei jiang 2015-09-25 08:09:32 UTC
Description of problem:
After  create an app which is from a git repo, check the webhook for the buildconfig, and found the webhook is incorrent.
https://<PULIC MASTER>:8443/oapi/v1/namespaces/<namespaces>/buildconfigs

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

How reproducible:
always

Steps to Reproduce:
1.Create a template in namespaces with https://raw.githubusercontent.com/openshift/origin/master/examples/sample-app/application-template-stibuild.json
2.Create an app from the template
3.Check the build webhook url for the app in /console/project/<project name>/browse/builds/<buildname> page

Actual results:
Display incorrent webhook url
https://<PULIC MASTER>:8443/oapi/v1/namespaces/<namespace name>/buildconfigs

Expected results:
For github:
https://<PUBLIC MASTER>:8443/oapi/v1/namespaces/<PROJECT NAME>/buildconfigs/<BUILD NAME>/webhooks/secret101/github 
For generic:
https://<PUBLIC MASTER>:8443/oapi/v1/namespaces/<PROJECT NAME>/buildconfigs/<BUILD NAME>/webhooks/secret101/generic

Additional info:

Comment 1 Jessica Forrester 2015-09-25 15:12:12 UTC
Fixed in https://github.com/openshift/origin/pull/4726

Comment 2 Wei Sun 2015-09-28 06:33:12 UTC
Verified on devenv-fedora_2411

For github:
https://<public master>:8443/oapi/v1/namespaces/wsuntest/buildconfigs/ruby-sample-build/webhooks/secret101/github

For generic:
https://<public master>m:8443/oapi/v1/namespaces/wsuntest/buildconfigs/ruby-sample-build/webhooks/secret101/generic


Note You need to log in before you can comment on or make changes to this bug.