zowe / zowe-cli-ftp-plugin

Zowe CLI FTP Plugin
Eclipse Public License 2.0
16 stars 12 forks source link

indefinite progress bar when name typo in `zowe zos-ftp download data-set` #143

Closed ATorrise closed 11 months ago

ATorrise commented 11 months ago

Describe the bug

Issue is being opened after an internal customer report.

Customer accidentally entered the smiley face (ctrl-^B) into the command. Found that the command doesn't check for characters like emojis and therefore loops on the loading bar indefinitely. Had to exit with CRTL+C.

C:\Users\<USERINFO>\Test4z_test>zowe zos-ftp download data-set <FAKEDATASET> -f JOB52576.txt^B
Error: ENOENT: no such file or directory, open 'C:\Users\<USERINFO>\Test4z_test\JOB52576.txt☻'
Command Error:
ENOENT: no such file or directory, open 'C:\Users\<USERINFO>\Test4z_test\JOB52576.txt☻'
Imperative encountered an unexpected exception
Command entered: "zowe zos-ftp download data-set <FAKEDATASET> -f JOB52576.txt☻"
Use "zowe zos-ftp download --help" to view groups, commands, and options.
Error Details:
ENOENT: no such file or directory, open 'C:\Users\<USERINFO>\Test4z_test\JOB52576.txt☻'
 __________| 0%  o | Starting transfer...

Expected and actual results There should be a thrown error indicating to user that their file name is invalid

Describe your environment @zowe/zos-ftp-for-zowe-cli version  2.1.3

github-actions[bot] commented 11 months ago

Thank you for creating a bug report. We will investigate the bug and evaluate its impact on the product. If you haven't already, please ensure you have provided steps to reproduce the bug and as much context as possible.