Description of problem:
When users try to deploy an application from git method on dev console it throws warning message for specific public repos `URL is valid but cannot be reached. If this is a private repository, enter a source secret in Advanced Git Options.`. If we ignore the warning and go ahead the build will be successful although the warning message seems to be misleading.
Getting a warning for url while trying to deploy an application from git method on dev console from a public repo
It should show validated
For this case with an on-prem BitBucket installation the REST API fails with CORS errors.
But the browser (Chrome at least) just throws a generic "TypeError: Failed to fetch" error in this case. So we can not add a special case for CORS errors.
I agree that should NOT show the warning "URL is valid but cannot be reached. If this is a private repository, enter a source Secret in advanced Git options" when the user enters an URL we don't understand and asking for a "Git type". In this case, we should just show the Git type dropdown.
Under this dropdown we show already an info alert "Defaulting Git type to other \n We failed to detect the Git type."
I have the same issue. Can you share information where the "TypeError: Failed to fetch" could be found, to verify if my issue is the same as this case?
Verified on build version: 4.13.0-0.ci-2023-01-27-131032
Browser version: Chrome 105
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 (Important: OpenShift Container Platform 4.13.0 security 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.