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
159 stars 89 forks source link

SMFID is missing for active Jobs and Started Tasks #2711

Open cybersorcerer opened 4 months ago

cybersorcerer commented 4 months ago

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):

github-actions[bot] commented 4 months 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.

JTonda commented 4 months ago

Note: Look into zosmf return data.

cybersorcerer commented 4 months ago

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