zowe / zowe-explorer-vscode

Visual Studio Code Extension for Zowe, which lets users interact with z/OS Data Sets, Unix System Services, and Jobs on a remote mainframe instance. Powered by Zowe SDKs.
Eclipse Public License 2.0
173 stars 92 forks source link

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

Open adam-wolfe opened 4 days ago

adam-wolfe commented 4 days ago

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 https://github.com/zowe/zowe-explorer-vscode/issues/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):

Additional context

github-actions[bot] commented 4 days ago

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.