-
Notifications
You must be signed in to change notification settings - Fork 118
getExtension does not work as expected #4258
Copy link
Copy link
Open
Labels
V4bugSomething isn't workingSomething isn't workingpriority-mediumNot functioning - next quarter if capacity permitsNot functioning - next quarter if capacity permitsseverity-mediumBug where workaround exists or that doesn't prevent the usage of Zowe. Just makes it more complex.Bug where workaround exists or that doesn't prevent the usage of Zowe. Just makes it more complex.
Metadata
Metadata
Assignees
Labels
V4bugSomething isn't workingSomething isn't workingpriority-mediumNot functioning - next quarter if capacity permitsNot functioning - next quarter if capacity permitsseverity-mediumBug where workaround exists or that doesn't prevent the usage of Zowe. Just makes it more complex.Bug where workaround exists or that doesn't prevent the usage of Zowe. Just makes it more complex.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
StatusShow more project fields
Medium Priority
Describe the bug
When testing #4255 I was the downloaded files are only being
txtdespite my PDS names matching theDS_EXTENSION_MAP, and with "override extension" being disabled.I tested this both before the change and after the change and it seems to be a bug in both, i.e. in the getExtension function, so not to do with that change.
For example, MY.USERID.TESTJCL contains JCL members, but they are all downloading to
.txt, despite the fact that "JCL" is in "TESTJCL".When I disable the JCL support extension, the members in that TESTJCL PDS indeed do not open up as JCL. But obviously I've had it enabled the whole time, so I only noticed this issue once I had done the download on the PDS.
Note that I do have
**/*.TESTJCL*{,/*}in my files.associations setting but since getExtension doesn't take files.associations setting into account, it doesn't have any affect for opening or downloading the files from Zowe Explorer (only for local files).To Reproduce
TESTJCLname.txtinstead of.jclExpected behavior
Since the PDS name contains "JCL" in it, the members should be downloaded as
.jclScreenshots
Desktop (please complete the following information):
Additional context