Bug 1921949

Summary: Console bug - source code URL broken for gitlab self-hosted repositories
Product: OpenShift Container Platform Reporter: Bruce Link <bruce_link>
Component: Dev ConsoleAssignee: divgupta
Status: CLOSED ERRATA QA Contact: Gajanan More <gamore>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.6CC: aballant, aos-bugs, ariroy, cjerolim, divgupta, nmukherj
Target Milestone: ---   
Target Release: 4.7.0   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-02-24 15:57:12 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:
Bug Depends On:    
Bug Blocks: 1924224    

Description Bruce Link 2021-01-28 22:48:52 UTC
Description of problem:
In the Topology view there are icons representing pods. If the pod was created from a source code repository, a handle is shown on the lower right of the pod circle icon. It was the case before that clicking on this handle would open the repository holding the source code.

In a case where the pod was created in the current OKD (4.6.0-0.okd-2021-01-23-132511) or earlier versions from the Wildfly s2i image (for example, in the catalogue), the repo URL has been modified so it is no longer correct.

For example, a URL which used to be https://gitlab.infoteach.ca/bdlink/ch1-login/tree/master has been changed after the upgrade to https://infoteach.ca/bdlink/ch1-login/tree/master. This pod would have been created from the repo URL https://gitlab.infoteach.ca/bdlink/ch1-login.git, and identified as a gitlab repository.

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


How reproducible:
100%

Steps to Reproduce:
1. Create Wildfly 20 deployment from catalog Wildfly Builder image
2. use https://gitlab.infoteach.ca/bdlink/ch1-login.git as URL
3. select git type: gitlab 
4. accept rest of defaults and Create
5. Wait for pod to deploy
6. go to topology view
7. Click on lower right "Edit source code" handle

Actual results:
This site cannot be reached.  Incorrect URL https://infoteach.ca/bdlink/ch1-login/tree/master

Expected results:
Open source code page with URL https://gitlab.infoteach.ca/bdlink/ch1-login/tree/master

Additional info:
Worked before upgrading OKD to latest stable release.  OKD team indicated this seems to be an OCP regression

Affects preexisting pods (which used to work) and newly created pods.

Comment 2 Aritra Roy 2021-02-05 06:10:30 UTC
verified on

build: 4.7.0-0.nightly-2021-02-04-031352

browser: 84.0.1 (64-bit)

Comment 5 errata-xmlrpc 2021-02-24 15:57:12 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 (Moderate: OpenShift Container Platform 4.7.0 security, bug fix, and enhancement update), 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/RHSA-2020:5633