Bug 1665382

Summary: Better to restrict filename of '--to' in 'oc registry login'
Product: OpenShift Container Platform Reporter: XiuJuan Wang <xiuwang>
Component: ocAssignee: Maciej Szulik <maszulik>
Status: CLOSED ERRATA QA Contact: Xingxing Xia <xxia>
Severity: low Docs Contact:
Priority: medium    
Version: 4.1.0CC: aos-bugs, jokerman, mmccomas
Target Milestone: ---   
Target Release: 4.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-04 10:41:49 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:

Description XiuJuan Wang 2019-01-11 08:37:19 UTC
Description of problem:
1.Special characters can be included in filename for '--to'
2.The filename has no length restricted.

Version-Release number of selected component (if applicable):
oc v4.0.0-0.130.0
kubernetes v1.11.0+f67f40dbad


How reproducible:
always

Steps to Reproduce:
1.oc registry login --to=abcd#
2.
3.

Actual results:
abcd# will be generated under current dir

Expected results:
It's better to warn special characters forbidden
Better to restrict filename length

Additional info:

Comment 2 Maciej Szulik 2019-02-28 21:00:53 UTC
This is working as expected, moving to qa.

Comment 3 XiuJuan Wang 2019-03-01 02:22:03 UTC
As comment #2, move it to verify

Comment 6 errata-xmlrpc 2019-06-04 10:41:49 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-2019:0758