Bug 121132 - Draw and Impress default templates clobber each other
Summary: Draw and Impress default templates clobber each other
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
6.1.5.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Templates
  Show dependency treegraph
 
Reported: 2018-11-02 17:05 UTC by wpeaton4
Modified: 2023-07-20 03:17 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wpeaton4 2018-11-02 17:05:24 UTC
This seems to be an edge case and there is a workaround.

Only tested on Windows.

In Impress, Save As Template.
name: Default
category: My Templates
set as default: true


If there is a Default.otg (i.e. default drawing template named Default) in My Templates category, it will be deleted and overwritten by Default.otp

This will also happen in reverse: if a Default.otp, it will be clobbered by a Default.otg.

Workaround: use different names (e.g. DefaultDrawing, DefaultPresentation)
Comment 1 Xisco Faulí 2018-11-05 15:47:25 UTC
Thank you for reporting the bug.
it seems you're using an old version of LibreOffice.
Could you please try to reproduce it with the latest version of LibreOffice
from https://www.libreoffice.org/download/libreoffice-fresh/ ?
I have set the bug's status to 'NEEDINFO'. Please change it back to
'UNCONFIRMED' if the bug is still present in the latest version.
Comment 2 wpeaton4 2019-03-19 16:03:05 UTC
Problem still exists in 6.1.5.2 and there are some pretty nasty side effects.

1. You have a file called Default.otp (Impress template) in your My Templates folder

2. Open a new drawing. Change some styles. Then save as template using File...Templates...Save as Template... Save as Default to My Templates.

3. After 2, the Default.otg file will appear in your My Templates folder, and Default.otp will disappear. 

4. Here is the nasty side effect: if Default.otp was configured as your default presentation, it has disappeared and you will not be able to create any new presentations. To fix this you will have to specify another OTP file as a default presentation.

Most users I know will be completely thrown off by #4.
Comment 3 Xisco Faulí 2019-03-21 09:56:25 UTC
To be certain the reported issue is not
related to corruption in the user profile, could you please reset your
Libreoffice profile ( https://wiki.documentfoundation.org/UserProfile ) and
re-test?
Comment 4 wpeaton4 2019-03-21 15:52:23 UTC
I removed my user profile and I can reproduce this. Windows running 6.1.5.2.

To reproduce
1. Create new Impress document
2. Save as Template with name Default in My Templates. (File...Templates...Save as Template... Type "Default" in Template Name and select My Templates.
3. Look in templates folder. On my install it's located in C:\Users\<user>\AppData\Roaming\LibreOffice\4\user\template. You should see a file Default.otp
4. Create new Draw document
5. Save as Template with name Default in My Templates. (File...Templates...Save as Template... Type "Default" in Template Name and select My Templates. You may be asked if you want to overwrite Deafault template. This is the first clue that something is broken. Click yes.
6. Look in templates folder. "Default.otp" has disappeared. It has been replaced by "Default.otg"
Comment 5 Xisco Faulí 2019-04-12 10:35:08 UTC
You can't confirm your own bugs. Moving it back to UNCONFIRMED until someone
else confirms it.
Comment 6 Xisco Faulí 2019-07-09 14:28:29 UTC
Could you please paste the info from Help - about LibreOffice ?

I have set the bug's status to 'NEEDINFO'. Please change it back to
'UNCONFIRMED' once the information has been provided
Comment 7 wpeaton4 2019-07-09 15:13:09 UTC
Version: 6.1.5.2 (x64)
Build ID: 90f8dcf33c87b3705e78202e3df5142b201bd805
CPU threads: 24; OS: Windows 6.1; UI render: default; 
Locale: en-US (en_US); Calc: CL
Comment 8 Oliver Grimm 2019-12-29 00:24:08 UTC
confirmed here on

Version: 6.3.4.2.0+
Build-ID: 1:6.3.4-2
CPU-Threads: 2; BS: Linux 5.3; UI-Render: Standard; VCL: kde5; 
Gebietsschema: de-DE (de_DE.UTF-8); UI-Sprache: de-DE
Calc: threaded

Draw templates do indeed overwrite impress templates though Impress templates are not shown in the "manage templates" dialog in Draw.
Comment 9 Stéphane Guillou (stragu) 2021-07-19 13:36:30 UTC
Confirmed in LO 7.2 RC1

Version: 7.2.0.1 / LibreOffice Community
Build ID: 32efc3b7f3a71cfa6a7fa3f6c208333df48656cc
CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded
Comment 10 QA Administrators 2023-07-20 03:17:31 UTC
Dear wpeaton4,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug