vscode-extension-for-zowe icon indicating copy to clipboard operation
vscode-extension-for-zowe copied to clipboard

SMFID is missing for active Jobs and Started Tasks

Open cybersorcerer opened this issue 1 year ago • 3 comments

Describe the bug

Hi, first of all thank you for implementing my request to display the SMFID of the LPAR running a job or started task! Well done! However there seems to be a problem. As you can see from the screenshot below, the SMFID is missing for all active Jobs/STCs i.e it is there for ended jobs/stcs only. The SMFID should be displayed for both ended and running jobs/stcs.

thanks in advance

To Reproduce

Steps to reproduce the behavior:

  1. Go to 'Jobs'
  2. Specify a job filter for job/stc (should be a job/stc name with active and ended jobs/stcs)
  3. You should see the smfid is missing for active jobs/stcs

Expected behavior

The smfid should be displayed for ended AND running jobs/stcs

Screenshots SMFID-MISSING

Desktop (please complete the following information):

  • OS: Windows 10 Enterprise 22H2
  • Zowe Explorer Version: V2.14.0
  • Zowe CLI Version: 7.16.2
  • Are you using Secure Credential Store? Yes

cybersorcerer avatar Feb 12 '24 06:02 cybersorcerer

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.

github-actions[bot] avatar Feb 12 '24 06:02 github-actions[bot]

Note: Look into zosmf return data.

JTonda avatar Feb 13 '24 16:02 JTonda

Hi, I thought I'd help with the returned data. I used curl to get the job data of all JOBS/STCS and TSO users of one of our test LPARS in JSON format. Here is the curl command I used:

curl -X GET -k -u "user:password" --header "X-CSRF-ZOSMF-HEADER: dummy" --header "Accept: application/json" --header "Content-Type: text/plain" "https:/zosmf/restjobs/jobs?owner=*&prefix=*&exec-data=y"

I have attached the z/OSMF return data. I have changed all sensitive information. As you can see exec-system and exec-member is returned for both active and ended jobs. I assume something is wrong with the code :-) jobs.json

cybersorcerer avatar Feb 25 '24 13:02 cybersorcerer