-
-
Notifications
You must be signed in to change notification settings - Fork 773
[Bug]: Config installer component fails silently if malformed #6388
Copy link
Copy link
Description
Is there an existing issue for this?
- I have searched the existing issues
What happened?
When including a config component in a manifest, it fails silently if the uninstall section is missing.
Steps to reproduce?
- Create an extension with Example Config.dnn as the manifest
- Install the extension
Current Behavior
Expected Behavior
Either a clear error message or the install continues without issue
Relevant log output
2025-02-18 17:33:12,575 [Thread:72][ERROR] DotNetNuke.Services.Exceptions.Exceptions - DotNetNuke.Services.Exceptions.PageLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at DotNetNuke.Services.Installer.Installers.ConfigInstaller.ReadManifest(XPathNavigator manifestNav)
at DotNetNuke.Services.Installer.Installers.InstallerFactory.GetInstaller(XPathNavigator manifestNav, PackageInfo package)
at DotNetNuke.Services.Installer.Installers.PackageInstaller.ReadComponents(XPathNavigator manifestNav)
at DotNetNuke.Services.Installer.Installers.PackageInstaller.ReadManifest(XPathNavigator manifestNav)
at DotNetNuke.Services.Installer.Installers.PackageInstaller..ctor(String packageManifest, InstallerInfo info)
at DotNetNuke.Services.Installer.Installer.ProcessPackages(XPathNavigator rootNav)
at DotNetNuke.Services.Installer.Installer.ReadManifest(Boolean deleteTemp)
at Dnn.PersonaBar.Extensions.Components.InstallController.GetInstaller(Stream stream, String fileName, Int32 portalId, String legacySkin, Boolean isPortalPackage)
at Dnn.PersonaBar.Extensions.Components.InstallController.ParsePackage(PortalSettings portalSettings, UserInfo user, String filePath, Stream stream)
at Dnn.PersonaBar.Extensions.Services.ExtensionsController.<>c__DisplayClass42_1.<UploadFileAction>b__1(Object state)
at System.Web.Util.SynchronizationHelper.SafeWrapCallback(Action action)
--- End of inner exception stack trace ---Anything else?
No response
Affected Versions
9.13.7 (alpha)
What browsers are you seeing the problem on?
No response
Code of Conduct
- I agree to follow this project's Code of Conduct
Reactions are currently unavailable
