-
Notifications
You must be signed in to change notification settings - Fork 118
Downloaded members may receive wrong extension #4250
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't workingpriority-mediumNot functioning - next quarter if capacity permitsNot functioning - next quarter if capacity permitsseverity-lowBug that makes the usage of the Zowe less convenient but doesn't impact key use casesBug that makes the usage of the Zowe less convenient but doesn't impact key use cases
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingpriority-mediumNot functioning - next quarter if capacity permitsNot functioning - next quarter if capacity permitsseverity-lowBug that makes the usage of the Zowe less convenient but doesn't impact key use casesBug that makes the usage of the Zowe less convenient but doesn't impact key use cases
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
StatusShow more project fields
Closed
Describe the bug
If I have a PDS named ADAM.TEST.JCL that contains a member named CBLTEST (to CLG some program for example), then try to save all members or save just the CBLTEST member, the downloaded member will be given a .cbl extension. This differs from how the member is opened by Zowe Explorer (which correctly assignes the .jcl extension).
It appears that the member name is being factored into how the extension is being assigned when we should be relying on the name of the PDS.
To Reproduce
zowe-explorer-vscode/packages/zowe-explorer-api/src/fs/types/datasets.ts
Lines 20 to 32 in e744429
Expected behavior
We should only be basing the extension on the DSN and not the member name, e.g., if I download all members from ADAM.TEST.JCL, every downloaded member should be given the .jcl extension.
Screenshots
Desktop (please complete the following information):
Additional context