Bug 1493439

Summary: [trello jUv32Ycz] Clicking on secret name link on the provision result page redirects to home page
Product: OKD Reporter: Yanping Zhang <yanpzhan>
Component: Management ConsoleAssignee: Samuel Padgett <spadgett>
Status: CLOSED CURRENTRELEASE QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.xCC: aos-bugs, 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: 2017-09-27 13:01:35 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:

Description Yanping Zhang 2017-09-20 08:03:15 UTC
Description of problem:
On env with service catalog, try to create serviceinstance on web console, in the "Binding" step, choose "Create secret for later use", then create. On the result page, there is created secret name link, click on the link, it should redirect to the secret page, but now it redirects to home page, 

Version-Release number of selected component (if applicable):
openshift v3.7.0-alpha.1+1c8041b-505
kubernetes v1.7.0+80709908fd

How reproducible:
Always

Steps to Reproduce:
1.Login web console, on home page, click one serviceclass, eg:MariaDB (Persistent) , on the dialog "Configuration" part, click "Next".
2.On the Binding step, selects the option to create a secret for later use. click create.
3.On the result page, click the created secret name link.

Actual results:
2. Creation succeeds.
3. It redirects to home page.

Expected results:
3. It should redirect to the secret page.

Additional info:

Comment 1 Samuel Padgett 2017-09-20 13:33:39 UTC
Two problems:

* The `canI` check for viewing secrets is not always working. It only works if you've visited the project previously. This means that sometimes the secret name doesn't appear as a link.
* The URL passed to the bind-result component is wrong, so the link isn't working.

Comment 4 Yanping Zhang 2017-09-27 02:01:17 UTC
Tested on origin env with service catalog with version:
openshift v3.7.0-alpha.1+891ae37-675
kubernetes v1.7.0+80709908fd
Now the secret name link on the result page could redirect to the secret page successfully.
The bug has been fixed, so move it to Verified.