Description of problem:
"Context Dir" and "Git Reference" are empty when clicking "advanced options" after clicking "Try Sample Repository"
Version-Release number of selected component (if applicable):
# oc version
features: Basic-Auth GSSAPI Kerberos SPNEGO
Steps to Reproduce:
1. Click "Add to project" and "Browse Catalog"
2. Click ".NET Core Builder Images 2.0" (or another template which has a sample repository)
3. Click Next
4. [attached image1] Click "Try Sample Repository", application name and git URL are filled.
5. Click "advanced options"
"Git Reference" and "Context Dir" are empty.
For .NET Core 2.0 s2i image, Git Reference should be "dotnetcore-2.0" and "Context Dir" should be "app". (see attached image3)
Once the user clicked "Try Sample Repository" at the dialog (image1), Web console no longer provides "Git Reference" and "Context Dir"
"Git Reference" and "Context Dir" are filled with the valid values.
Created attachment 1360686 [details]
Created attachment 1360687 [details]
Created attachment 1360688 [details]
enterprise-3.7 catalog PR: https://github.com/openshift/origin-web-catalog/pull/579
3.7.z console PR:
v3.7.13 doesn't include the changes yet, will check in next update
Change to MODIFIED since fix not picked in OCP, and it couldn't be tested
*** Bug 1527638 has been marked as a duplicate of this bug. ***
Issue reported in this bug has been fixed in v3.7.35(OCP v3.9.1 also has the fix)
Clicking "Try Sample Repository" in catalog wizard could fill "Context Dir" and "Git Reference" correctly if an imagestream has.
Move to VERIFIED
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, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.