Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Connection mix between 2 environments and 2 users #1324

Open
sybaris opened this issue Mar 22, 2024 · 4 comments
Open

[BUG] Connection mix between 2 environments and 2 users #1324

sybaris opened this issue Mar 22, 2024 · 4 comments
Labels

Comments

@sybaris
Copy link

sybaris commented Mar 22, 2024

Describe the bug
We encounter an impactant issue, with XrmToolbox connections. We where thinking using XrmToolbox on Dev, and changes were applied to Production.

To Reproduce

2 environnements :

  • Dev
  • Prod

2 users :

  • X
  • Y

Scenario :

  • With XrmToolbox, we have created a long time ago a connection to Dev with user X. My connection is true
  • Password has changed. We get a "Unable to Login CRM using cached credentials", followed by "Failed to Login with cached credentials".
    So XrmToolbox propose us to update the connection and display the screen to choose the environment and the user.
  • We choose Prod with user Y.
  • We quit XrmToolbox
  • We relaunch XrmToolbox. The connection displays environment Dev for user X. We connect to SQL4Cds for example, and we execute the following queries :
    select fullname, windowsliveid from systemuser where systemuserid=CURRENT_USER
    select @@ServerName
    => Expected : Result of the queries : environment Dev and user X (it's what XrmToolbox displays)
    => Actual : Result of the queries : environment Prod and user Y

Expected behavior
I saw several options to fix the problem :

  • If the url or the username is different that the previous connection :
    • Xrmtoolbox should not accept to update the connection...
    • Xrmtoolbox should propose to update ConnectionName, UserName, Url, etc... of the ConnectionDetail
  • On the status bar, instead of displaying the Url of the ConnectionDetail, display the url of the IOrganizationService...

Screenshots
The messages that I encounter that make me the changes :
image
image

And here the problem (I clear in gray personal informations, but I hope this will be relevant enough) :
image
image

Desktop (please complete the following information):

  • XrmToolbox Version : 1.2023.12.68
  • Tool version : Any tools/plugin.

Additional context
One time, the connection is "corrupted", any use of the same connection will continue to be with the wrong url & credentials...

@sybaris sybaris added the bug label Mar 22, 2024
@sybaris
Copy link
Author

sybaris commented Jun 24, 2024

Hi

This issue is still a problem for us.
Any news ?
Today, we make again a new change in prod thinking that change was on a build environment :-(

Regards
Sybaris

@MscrmTools
Copy link
Owner

Hi @sybaris, sorry, I didn't have much time to work on this issue so far.
I will try to work on it before end of next week

@MscrmTools
Copy link
Owner

@sybaris can you confirm you are using Microsoft Login Control here?

@sybaris
Copy link
Author

sybaris commented Jul 16, 2024

Yes, we use Microsoft Login Control :
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants