Apache OpenOffice (AOO) Bugzilla – Issue 104601
testautomation:: Warning for missing file which exists
Last modified: 2013-08-07 15:07:30 UTC
Windows XP. OOo 3.1.1 en-us with german languagepack While executing f_first.bas a warning came up: tToolsOptionsImprovementProgram Update test for the tools/options dialog of the OOo Improvement Program global::tools::includes::required::t_files.inc::hDeleteFile():Deleting file failed: C:\Dokumente und Einstellungen\Customer\Anwendungsdaten\OpenOffice.org\3\user\temp\feedback\Current.csv Improvement Program tabpage Text import dialog Warnung: No warning for missing file: C:\Dokumente und Einstellungen\Customer\Anwendungsdaten\OpenOffice.org\3\user\temp\feedback\Current.csv I checked after the test and the file is there.
reassigning to Helge
This is a known issue with no real solution this far. Reason: Builds provided by Sun always have the Improvement Program enabled and the tab-page in tools/options is visible. The API does not offer any way to retrieve the real state of the Improvement program yet because the only way to know about it's state is to ask the API whether the tab-page is enabled or not. And there exists no mehod for that yet. Currently i'm tracking progress in issue 104246.
Ah, i see another problem here which i was not aware of: If the improvement program is not enabled, not such file should exist. In this special case you apparently started the office manually at least twice accepting to participate in the usage tracking program. Then you started the autotest causeing the file to be present. Please wipe your user configuration before running the test.
I just checked the test code. Usually it deletes the file automatically (the log even states that deleting failed). Maybe the test has a problem with the accessrights to the file?
I modified the test to exit when a logfile is found (after attempting to delete it). Following warning will be printed along with the path to the file: warnlog( "Logfile present, it could not be deleted. Please check path and accessrights" ) printlog( "Path: " & cLogFile ) Fix is done on CWS jskhgpilot4, target 3.2, adding this task to the CWS.
Fixed.
Verified.
closed due to integrated into MWS