Error when creating workspace if the user password contains non-cmd-friendly characters
See original GitHub issue(Edited by F.: please see the steps to reproduce and workaround below.)
I tried to use this plugin for the first time today and trying to create my local workspace failed with a crash. This is trying to connect to an organisation tfs server.
Repro Steps
- Open any IntelliJ based IDS (I used Rider for this)
- On the welcome screen, click on “Get from Version Control”
- Select “Respository URL”
- From the “Version control” drop down, choose “Azure DevOps TFVC”
- Click “Clone”
- In the “Checkout from Azure DevOps Services”, select the “Team Foundation Server” tab
-
- Enter your server URL
- Select a Repository and keep other default settings
-
- Click “Create Workspace”
- During this process, I had to accept the server’s certificate.
What should happen
The workspace is mapped on my machine and files starts to download into the specified folder. If the “Edit workspace” checkbox is checked, I would expect to chose what files will get downloaded.
What happened instead
After a bit of loading, the window closes bringing me back to the welcome screen. The Event Log icon on the bottom right appears red. Clicking on it shows an “IDE Fatal Error” with the following stack trace:
java.lang.RuntimeException: An error occurred: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at com.microsoft.alm.plugin.external.commands.Command.throwIfError(Command.java:423)
at com.microsoft.alm.plugin.external.commands.CreateWorkspaceCommand.throwIfError(CreateWorkspaceCommand.java:91)
at com.microsoft.alm.plugin.external.commands.CreateWorkspaceCommand.parseOutput(CreateWorkspaceCommand.java:73)
at com.microsoft.alm.plugin.external.commands.CreateWorkspaceCommand.parseOutput(CreateWorkspaceCommand.java:22)
at com.microsoft.alm.plugin.external.commands.Command$1.completed(Command.java:178)
at com.microsoft.alm.plugin.external.ToolRunner$ListenerProxy.completed(ToolRunner.java:295)
at com.microsoft.alm.plugin.external.ToolRunner$ProcessWaiter.run(ToolRunner.java:333)
Issue Analytics
- State:
- Created 3 years ago
- Comments:15
Top Results From Across the Web
azure-devops-intellij#323 - RIDER-53173 - JetBrains YouTrack
azure-devops-intellij#323: Error when creating workspace if the user password contains non-cmd-friendly characters : RIDER-53173.
Read more >Password Sync error codes & messages - Google Help
This error can occur if the email address attribute contains invalid characters. There was an issue with authorization for your organization's Google Account, ......
Read more >PKS cluster creation fails if NSX-T admin user's password ...
Pivotal Container Service (PKS) cluster creation fails with the following message: Error Message Task 252 Task 252 | 17:54:36 | Preparing ...
Read more >Managing Passwords in Workspace ONE Access
The default password policy requires six characters. The password restrictions can include a combination of uppercase, lowercase, numerical, and ...
Read more >How do I reset the password for an Amazon WorkSpaces user?
If you receive a server error message when choosing Reset Password, confirm that the user account within your directory service has an email ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Alright, I was able to reproduce the issue.
Prerequisites:
^
).Steps to reproduce:
The error will be shown:
Investigation: the problem is that under some circumstances we pass the login/password pair through
cmd
on Windows, andcmd
is known for its really crazy rules of argument passing. Namely,^
character is escape character in some contexts.Workaround: the workaround here would be to switch the command-line client code to the so-called “fast-mode” (which isn’t so fast, but still). I’ll copy the information from my previous take on the issue, https://github.com/microsoft/azure-devops-intellij/issues/252#issuecomment-544838137:
I have verified that this workaround works in my case (with unusual character in password).
Thanks for help. Do you use on-premise installation of TFS/Azure DevOps server with HTTPS support? In that case, you’ll have to install your server’s certificate into our JVM (we’re working on a fix for that, but for now it’s a requirement).
Take a look at this article, “Importing the certificate” section.