Bug 1921949 - Console bug - source code URL broken for gitlab self-hosted repositories
Summary: Console bug - source code URL broken for gitlab self-hosted repositories
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Dev Console
Version: 4.6
Hardware: x86_64
OS: Unspecified
unspecified
high
Target Milestone: ---
: 4.7.0
Assignee: divgupta
QA Contact: Gajanan More
URL:
Whiteboard:
Depends On:
Blocks: 1924224
TreeView+ depends on / blocked
 
Reported: 2021-01-28 22:48 UTC by Bruce Link
Modified: 2021-02-24 15:57 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-02-24 15:57:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 8006 0 None closed Bug 1921949: Fix source code URL for apps created using self-hosted repositories 2021-02-16 11:22:08 UTC
Red Hat Product Errata RHSA-2020:5633 0 None None None 2021-02-24 15:57:30 UTC

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


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