Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DS list API may return invalid response when data sets archived with CA Disk #2285

Closed
t1m0thyj opened this issue Oct 2, 2024 · 1 comment · Fixed by #2286
Closed

DS list API may return invalid response when data sets archived with CA Disk #2285

t1m0thyj opened this issue Oct 2, 2024 · 1 comment · Fixed by #2286
Assignees
Labels
bug Something isn't working new The issue wasn't triaged yet
Milestone

Comments

@t1m0thyj
Copy link
Member

t1m0thyj commented Oct 2, 2024

When data sets are archived with CA Disk and have volume=ARCIVE, then z/OSMF APIs may fail to list them with attributes=true.

The List.dataSetsMatchingPattern API works around this by falling back to listing attributes for each data set individually:

// Listing data sets with attributes may fail sometimes, for
// example if a TSO prompt is triggered. If that happens, we
// try first to list them all without attributes, and then fetch
// the attributes for each data set one by one. When an error
// is thrown we record it on the response object. This is a slow
// process but better than throwing an error.

This may fail if the names of any archived data sets begin with the names of any non-archived data sets. For example: A.B.C (not archived) and A.B.C.D (archived). When z/OSMF lists attributes for A.B.C, rather than listing attributes for only 1 data set it parses the pattern as A.B.C* which matches an archived data set that it will choke on.

@t1m0thyj t1m0thyj added bug Something isn't working new The issue wasn't triaged yet labels Oct 2, 2024
@github-project-automation github-project-automation bot moved this to New Issues in Zowe CLI Squad Oct 2, 2024
Copy link

github-actions bot commented Oct 2, 2024

Thank you for creating a bug report.
We will investigate the bug and evaluate its impact on the product.
If you haven't already, please ensure you have provided steps to reproduce the bug and as much context as possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working new The issue wasn't triaged yet
Projects
Status: Closed
Development

Successfully merging a pull request may close this issue.

2 participants