Issue 34575 - Deleting a user-created default template causes Calc, Draw, Impress and Writer to fail
Summary: Deleting a user-created default template causes Calc, Draw, Impress and Write...
Alias: None
Product: Calc
Classification: Application
Component: ui (show other issues)
Version: OOo 1.1.2
Hardware: PC Linux, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
: 34580 (view as issue list)
Depends on:
Reported: 2004-09-24 06:31 UTC by tcoulter
Modified: 2017-05-20 11:13 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Note You need to log in before you can comment on or make changes to this issue.
Description tcoulter 2004-09-24 06:31:41 UTC
Tim Coulter
23 Sept. 2004

By creating a new template, setting that new template as default, and then 
finally deleting that template, I was able to prevent Calc, 
Draw, Impress and Writer from running on a Linux machine. I tested this error 
on two separate configurations. Here are my steps:

1)Run Calc. A new spreadsheet labeled “Untitled1” should be 
opened by default.

2)From the menu bar, select File > Templates > Save...  A “Templates” dialog 
box should pop up.

3)In the “New Template” edit box, type “New Template” (without the double 
quotes). Make sure the “Default” category is highlighted under the “Categories” 
list box. 

4)Select the “OK” button, and the “Templates” dialog box should disappear. 

5)From the menu bar, select File > Templates > Organize...  The “Template 
Management” dialog box should pop up.

6)Expand the template folder named “Default” by double-clicking on the that 
folder. Once expanded, the template entry “New Template” should show up as a 
child under the “Default” folder.

7)Right click on the “New Template” entry and select “Set As Default Template” 
from the pop-up menu.

8)Right click on “New Template” again, this time selecting “Delete” from the 
menu. A confirmation dialog should pop up asking “Are you sure you want to 
delete the entry 'New Template'?”

9)Click “Yes” in the confirmation dialog. The entry “New Template” should have 
disappeared as a child under “Default.”

10)Click the “Close” button in the “Template Management” dialog. The “Template 
Management” dialog should disappear.

11)Close Calc by selecting File > Exit from the menu bar.

12)Run Calc again. After the loading screen 
disappears, an error message pops up with the following output: 

Error loading document. 
/users/student/tcoulter/.openoffice/template/New does not exist.

13)Press the “OK” button. The error message disappears, and Calc 
fails to start.

Performing the steps above with Writer, Impress and Draw will 
yield the same results.

I was able to get Calc, Writer, Impress and Draw running again by deleting 
my “~/.openoffice” directory. After re-running either of the OpenOffice 
programs, my user directory was re-created and the default settings were 
restored. The command used to delete my “~/.openoffice” directory was "rm -rfv 

The configurations used to test this error are:

Machine 1:
	Gentoo Linux Kernel 2.6.8-gentoo-r3
	Running 1.1.2
	AMD Athlon XP Mobile processor 2600 (2.0 Ghz)
	ATI Radeon Mobility IGP 320M (U1)
	768 MB RAM total
	64 MB RAM shared with video card

Machine 2:
	Fedora Core Linux Kernel 2.6.7
	Running 1.1.0
	Intel Pentium 4, 2.8 Ghz
Comment 1 frank 2004-09-24 10:10:45 UTC
*** Issue 34580 has been marked as a duplicate of this issue. ***
Comment 2 frank 2004-09-24 11:02:47 UTC
Hi Mathias,

if a user defined default template is missing or corrupt, we should offer a not
the warning about the missing template, but open with the default template
delivered with the office. If you have concerns about this as a bug, talk to
Bettina regarding to handle this as feature request.


Erasing the complete User folder is a little bit of overkill. Using the same
dialog as you've used to set the template, you can reset it to the default one.

Comment 3 milgner 2005-05-13 14:47:57 UTC
I just stumbled about this issue on Windows with OOo 1.9.97.
I'd also recommend to open the built-in default template if the user-defined default template could not be 
opened and maybe show some warning message.

The problem is that I (the user) cannot open the template management dialog to reset the default 
template since the whole program doesn't start anymore.
Comment 4 hartsambatchvolv 2010-11-10 16:32:11 UTC
Created attachment 73213
Comment 5 Marcus 2017-05-20 11:13:52 UTC
Reset assigne to the default "".