[
https://issues.apache.org/jira/browse/IGNITE-20705?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Vadim Pakhnushev updated IGNITE-20705:
--------------------------------------
Summary: Switch user context when reconnecting (was: CLI does not switch
user context when connect command executed with different credentials)
> Switch user context when reconnecting
> -------------------------------------
>
> Key: IGNITE-20705
> URL: https://issues.apache.org/jira/browse/IGNITE-20705
> Project: Ignite
> Issue Type: Bug
> Components: cli
> Reporter: Ivan Gagarkin
> Assignee: Vadim Pakhnushev
> Priority: Major
> Labels: ignite-3
>
> h3. Description:
> When a user connects using the {{connect}} command in the CLI and then
> switches to another user using the same {{connect}} command, the CLI does not
> switch the context. All following commands are still executed as the first
> user.
> h4. Steps to Reproduce:
> # Create two users (User A and User B)
> # Execute {{connect}} command with credentials of User A
> # Execute {{connect}} command with credentials of User B
> h4. Expected Result:
> All following commands should be executed as User B.
> h4. Actual Result:
> All following commands are executed as User A.
> {code:java}
> [disconnected]> connect --username admin1 --password password
> http://localhost:10300
> Remember current credentials? [Y/n] n
> Connected to http://localhost:10300
> [admin1:node]> connect --username admin2 --password password
> http://localhost:10300
> Remember current credentials? [Y/n] n
> You are already connected to http://localhost:10300
> [admin1:node]>{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)