Bug 1924224 - Console bug - source code URL broken for gitlab self-hosted repositories
Summary: Console bug - source code URL broken for gitlab self-hosted repositories
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Dev Console
Version: 4.6
Hardware: x86_64
OS: Unspecified
Target Milestone: ---
: 4.6.z
Assignee: divgupta
QA Contact: spathak@redhat.com
Depends On: 1921949
TreeView+ depends on / blocked
Reported: 2021-02-02 20:27 UTC by OpenShift BugZilla Robot
Modified: 2021-02-22 13:55 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2021-02-22 13:54:57 UTC
Target Upstream Version:

Attachments (Terms of Use)
Console bug - source code URL works for gitlab self-hosted repositories (320.00 KB, video/webm)
2021-02-16 20:09 UTC, spathak@redhat.com
no flags Details

System ID Private Priority Status Summary Last Updated
Github openshift console pull 8031 0 None closed [release-4.6] Bug 1924224: Fix source code URL for apps created using self-hosted repositories 2021-02-16 11:17:00 UTC
Red Hat Product Errata RHBA-2021:0510 0 None None None 2021-02-22 13:55:20 UTC

Description OpenShift BugZilla Robot 2021-02-02 20:27:27 UTC
+++ This bug was initially created as a clone of Bug #1921949 +++

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:

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 3 spathak@redhat.com 2021-02-16 20:09:33 UTC
Created attachment 1757349 [details]
Console bug - source code URL works for gitlab self-hosted repositories

Comment 4 spathak@redhat.com 2021-02-16 20:10:01 UTC
Verified on build version: 4.6.0-0.nightly-2021-02-13-034601
Browser version: Chrome 84

Comment 6 errata-xmlrpc 2021-02-22 13:54:57 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 (OpenShift Container Platform 4.6.18 bug fix 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.


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