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

Issue with listing data sets after opening with encoding #3347

Closed
adam-wolfe opened this issue Dec 5, 2024 · 1 comment · Fixed by #3348
Closed

Issue with listing data sets after opening with encoding #3347

adam-wolfe opened this issue Dec 5, 2024 · 1 comment · Fixed by #3348
Assignees
Labels
bug Something isn't working priority-high Production outage - this quarter or at least next quarter severity-high Bug for which there may be workaround but limits the usage of the Zowe for major use cases

Comments

@adam-wolfe
Copy link
Contributor

Describe the bug

If I open a data set in a specific encoding, then provide a search/filter for a data set that does not exist, then enter a filter that should result in data sets being listed, I get TypeError: Cannot read properties of undefined (reading 'startsWith')

To Reproduce

  1. Open a data set with encoding
  2. Enter a new filter that will not return any results (i.e., enter a filter that would not find any data sets/members)
  3. Enter a new filter that should return results
  4. Get error message

Expected behavior

I should see a list of data sets.

Screenshots

EncodingIssue

Desktop (please complete the following information):

  • OS: Win 10
  • Zowe Explorer Version: 3.0.3 and latest build of 3.1.0 pre-release
  • (Optional) Zowe CLI Version:
  • (Optional) Are you using Secure Credential Store?

Additional context

More complete logs (produced using 3.0.3):

Opening filter menu:

[2024/12/05 09:40:24] [TRACE] DatasetTree.filterPrompt called.
[2024/12/05 09:40:24] [TRACE] DatasetTree.datasetFilterPrompt called.
[2024/12/05 09:40:24] [TRACE] ZoweTreeProvider.checkCurrentProfile called.
[2024/12/05 09:40:24] [TRACE] Profiles.getInstance called.
[2024/12/05 09:40:24] [TRACE] Profiles.checkCurrentProfile called.
[2024/12/05 09:40:24] [TRACE] Profiles.getProfileInfo called.
[2024/12/05 09:40:24] [TRACE] Profiles.getProfileSetting called.
[2024/12/05 09:40:24] [TRACE] Profiles.validateProfiles called.
[2024/12/05 09:40:24] [TRACE] Profiles.getInstance called.
[2024/12/05 09:40:24] [TRACE] Profiles.getProfileInfo called.
[2024/12/05 09:40:24] [TRACE] ZoweTreeProvider.nodeDataChanged called.
[2024/12/05 09:40:24] [TRACE] ZoweTreeProvider.nodeDataChanged called.
[2024/12/05 09:40:24] [TRACE] ZoweTreeProvider.nodeDataChanged called.
[2024/12/05 09:40:24] [TRACE] Profiles.getInstance called.
[2024/12/05 09:40:24] [TRACE] ZoweTreeProvider.refresh called.
[2024/12/05 09:40:24] [TRACE] ZoweTreeProvider.getTreeItem called.
[2024/12/05 09:40:24] [TRACE] ZoweTreeProvider.getTreeItem called.
[2024/12/05 09:40:24] [TRACE] ZoweTreeProvider.getTreeItem called.
[2024/12/05 09:40:24] [TRACE] Profiles.getInstance called.
[2024/12/05 09:40:24] [DEBUG] Prompting the user for a data set pattern
[2024/12/05 09:40:24] [TRACE] PersistentFilters.getSearchHistory called.
[2024/12/05 09:40:24] [TRACE] PersistentFilters.getSearchHistory called.
[2024/12/05 09:40:24] [TRACE] DatasetTree.getChildren called.
[2024/12/05 09:40:24] [TRACE] ZoweDatasetNode.getChildren called for lpar1.zosmf.
[2024/12/05 09:40:24] [TRACE] Profiles.getInstance called.
[2024/12/05 09:40:24] [TRACE] ZoweDatasetNode.getDatasets called.
[2024/12/05 09:40:25] [TRACE] ZoweDatasetNode.setEncoding called.
[2024/12/05 09:40:25] [TRACE] DatasetTree.getChildren called.
[2024/12/05 09:40:25] [TRACE] ZoweTreeProvider.getTreeItem called.
[2024/12/05 09:40:25] [TRACE] ZoweTreeProvider.getTreeItem called.
[2024/12/05 09:40:25] [TRACE] ZoweTreeProvider.getTreeItem called.
[2024/12/05 09:40:25] [TRACE] ZoweTreeProvider.getTreeItem called.
[2024/12/05 09:40:25] [TRACE] ZoweTreeProvider.getTreeItem called.
[2024/12/05 09:40:25] [TRACE] DatasetTree.getChildren called.
[2024/12/05 09:40:25] [TRACE] ZoweDatasetNode.getChildren called for lpar1.zosmf.
[2024/12/05 09:40:25] [TRACE] Profiles.getInstance called.
[2024/12/05 09:40:25] [TRACE] ZoweDatasetNode.getDatasets called.
[2024/12/05 09:40:25] [TRACE] ZoweDatasetNode.setEncoding called.

Selecting a filter and executing the search:

[2024/12/05 09:40:56] [TRACE] ProfilesUtils.syncSessionNode called.
[2024/12/05 09:40:56] [TRACE] DatasetTree.getChildren called.
[2024/12/05 09:40:56] [TRACE] ZoweDatasetNode.getChildren called for lpar1.zosmf.
[2024/12/05 09:40:56] [TRACE] Profiles.getInstance called.
[2024/12/05 09:40:56] [TRACE] ZoweDatasetNode.getDatasets called.
[2024/12/05 09:40:56] [TRACE] ZoweDatasetNode.setEncoding called.
[2024/12/05 09:40:56] [ERROR] TypeError: Cannot read properties of undefined (reading 'startsWith')
{
  errorDetails: [TypeError: Cannot read properties of undefined (reading 'startsWith')
  	at Fe.setEncoding (c:\Users\me\.vscode\extensions\zowe.vscode-extension-for-zowe-3.1.0-SNAPSHOT\out\src\main.extension.js:64:24000)
  	at new Fe (c:\Users\me\.vscode\extensions\zowe.vscode-extension-for-zowe-3.1.0-SNAPSHOT\out\src\main.extension.js:64:12388)
  	at Fe.<anonymous> (c:\Users\me\.vscode\extensions\zowe.vscode-extension-for-zowe-3.1.0-SNAPSHOT\out\src\main.extension.js:64:17361)
  	at Generator.next (<anonymous>)
  	at r (c:\Users\me\.vscode\extensions\zowe.vscode-extension-for-zowe-3.1.0-SNAPSHOT\out\src\main.extension.js:64:11949)
  	at process.processTicksAndRejections (node:internal/process/task_queues:95:5)],
  apiType: 'mvs',
  profile: undefined
}
Copy link

github-actions bot commented Dec 5, 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.

@JTonda JTonda added priority-high Production outage - this quarter or at least next quarter severity-high Bug for which there may be workaround but limits the usage of the Zowe for major use cases labels Dec 5, 2024
@zowe-robot zowe-robot moved this from New Issues to High Priority in Zowe Explorer for VS Code Dec 5, 2024
@traeok traeok assigned traeok and unassigned adam-wolfe Dec 5, 2024
@github-project-automation github-project-automation bot moved this from High Priority to Closed in Zowe Explorer for VS Code Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority-high Production outage - this quarter or at least next quarter severity-high Bug for which there may be workaround but limits the usage of the Zowe for major use cases
Projects
Status: Closed
Development

Successfully merging a pull request may close this issue.

3 participants