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

Opening file in USS view throws error when the active filter is the file's path #2902

Open
benjamin-t-santos opened this issue May 6, 2024 · 1 comment
Labels
bug Something isn't working priority-medium Not functioning - next quarter if capacity permits severity-low Bug that makes the usage of the Zowe less convenient but doesn't impact key use cases

Comments

@benjamin-t-santos
Copy link
Contributor

Describe the bug
If you set the active filter in the Zowe Explorer USS view to a file path, and then try to open that file, an error is displayed and the file is not opened.

To Reproduce

  1. Open the Zowe Explorer USS view
  2. Set the filter to a specific file path (e.g. "/u/user/testdirectory/testfile.txt")
  3. Double-click the file to open it
  4. Error message is displayed:
z/OSMF REST API Error: Rest API failure with HTTP(S) status 500 category: 1 rc: 8 reason: 9 message: Error executing command. exit_code=1 details: - /bin/chtag -p /u/user/testdirectory/testfile.txt/u/user/testdirectory/testfile.txt - chtag: FSUM6180 file \"/u/user/testdirectory/testfile.txt/u/user/testdirectory/testfile.txt\": EDC5135I Not a directory. (errno2=0x0594003C)

Expected behavior
The file should be opened in the editor, or file paths to files should not be accepted as filters.

Screenshots

Screen.Recording.2024-05-06.at.10.24.35.AM.mov

Desktop (please complete the following information):

  • OS: MacOS Sonoma 14.3.1
  • Zowe Explorer Version: 2.15.4
  • (Optional) Zowe CLI Version:
  • (Optional) Are you using Secure Credential Store?

Additional context

I believe it is an issue with the Zowe Explorer USS tree node's fullPath property. It seems like the node is using the active filter as the parent directory, which is in this case is a file and not directory.

@benjamin-t-santos benjamin-t-santos added the bug Something isn't working label May 6, 2024
Copy link

github-actions bot commented May 6, 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.

@zFernand0 zFernand0 added priority-medium Not functioning - next quarter if capacity permits severity-low Bug that makes the usage of the Zowe less convenient but doesn't impact key use cases labels May 21, 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-medium Not functioning - next quarter if capacity permits severity-low Bug that makes the usage of the Zowe less convenient but doesn't impact key use cases
Projects
Status: Medium Priority
Development

No branches or pull requests

2 participants