-
Notifications
You must be signed in to change notification settings - Fork 253
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
NuGet needs a nicer error message when dealing with encrypted credentials #2197
Comments
I'm thinking this would be quite a common scenario, so lets prioritize it higher. Pri 0 - Throw a good error message, saying what went wrong in what file and in what line/char This also looks similar to the bug on your plate where a password as a * char in it |
Also, it shouldn't really blow up at all if the credentials are not needed or used -- at the moment they merely need to be in the global config, and it will be an issue even if the local config has a "clear" and therefore should not read them. |
@sklivvz not sure what you are adding here? Can you clarify that compared to my comment above?
|
This is the default configuration which is generated by
Notice the comment. Other sources should not be inherited. Not inherited sources should actually be ignored, not delay loaded. |
Duh :) |
Soooo...is this like another bug or something? The thing? |
@blackdwarf after giving a look at the code base and little thought. I think it's three bugs (in the sense that it's probably going to take three patches): Bug 1: encrypted passwords should be supported and not throw Bug 2: the caller method chain should handle any exceptions when loading the package sources (including the one from Bug 1) and give appropriate feedback when loading fails Bug 3: package sources "cleared" in the configuration should not be loaded or parsed Fixing Bug 1 or Bug 3 would fix the issue as originally reported. Fixing Bug 2 would not, as the command line calls would still fail with a valid configuration. However I think it's highly appropriate that a decent error message is thrown to the end user if shit goes ill anyways. |
Bug 4: disabled global options should be parsed On Sat, 27 Feb 2016 10:36 Marco Cecconi, notifications@github.com wrote:
|
Except coreclr does not support the encryption on Windows at the moment. So this works well on desktop CLR but not one core (at least yet). Agree with the rest |
fixed NuGet/Home#2158 and NuGet/Home#1567 fixed NuGet/Home#2197
As per dotnet/cli#1286.
/cc @mgravell
The text was updated successfully, but these errors were encountered: