Skip to content

Zowe CLI V2 - Cannot set properties of undefined (setting 'encodings') #1789

@FALLAI-Denis

Description

@FALLAI-Denis

Describe the bug

After installing Zowe CLI V2, and migrating Zowe CLI profiles from V1 to V2, it became impossible to backup a PDS member from Zowe Explorer.
This triggers an error Cannot set properties of undefined (setting 'encodings').

Used profile from zowe.config.json:

{
    "$schema": "./zowe.schema.json",
    "profiles": {
...
        "TMVS": {
            "type": "zosmf",
            "properties": {
                "host": "tmvs",
                "port": 8444,
                "rejectUnauthorized": false,
                "encoding": 1147
            },
            "secure": [
                "user",
                "password"
            ]
        }
...
    },
    "defaults": {
        "cics": "GMVS-CICS-DUA",
        "db2": "TMVS-DB2-DB2$",
        "endevor": "TMVS-ENDEVOR",
        "endevor-location": "GMVS-ENDEVOR-LOC-ETU-1-S9",
        "ssh": "GMVS-SSH",
        "tso": "TMVS-TSO",
        "zftp": "TMVS-FTP",
        "zosmf": "GMVS"
    },
    "autoStore": true
}

There is no problem for reading members of the PDS, converting from host encoding (1147) to UTF-8 is OK.

To Reproduce

  1. Open a PDS member or create a new one
  2. Request member backup

Screenshots

image

image

Desktop (please complete the following information):

  • OS: Windows 10 20H2
  • Zowe Explorer Version: 2.0.0
  • (Optional) Zowe CLI Version: 7.1.2
  • (Optional) Are you using Secure Credential Store? Implicit

Additional context

No relative log found.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions