Bug #106529 MySQL Installer Console errors out when querying configuration settings
Submitted: 21 Feb 2022 15:29 Modified: 9 Mar 2022 12:00
Reporter: Nicholas Hubbard Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL for Windows: Installer Severity:S3 (Non-critical)
Version:8.0.28 OS:Windows (21H2 (Build 19044.1526))
Assigned to: CPU Architecture:x86 (Intel x86_64)
Tags: console, installer, NullReferenceException

[21 Feb 2022 15:29] Nicholas Hubbard
Description:
When running the command `MySQLInstallerConsole configure -showsettings server`, the command errors out with the following stack trace:

```
Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
   at MySql.Installer.Core.Controllers.ControllerSettings.GetDefaultValue(PropertyInfo pi, Boolean useValue)
   at MySql.Installer.Core.Controllers.ControllerSettings.GenerateHelpString()
   at MySql.Installer.Console.Actions.ConfigureAction.ShowControllerSettings()
   at MySql.Installer.Console.Actions.ConfigureAction.PostPackageSelection()
   at MySql.Installer.Console.Actions.PackageBasedAction.DoAction()
   at MySql.Installer.Console.Program.Main(String[] args)
```

Architecture: Intel x86_64
Windows: 21H2 Build 19044.1526
.NET: 4.8 Full and Client
Installer Package: 8.0.28
Installer App: 1.6.1.0

How to repeat:
1. Install MySQL Installer 8.0.28 for Windows.
2. Install the MySQL Server package using either the GUI or the console.
3. Using the installer console, attempt to query the available settings for configuring the server.
[28 Feb 2022 15:17] MySQL Verification Team
Hello Nicholas Hubbard,

Thank you for the bug report.
To investigate further this issue at our end, may I please know what exact query you are trying to execute from console?

Regards,
Ashwini Patil
[7 Mar 2022 18:59] Nicholas Hubbard
The query I'm trying to execute is "MySQLInstallerConsole configure -showsettings server".

I also tested and confirmed that this issue isn't dependent on where the command is run from -- it happens when running from the directory of the console executable, or with an absolute path to the console.
[9 Mar 2022 12:00] MySQL Verification Team
Hello Nicholas Hubbard,

Thank you for the requested details.
Imho this is duplicate of Bug #90811, please see Bug #90811.
Please note that the issue has already been fixed in Installer 1.6.2 which will be released along with the 8.0.29 products. 

Regards,
Ashwini Patil