Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default responseTimeout=0 Causes Zowe CLI Error #1016

Closed
dkelosky opened this issue Sep 15, 2020 · 3 comments · Fixed by #1120
Closed

Default responseTimeout=0 Causes Zowe CLI Error #1016

dkelosky opened this issue Sep 15, 2020 · 3 comments · Fixed by #1120
Labels
enhancement New feature or request Profiles

Comments

@dkelosky
Copy link
Contributor

Is your feature request related to a problem? Please describe.

If I create a profile in Zowe Explorer and bypass this prompt by hitting enter:
image

My profile is created with:
responseTimeout: 0

Then if I run a command like zowe files download ds "some.data.set(member)" --zosmf-p ze-profile where ze-profile is a profile I created with Zowe Explorer, I get the following error on the CLI:

Invalid numeric value specified for option:
--responseTimeout

You specified:
0

Value must be between 5 and 600 (inclusive)

Describe the solution you'd like

Perhaps Zowe Explorer should create the profile with a default value.

Describe alternatives you've considered

Additional context

@dkelosky dkelosky added the enhancement New feature or request label Sep 15, 2020
@zFernand0
Copy link
Member

Perhaps Zowe Explorer should create the profile with a default value.

or better yet, ZE could avoid adding optional fields to the profile if the user didn't specify a value for it. 😋

@dastagg
Copy link

dastagg commented Oct 1, 2020

Just so you know:

I can confirm that I have seen (a few) Profiles created through the Zowe Explorer Interface that did have:
responseTimeout: 0
as a parameter in their Profile.

But today( Oct 1, 2020) , using Zowe Explorer 1.9.0:
I created a profile.
It did ask for:
The base path for your API mediation layer instance
The encoding for download and upload of files

But it did not ask for:
The maximum amount of time.

By not entering any information and hitting "Enter" for each of the two last options it created this profile:

cat Test3.yaml 
host: 192.168.2.5
port: 10443
user: Test3
password: test3
rejectUnauthorized: false
encoding: 0

By not entering any information and hitting "Esc" for each of the two last options it created this profile:

$ cat Test4.yaml 
host: 192.168.2.6
port: 10043
user: Test4
password: test4
rejectUnauthorized: false

(yeah, I don't have zowe secure installed on this computer.)

@jellypuno
Copy link
Contributor

Closing issue. Fix is merged in v1.12.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Profiles
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants