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

401 after refreshing APIML token when trying to view job spool #3289

Closed
adam-wolfe opened this issue Oct 31, 2024 · 3 comments · Fixed by #3302
Closed

401 after refreshing APIML token when trying to view job spool #3289

adam-wolfe opened this issue Oct 31, 2024 · 3 comments · Fixed by #3302
Assignees
Labels
bug Something isn't working priority-high Production outage - this quarter or at least next quarter severity-medium Bug where workaround exists or that doesn't prevent the usage of Zowe. Just makes it more complex.

Comments

@adam-wolfe
Copy link
Contributor

adam-wolfe commented Oct 31, 2024

Describe the bug

If I have an expired token, reauthenticate, list jobs, then try to view the spool files, I get an error 401. This behaves similarly to #3150, except with viewing job spool rather than members.

To Reproduce

  1. Start VS Code with an expired APIML token.
  2. Try to list data sets and get prompted to refresh your token.
  3. Refresh your token by reauthenticating.
  4. List jobs by user ID
  5. Expand a job and click on a spool file
  6. Get an error 401

Not sure if it's relevant, but I am using nested profiles for APIML connections.

Expected behavior

The new token should be used when trying to download spool files.

Screenshots

Desktop (please complete the following information):

  • OS:
  • Zowe Explorer Version: built from main as of dbce388
  • (Optional) Zowe CLI Version:
  • (Optional) Are you using Secure Credential Store?

Additional context

Copy link

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 the severity-medium Bug where workaround exists or that doesn't prevent the usage of Zowe. Just makes it more complex. label Nov 5, 2024
@JTonda
Copy link

JTonda commented Nov 5, 2024

#3243 - This PR should improve the experience of getting a 401 error when opening a file in the editor.

@JTonda JTonda added the priority-high Production outage - this quarter or at least next quarter label Nov 5, 2024
@zowe-robot zowe-robot moved this from New Issues to High Priority in Zowe Explorer for VS Code Nov 5, 2024
@traeok
Copy link
Member

traeok commented Nov 5, 2024

#3243 - This PR should improve the experience of getting a 401 error when opening a file in the editor.

Update - sorry for the confusion, but this PR will not improve this behavior as we have outstanding bugs with the credential prompt that need resolved. Once those are fixed, users can update credentials through the Manage Profile menu. The "Try again" button will work as expected in the editor, using the new creds.

We cannot prompt the users from the provider to enter in credentials as this would be a breaking change for extenders calling readFile.

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-medium Bug where workaround exists or that doesn't prevent the usage of Zowe. Just makes it more complex.
Projects
Status: Closed
Development

Successfully merging a pull request may close this issue.

3 participants