ChocolateyGUI icon indicating copy to clipboard operation
ChocolateyGUI copied to clipboard

Source credential changes outside of Chocolatey GUI cause issues

Open ferventcoder opened this issue 7 years ago • 7 comments

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.

ferventcoder avatar Oct 17 '17 19:10 ferventcoder

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.

ferventcoder avatar Oct 17 '17 19:10 ferventcoder

Gui is currently very unreactive to outside changes once started. One of my next things I want to tackle.

RichiCoder1 avatar Oct 17 '17 21:10 RichiCoder1

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.

ferventcoder avatar Oct 18 '17 00:10 ferventcoder

Ah. I'll look into that now

RichiCoder1 avatar Oct 18 '17 01:10 RichiCoder1

I believe this is likely still an issue unless it opens a dialog when requested.

ferventcoder avatar Nov 27 '17 16:11 ferventcoder

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 [Fatal] Unhandled Exception error in the Chocolatey GUI log.

Full relevant info from Chocolatey GUI log output:

2022-06-24 08:08:18.986 -07:00 [Information] Please provide credentials for: https://Testy:8443/repository/ChocolateyInternal/
2022-06-24 08:08:19.007 -07:00 [Fatal] Unhandled Exception

ryanrichter94 avatar Jun 24 '22 16:06 ryanrichter94

Additional error info from Window event viewer

image

Error text itself:

Application: chocolateygui.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.InvalidOperationException
   at System.Console.ReadKey(Boolean)
   at chocolatey.infrastructure.commandline.ReadKeyTimeout.console_read_key()
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Threading.ThreadHelper.ThreadStart()

ryanrichter94 avatar Jun 24 '22 18:06 ryanrichter94