Apache OpenOffice (AOO) Bugzilla – Issue 67452
suppress second error message for 'not existing license file'
Last modified: 2013-02-07 21:55:23 UTC
How to reproduce: add via extension manager: (from OOo cvs) qa/qatesttool/framework/basic/input/extensions/simpleLicense\MissinLic.oxt after the message: Adding Package(s): $FILE does not exist. a second ulgy one comes up: (com.sun.star.deployment.DeploymentException) { { Message = "Could >>> not read license text in >>> file:///C:/Documents%20and... the ugly one could be supressed?
.
getLicenseText in desktop/source/deployment/registry/package/dp_package.cxx should throw a CommandFailedException when descContent.openStream(); fails. This indicates that the error has already been handled by the InteractionHandler (see DialogImpl::SyncPushButton::Click() in D:\work\cws-jl40\desktop\source\deployment\gui\dp_gui_dialog.cxx)
I guess it is better to leave the exception as it is. All error messages which have to be displayed to the user, either in the console or through dialogs, have be done through an interaction. So the message that comes from SyncPushButton::Click() is an additional message and should not displayed in pro builds.
verified by autotest
backed out again because other error messages were supressed.
set target to 3.x according to http://wiki.services.openoffice.org/wiki/Target_3x