zowe / community

Zowe Community - Sub-projects, Squads, Contribution Guidelines, Meeting Minutes, and more
50 stars 42 forks source link

Get HTTP 500 error trying to browse datasets #2094

Open mhammack opened 8 months ago

mhammack commented 8 months ago

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

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

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

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

Additional context Add any other context about the problem here.

boris-bc commented 8 months ago

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.

balhar-jakub commented 8 months ago

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

mhammack commented 8 months ago

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 commented 8 months ago

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: @.***>

balhar-jakub commented 8 months ago

@JillieBeanSim Can you please take a look?

JillieBeanSim commented 8 months ago

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