Apache OpenOffice (AOO) Bugzilla – Issue 74877
Extension Manager: Interaction handler should only be called if necessary
Last modified: 2013-08-07 15:31:14 UTC
... this refers to the VersionException and InstallException. See desktop/source/deployment/gui/dp_gui_cmdenv.cxx desktop/source/pkgchk/unopkg/unopkg_cmdenv.cxx Also make sure that if not handled an DeploymentException is thrown. This should enable that XPackageManager::addPackage can be called without XCommandEnvironment implementation. If this is fixed then the XCommandEnvironment implementation which is used for the smoketest can also be removed. See javaunohelper/com/sun/star/comp/...
Eventually we need to modify the implementation XPackage::checkPrerequisites so that it throws an DeploymentException rather then returning false.
.
The InstallException is currently always thrown when an extension is about to be installed. Only the XInteractionHandler (the XCommandEnvironment which is passed as argument in addPackage) knows if it needs to notify the user. This is for example the case when the user installs an extension with a double-click. Then the XCommandEnvironment is created with a particular flag, indicating to ask the user. This information should be removed from the XCommandEnvironment and be part of the XPackageMananger::addPackage. See also i74908
Supplying null for the XCommandEnvironment has already worked in 2.1 (and 2.0 for that matter, if I recall correctly)! It seems that issue 74908 <http://qa.openoffice.org/issues/show_bug.cgi?id=74908> is the same?
target 2.4
Retargeted to 3.0. See also issue 74908
Retargeted to 3.1
Target 3.3
Retargeting to 3.x.