Bug 1764224

Summary: Incorrect validation pattern on ConsoleCLIDownloads Href field
Product: OpenShift Container Platform Reporter: Jakub Hadvig <jhadvig>
Component: Management ConsoleAssignee: Jakub Hadvig <jhadvig>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.3.0CC: aos-bugs, jokerman, spadgett, yapei
Target Milestone: ---   
Target Release: 4.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1764227 (view as bug list) Environment:
Last Closed: 2020-01-23 11:08:59 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: 1764227    

Description Jakub Hadvig 2019-10-22 13:42:19 UTC
Description of problem:
Validation pattern on ConsoleCLIDownloads Href field is to restrictive.

Version-Release number of selected component (if applicable):
4.3.0-0.ci-2019-10-21-030544

How reproducible:
Always

Steps to Reproduce:
1. Go to `/k8s/cluster/console.openshift.io~v1~ConsoleCLIDownload/~new`
2. Add trailing slash to the `href` field
3. 

Actual results:
Error will ocurre:
Error "Invalid value: "": spec.links.href in body should match '^https://([\w-]+.)+[\w-]+(/[\w- ./?%&=])?$'" for field "spec.links.href".

Expected results:
CR will be created

Additional info:

Comment 3 Yadan Pei 2019-10-24 08:04:28 UTC
Steps to Reproduce:
1. Go to `/k8s/cluster/console.openshift.io~v1~ConsoleCLIDownload/~new` or `/k8s/cluster/console.openshift.io~v1~ConsoleLink/~new`
2. Add trailing slash to the `href` field, CR can be successfully created

Verified on     4.3.0-0.nightly-2019-10-24-004924

Comment 5 errata-xmlrpc 2020-01-23 11:08:59 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, 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/RHBA-2020:0062