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

VS/dotnet.exe/nuget.exe/msbuild.exe restore doesn't use credentials when source name contains a whitespace #7517

Closed
DoCode opened this issue Nov 16, 2018 · 1 comment
Assignees
Labels
Area:Authentication Area:Settings NuGet.Config and related issues RegressionFromPreviousRTM A regression from the last RTM. Example: worked in 6.2, doesn't work in 6.3 Type:Bug
Milestone

Comments

@DoCode
Copy link

DoCode commented Nov 16, 2018

Details

NuGet version: 4.9.0.5672

OS version: win10 v1809

Worked before? If so, with which NuGet version: 4.8.1

Detailed repro steps so we can see the same problem

  1. nuget.exe list xxx prompt for credentials, but was configured in nuget.config

  2. nuget.exe sources shows feed with a name that contains a whitespace

  3. Update credentials with nuget sources update -name 'sample feed ' -username xxx -password xxx prompt
    The ' ' character, hexadecimal value 0x20, cannot be included in a name.

  4. Use the same feed with no whitespace in name works like <4.9.0

@nkolev92 nkolev92 added Area:Settings NuGet.Config and related issues Type:Bug labels Nov 16, 2018
@PatoBeltran
Copy link

Hey @DoCode, thanks for opening the issue... We did a bunch of work around nuget.config in 4.9, so this might be a think we missed. I will look into reproing it and looking for the reason for it. In the meantime a quick solution could be to avoid using spaces in your sources names, that should fix your issue.

@nkolev92 nkolev92 changed the title [4.9.0] nuget.exe doesn't use credentials when source name contains a whitespace [4.9.0] dotnet.exe/nuget.exe doesn't use credentials when source name contains a whitespace Nov 26, 2018
@nkolev92 nkolev92 added RegressionDuringThisVersion A regression which broke since last RTM, and was fixed before the next RTM. RegressionFromPreviousRTM A regression from the last RTM. Example: worked in 6.2, doesn't work in 6.3 and removed RegressionDuringThisVersion A regression which broke since last RTM, and was fixed before the next RTM. labels Nov 26, 2018
@nkolev92 nkolev92 added this to the 4.9.x milestone Nov 26, 2018
@rrelyea rrelyea modified the milestones: 4.9.x, 4.9.1 Nov 27, 2018
@rrelyea rrelyea changed the title [4.9.0] dotnet.exe/nuget.exe doesn't use credentials when source name contains a whitespace dotnet.exe/nuget.exe doesn't use credentials when source name contains a whitespace Nov 27, 2018
@rrelyea rrelyea modified the milestones: 4.9.x, 4.9.2 Nov 28, 2018
@rrelyea rrelyea changed the title dotnet.exe/nuget.exe doesn't use credentials when source name contains a whitespace VS/dotnet.exe/nuget.exe/msbuild.exe restore doesn't use credentials when source name contains a whitespace Dec 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area:Authentication Area:Settings NuGet.Config and related issues RegressionFromPreviousRTM A regression from the last RTM. Example: worked in 6.2, doesn't work in 6.3 Type:Bug
Projects
None yet
Development

No branches or pull requests

4 participants