Skip to content

Potential regression with extender cross-LPAR copy #3901

@traeok

Description

@traeok

Describe the bug

There seems to be a regression with cross-LPAR copy for extender profiles causing an error to appear when the extender hasn't implemented that API.

To Reproduce

while testing this and doing a copy/paste of a single file I was prompted for member name, then it recognized that it already existed and asked if I would like to overwrite existing which I clicked yes but got a 404 returned Rest API failure with HTTP(S) status 404 This is same LPAR but different profiles, and it previously worked when tested initial introduction of feature

The test steps above should be a copy/paste where there is no overwrite or prompt to replace. This sounds like a valid issue but not sure that my changes have introduced this as I haven't made any changes to Zowe Explorer. I can test again w/ the CLI to see if I can reproduce it there (as I've only made a code change to the SDKs), if I can't I think we should address it separately.

In addition, the error you're seeing is from a change made in ZE from 9 months ago, introduced in #3387:

if (node.getProfile().name === clipboardContent[0].profileName) {
await ZoweExplorerApiRegister.getMvsApi(node.getProfile()).copyDataSetMember(
{ dsn: content.dataSetName, member: content.memberName },
{ dsn: node.getLabel().toString(), member: memberName },
{ replace: replace == "replace" ? true : false }
);
} else {
if (mvsApi?.copyDataSetCrossLpar == null) {
await Gui.errorMessage(vscode.l10n.t("Copying data sets cross lpars is not yet supported for this profile."));
return;
}

Originally posted by @traeok in #3896 (comment)

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpriority-highProduction outage - this quarter or at least next quarterseverity-mediumBug where workaround exists or that doesn't prevent the usage of Zowe. Just makes it more complex.

Type

No type

Projects

Status

High Priority

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions