This repository has been archived by the owner on Nov 20, 2023. It is now read-only.
Error when exporting developer certificate from Windows machine has a username contains space #635
Labels
bug
Something isn't working
Describe the bug
Tye fails to export the developer certificate from the Windows machine when the current logged in user's username contains space. This happens because the
certificateDirectory.DirectoryPath
which is generated using theTempDirectory.Create
is within the temp directory. Windows Temp directory format is likeC:\Users\UserName\AppData\Local\Temp
so in case the UserName contains space (e.g. Tariq Abubaker) the temp directory will beC:\Users\Tariq Abubaker\AppData\Local\Temp\
. This will fail exporting the certificatedotnet dev-certs
command when theProcessUtil.RunAsync
run it because of the breaking space e.g.dotnet dev-certs https -ep C:\Users\Tariq Abubaker\AppData\Local\Temp\3jx13zqv.zfg\frontend.pfx -p 26739b5b-e7c5-44bc-8f04-e989dea7a936
.To Reproduce
What steps can we follow to reproduce the issue?
Tariq Abubaker
tye run --docker
Got Exceptions? Include both the message and the stack trace
Further technical details
Include the output of
tye --version
0.4.0-alpha.20371.1+d7623120d66b85bfeda8ab69eb5ff792df6b7243
If possible rerun the command with
-v debug
and include the outputWindows 10 Version 2004 (OS Build 19041.388)
The text was updated successfully, but these errors were encountered: