Skip to content

ProfileInfo.mergeArgsForProfile regression: Secure properties in project base shown as missingArgs #2569

@traeok

Description

@traeok

Describe the bug

When calling the ProfileInfo.mergeArgsForProfile function in an environment with a project-level team configuration, the values for secure credentials are not returned as knownArgs if they are stored in a base profile.

Expected and actual results

Expected: Secure credentials accessible in project_base are returned in knownArgs with the argValue correctly populated (when getSecureVals is true).
Actual: Secure credentials accessible in project_base are returned in missingArgs without an argValue, even when getSecureVals is true.

Output shown from API:
Image

JSON output for mergedArgs.missingArgs:

"missingArgs": [
  {
    "argName": "user",
    "dataType": "string",
    "argValue": undefined,
    "argLoc": {
      "locType": 1,
      "osLoc": [
        "c:\\Users\\##########\\Desktop\\test-workspace\\zowe.config.json",
      ],
      "jsonLoc": "profiles.project_base.properties.user",
    },
    "inSchema": true,
    "secure": true,
  },
  {
    "argName": "password",
    "dataType": "string",
    "argValue": undefined,
    "argLoc": {
      "locType": 1,
      "osLoc": [
        "c:\\Users\\##########\\Desktop\\test-workspace\\zowe.config.json",
      ],
      "jsonLoc": "profiles.project_base.properties.password",
    },
    "inSchema": true,
    "secure": true,
  },
]

Secure values are definitely in the vault:
Image

Describe your environment

  • Zowe CLI version installed (run command zowe --version): N/A (not using CLI for test)
  • Installed plug-ins and their version numbers (run command zowe plugins list --short): N/A (not affected by plugins)
  • Node.js and NPM versions installed (run node --version, npm --version): Node 22, NPM 10.9.0
  • Environment variables in use: N/A
  • Operating system and version: Windows 11 24H2
  • Shell/terminal (bash, cmd, powershell, etc...): N/A
  • Daemon mode enabled or disabled: N/A (issue with SDKs)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority-mediumNot functioning - next quarter if capacity permitsseverity-highBug for which there may be workaround but limits the usage of the Zowe for major use cases

    Type

    No type

    Projects

    Status

    Medium Priority

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions