zowe / zowe-explorer-vscode

Visual Studio Code Extension for Zowe, which lets users interact with z/OS Data Sets, Unix System Services, and Jobs on a remote mainframe instance. Powered by Zowe SDKs.
Eclipse Public License 2.0
173 stars 92 forks source link

Token related operations may cause invalid profiles when multiple layers are involved #3011

Open zFernand0 opened 3 months ago

zFernand0 commented 3 months ago

Describe the bug

In a scenario where you have both, a project and a global, configuration files many Token related operations (login, logout, switch basic/token, ...) could result in profiles missing from Zowe Explorer

To Reproduce

  1. Have a global_apiml and a project_apiml profiles added to Zowe Explorer
  2. Login to the global_apiml profile
  3. Notice that the project_base profile gets updated with a tokentype and value (in the vault)

    Expected the global_base profile to be udpated

    Screenshots

    GIF: TBD

    Desktop (please complete the following information):

    • OS: Any
    • Zowe Explorer Version: 2.16.3
    • (Optional) Zowe CLI Version: N/A
    • (Optional) Are you using Secure Credential Store? Yes

    Additional context

    This was found while testing the following PR:

github-actions[bot] commented 3 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.

zFernand0 commented 1 day ago

Sorry for the delay, but here is the CLI issue: