question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Handle profile creation/update for ZE extender profiles requiring credentials when the user leaves them blank

See original GitHub issue

Describe the bug

If a user has the Secure Credential Store (SCS) plug-in for Zowe CLI installed, and is attempting to create a no-credentials (i.e. no username or password) profile for a Zowe Explorer extender whose profile type specifies that username and password are required, they will see an error about secure fields upon profile creation. The next time they restart VS Code, Zowe Explorer activation fails with the same error.

  • This issue also occurs when updating this type of extender profile to have no username or password.

I first saw this issue when testing the Zowe Explorer Extension for FTP, but when @jellypuno and I modified the extender’s zftp_meta.yaml file to set required: false for the user and password properties, the issue went away and we were able to successfully create no-credentials zFTP profiles in Zowe Explorer with SCS installed.

To Reproduce

Steps to reproduce the behavior:

  1. Ensure you have the latest versions of Zowe CLI and the Secure Credential Store for Zowe CLI (SCS) plug-in installed.
  2. In VS Code, install Zowe Explorer (v1.21.0) and Zowe Explorer Extension for FTP (v1.21.0).
  3. Create a zFTP profile with no credentials (i.e. no username or password).
  4. See the following error pop up: Screen Shot 2021-12-21 at 10 02 43 AM
  5. Upon the next restart of VS Code, Zowe Explorer activation will fail and show the same error.

Expected behavior

  • Zowe Explorer:

    • If a Zowe Explorer extender’s meta YAML file specifies that username and password are required, perform input validation to enforce that the user must enter values for these fields.
    • If the user somehow has a no-credentials profile for a Zowe Explorer extender whose meta YAML file requires username and password, then gracefully handle this upon activation (i.e. without an error that causes Zowe Explorer activation to fail).
  • Zowe Explorer Extension for FTP/z/OS FTP Plug-in for Zowe CLI:

    • Reconsider if the username and password fields are truly required, or if they can be made optional.

Desktop (please complete the following information):

  • OS: MacOS and Windows (Thanks @jellypuno for helping me test!)
  • Zowe Explorer Version: 1.21.0
  • (Optional) Zowe CLI Version: Tested with Zowe CLI 6.33.1 (MacOS) and 6.37.0 (Windows)
  • (Optional) Are you using Secure Credential Store? Yes, version 4.1.5

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
KutluOzel-bcommented, Jun 10, 2022

No longer an issue as a result of the removal required fields in config schema.

Please refer to : imperative.ts

see the changes.

Hence closing this issue.

0reactions
KutluOzel-bcommented, Jun 3, 2022

I followed the steps to repro but I couldn’t and deleted v2 tried only with v1 and still no luck. It is likely that I done something wrong while try to repro it ( I’m a new contributor ) but I started to wonder if this is still an issue. Does anyone still able to reproduce it ? Any help is appreciated

Read more comments on GitHub >

github_iconTop Results From Across the Web

22PI2 PI Planning #1717 - zowe/vscode-extension-for-zowe
Handle profile creation/update for ZE extender profiles requiring credentials when the user leaves them blank #1619
Read more >
Tutorial - Develop a SCIM endpoint for user provisioning to ...
To automate provisioning to an application, it requires building and integrating a SCIM endpoint that is access by the Azure AD Provisioning ...
Read more >
Person detection example run error - Espressif/Tflite-Micro ...
Handle profile creation/update for ZE extender profiles requiring credentials when the user leaves them blank, 3, 2021-12-22, 2022-02-04.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found