Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

CLI plugin using processWithSession which is passed the session as AbstractSession not using token in one command #1007

Closed
davidkjackson54 opened this issue Aug 3, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@davidkjackson54
Copy link

In my zowe cli plugin, I have some 30-40 commands defined. All follow the same structure and layout.
In my System Profile, I have tokenType and tokenValue present.

"properties": {
                        "basePath": "/zmfrest",
                        "port": 9992,
                        "protocol": "https",
                        "zosmfProfile": "zosmf",
                        "tokenType": "JSESSIONID",
                        "tokenValue": "6033AA612A70926297D26E19840EC62A"

I am finding that in one command that happens to be called "logon" in a group called 'session" that for whatever reason, the session: AbstractSession is being passed into my handler as type basic and is using user and password -when it should be using tokenValue.
Here is the screen print of params:IHandlerParams.arguments - notice that user and password are present ..
image
image

and this is the session:AbstractSession that is being passed in:
image

notice that the session is a 'basic' session using user and password and not the token. I can see no reason why this incoming session is uinsg user and password.

I am finding that other commands are indeed working correctly and using tokenType and tokenValue
as in this example of another command:
image
image
and its session:AbstractSession
image

The definitions file:
image

it is the logon definitions that are incorrectly using the user/password whilst the logoff command is correctly using the token.

I can see no obvious reason why this is happening and unable to debug this further.

@davidkjackson54 davidkjackson54 added the bug Something isn't working label Aug 3, 2023
@github-actions
Copy link

github-actions bot commented Aug 3, 2023

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.

@zowe zowe locked and limited conversation to collaborators Aug 4, 2023
@t1m0thyj t1m0thyj converted this issue into discussion #1009 Aug 4, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant