Bug 129804 - Conflicting template names
Summary: Conflicting template names
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
6.2.7.1 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Templates
  Show dependency treegraph
 
Reported: 2020-01-05 09:26 UTC by John
Modified: 2024-06-07 04:49 UTC (History)
3 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 John 2020-01-05 09:26:32 UTC
Description:
Consider you have 2 templates somewhere in the external directory (e.g. C:\Users\John\Desktop):

one template is for Writer, and one template is for Calc.

They have the same base name: template. That is, their names are

template.ots and template.ott

Then, proceed the following steps:

1. Copy Writer template to the default templates directory; i.e.
   C:\Users\John\AppData\Roaming\LibreOffice\4\user\template

2. Open Writer, select File > Templates > Manage Templates
   and make sure the copied template is shown.

3. Delete the copied template from 
   C:\Users\John\AppData\Roaming\LibreOffice\4\user\template

4. Repeat steps 1 and 2 for Calc.

5. Don't delete Calc template. Copy Writer template.
   Thus, you will have both templates in
   C:\Users\John\AppData\Roaming\LibreOffice\4\user\template

6. Repeat step 2. The, repeat step 2 for Calc.
   You will see that Writer "see" template.ott, but
   Calc don't "see" template.ots

7. Rename one of these templates and see that problem is gone.
   Now, both templates are "visible".

So, when we have templates with the same names (e.g. template.ots and template.ott, or foo.ots and foo.ott), LibreOffice see only one of them.

Steps to Reproduce:
-

Actual Results:
-

Expected Results:
-


Reproducible: Always


User Profile Reset: Yes



Additional Info:
-
Comment 1 Oliver Brinzing 2020-01-05 09:55:15 UTC
If you work with templates without using the provided "Manage Templates" dialog:

Have you tried to refresh the list via:

Menu File/Templates/Manage Templates
-> click "Settings" icon and select "Refresh" 

I have set the bug's status to 'NEEDINFO'. Please change it back to
'UNCONFIRMED' if the issue is still present
Comment 2 John 2020-01-05 13:30:46 UTC
(In reply to Oliver Brinzing from comment #1)

Refresh doesn't change anything.
Comment 3 Oliver Brinzing 2020-01-05 14:39:41 UTC
reproducible with:

Version: 6.4.0.1 (x64)
Build-ID: 1b6477b31f0334bd8620a96f0aeeb449b587be9f
CPU-Threads: 4; BS: Windows 10.0 Build 18363; UI-Render: Standard; VCL: win; 
Gebietsschema: de-DE (de_DE); UI-Sprache: de-DE
Calc: 

I think the root cause is "Childrens" name in "registrymodifications.xcu",
looks like it is the template name without extension.

<node oor:name="Meine%20Dokumentvorlagen" oor:op="replace">
	<prop oor:name="Type" oor:op="fuse">
		<value>1</value>
	</prop>
	<prop oor:name="Title" oor:op="fuse">
		<value>Meine Dokumentvorlagen</value>
	</prop>
	<node oor:name="Children">
		<node oor:name="test" oor:op="replace">
			<prop oor:name="Type" oor:op="fuse">
				<value>0</value>
			</prop>
			<prop oor:name="Title" oor:op="fuse">
				<value>test</value>
			</prop>
			<node oor:name="Children"/>
			<prop oor:name="TargetURL" oor:op="fuse">
				<value>file:///C:/templates/test.ott</value>
			</prop>
		</node>
		<node oor:name="testCalc" oor:op="replace">
			<prop oor:name="Type" oor:op="fuse">
				<value>0</value>
			</prop>
			<prop oor:name="Title" oor:op="fuse">
				<value>testCalc</value>
			</prop>
			<node oor:name="Children"/>
			<prop oor:name="TargetURL" oor:op="fuse">
				<value>file:///C:/templates/testCalc.ots</value>
			</prop>
		</node>
	</node>
	<prop oor:name="TargetURL" oor:op="fuse">
		<value/>
	</prop>
</node>
Comment 4 John 2020-01-05 16:38:00 UTC
If templates are intended to be used as the default ones, here is a workaround:

1. Copy template.ots 
2. Open Calc and make template.ots as the default template.

3. Copy template.ott
4. Open Writer and make template.ott as the default template.

That's it.
Comment 5 QA Administrators 2022-01-05 03:39:29 UTC
Dear John,

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