-
Notifications
You must be signed in to change notification settings - Fork 254
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
Source credential changes outside of Chocolatey GUI cause issues #494
Comments
I would hope that Chocolatey GUI recognizes the issue and stops attempting to use that source (and then places a little red background on it in the sources tab). Maybe an alerts section as well to let folks know something is wrong. |
Gui is currently very unreactive to outside changes once started. One of my next things I want to tackle. |
Sorry for the confusion. If you change the source to require credentials, and then you open Chocolatey GUI hoping to go update the source with the credentials, you are SOL and must do it from the command line. |
Ah. I'll look into that now |
I believe this is likely still an issue unless it opens a dialog when requested. |
Can confirm that this is still an issue when using Chocolatey V 1.1.0 and Chocolatey GUI V 1.0.0 When attempting to load Chocolatey GUI while having an authenticated source with no saved authentication in the source config of Chocolatey. Chocolatey GUI will open to the splash screen and then stop with a Full relevant info from Chocolatey GUI log output:
|
Additional error info from Window event viewer Error text itself:
|
Sometimes (it looks like maybe when the Chocolatey Licensed Extension is in play) we don't get the sources currently in the configuration file. If instead of reusing the configuration settings service we instantiate a new one each time, then it will ensure the configuration file is read again. This resolves the issue of settings not applying in GUI if they're made while GUI is running.
When Chocolatey CLI makes changes to the configuration file while Chocolatey GUI is running, Chocolatey GUI should refresh the sources so that they're accurate. This adds a FileSystemWatcher to monitor the configuration file and update the GUI if there's updates to the file.
With the FileSystemWatcher, we don't need to manually tell Chocolatey GUI to update the sources, as they'll be updated by the FileSystemWatcher. Leaving them in results in duplicated entries that we don't want.
Renamed configuration file variable to indicate it's the path to the configuration file. Made ConfigFileChanged public and added it to the interface. Also renamed it to OnConfigFileChanged as that seems to be a better name to indicate it's the action for when the file changes.
This reverts commit 583b1b9.
If a source is changed to require credentials and the source configuration is not changed prior to opening Chocolatey GUI, it errors on opening as it is attempting to check for updated packages and the source keeps asking for credentials.
The text was updated successfully, but these errors were encountered: