community icon indicating copy to clipboard operation
community copied to clipboard

Get HTTP 500 error trying to browse datasets

Open mhammack opened this issue 1 year ago • 6 comments

Describe the bug I'm not sure this is really a bug or just a lack of documentation. In VSCode, I am apparently connecting the ZOWE. However, when I try to add datasets (may also affect USS and Jobs) to the profile, I get an HTTP error and looking at the 'details' it tells me ACCTNUM = "*" isn't defined. I checked and sure enough it wasn't defined. However, rather than using ACCTNUM *, I want to use a valid, defined ACCTNUM value, but I can't find anywhere to add it, nor have I found ANY documentation on how to add it.

This might be a security issue in some locations.

Steps to Reproduce

  1. Define a profile to connect to z/OS via zosmf
  2. Use the search button to find datasets

Expected behavior I should be able to specify the ACCTNUM value to be stored in the profile or at least get prompted during the logon process.

Screenshots If applicable, add screenshots to help explain your problem.

Logs

Details

  • Version and build number: V2.11.2
  • Test environment: z/OS 2.5, RACF

Web Browser Details (if the bug relates to Zowe Desktop usage):

  • OS: [e.g. macOS, Windows]
  • Browser [e.g. Chrome, Safari]
  • Version [e.g. 71.0.3578.98]

REST API client (in case of REST API issue):

  • Technology: Node.js 18.15.0
  • OS: Windows 11

Shell Environment Details (if the bug relates to CLI):

  • Technology: VSCode 1.83.1
  • OS: Windows 11 Pro

Additional context Add any other context about the problem here.

mhammack avatar Oct 18 '23 21:10 mhammack

I would suggest you post this question in Slack as well. You may get faster response there: #zowe-explorer

I'm not an expert but to me this sounds like a configuration issue for z/OSMF. I would suspect you would see the same error if you try the same operation from the z/OSMF UI.

boris-bc avatar Oct 19 '23 07:10 boris-bc

The answer from the slack.

Billie Jean Simmons :zowe_logo_2020: 21 minutes ago Hey Jakub, This error about ACCTNUM sounds like an issue with zosmf rest api configuration and the user may experience the same error if trying to use the cli. We prompt for account number when issuing a TSO command if not saved in TSO profile but not with listing of data sets.

Billie Jean Simmons :zowe_logo_2020: 18 minutes ago here are the docs for host side configurations for zosmf

balhar-jakub avatar Oct 19 '23 12:10 balhar-jakub

If I had access to the Open Mainframe Project, I might do that. Tried to sign up with two different email addresses (including one I already use on another Slack channel) but neither are in the 'restricted' list.

No, I can use the z/OSMF UI just fine...

Mark

On Thu, Oct 19, 2023 at 2:11 AM Boris Petkov @.***> wrote:

I would suggest you post this question in Slack as well. You may get faster response there: #zowe-explorer https://openmainframeproject.slack.com/archives/CUVE37Z5F

I'm not an expert but to me this sounds like a configuration issue for z/OSMF. I would suspect you would see the same error if you try the same operation from the z/OSMF UI.

— Reply to this email directly, view it on GitHub https://github.com/zowe/community/issues/2094#issuecomment-1770196976, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE5G4WJ33ARCXHTKFWFQ65TYADHA5AVCNFSM6AAAAAA6GFVYJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZQGE4TMOJXGY . You are receiving this because you authored the thread.Message ID: @.***>

mhammack avatar Oct 23 '23 20:10 mhammack

I have to disagree. I am not using the ZOWE CLI (but may in the future) but this is trying to get a list of datasets. I cannot find anywhere to save an account number (like a TSO profile) and don't get prompted to enter one (although I do get prompted for my id and password).

Mark

On Thu, Oct 19, 2023 at 7:18 AM Jakub Balhar @.***> wrote:

The answer from the slack.

Billie Jean Simmons :zowe_logo_2020: 21 minutes ago https://openmainframeproject.slack.com/archives/CUVE37Z5F/p1697716591711529?thread_ts=1697712076.211999&cid=CUVE37Z5F Hey Jakub, This error about ACCTNUM sounds like an issue with zosmf rest api configuration and the user may experience the same error if trying to use the cli. We prompt for account number when issuing a TSO command if not saved in TSO profile but not with listing of data sets.

Billie Jean Simmons :zowe_logo_2020: 18 minutes ago https://openmainframeproject.slack.com/archives/CUVE37Z5F/p1697716749397129?thread_ts=1697712076.211999&cid=CUVE37Z5F here are the docs https://docs.zowe.org/stable/user-guide/systemrequirements-cli#host-side-requirements for host side configurations for zosmf

— Reply to this email directly, view it on GitHub https://github.com/zowe/community/issues/2094#issuecomment-1770842425, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE5G4WPRO47WC3NLAQCW5IDYAELAFAVCNFSM6AAAAAA6GFVYJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZQHA2DENBSGU . You are receiving this because you authored the thread.Message ID: @.***>

mhammack avatar Oct 23 '23 20:10 mhammack

@JillieBeanSim Can you please take a look?

balhar-jakub avatar Oct 24 '23 07:10 balhar-jakub

Hey @mhammack, api calls for the MVS tree shouldn't require an account number. Please have your system administrator make sure the zOSMF APIs are configured correctly for Zowe. Here is the documentation that Zowe docs point to (outside of Zowe docs), this information comes from the installation checklist docs

JillieBeanSim avatar Oct 24 '23 12:10 JillieBeanSim