Bug 132202 - file read-in becomes 'untitled'
Summary: file read-in becomes 'untitled'
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.4.0.1 rc
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-17 19:22 UTC by TorrAB
Modified: 2020-05-04 11:09 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
existing file (27.16 KB, application/vnd.oasis.opendocument.text)
2020-04-17 19:24 UTC, TorrAB
Details

Note You need to log in before you can comment on or make changes to this bug.
Description TorrAB 2020-04-17 19:22:16 UTC
Description:
Read file Regles.odt: it appears as 'Untitled —', as if it were a new file. Why?


Actual Results:
existing file is loaded as 'Untitled'

Expected Results:
An existing file should not be 'Untitled'


Reproducible: Always


User Profile Reset: No



Additional Info:
file was written by OpenOffice
Comment 1 TorrAB 2020-04-17 19:24:30 UTC
Created attachment 159666 [details]
existing file
Comment 2 Maxim Monastirsky 2020-04-18 22:43:14 UTC
This happens because the attached file isn't really a document but a template, just with a wrong file extension. The default behavior when opening templates is to create a new document based on the template. That's why the document's title is "Untitled 1". There is also a special menu item File > Templates > Open Template... which allows you to edit the template itself, if you wish. (And OpenOffice has the same behavior, so this isn't specific to LO.)

You can verify that this is indeed a template, by changing the extension to zip, and opening with your favorite archiver. Both mimetype and META-INF/manifest.xml files indicate the type as "application/vnd.oasis.opendocument.text-template".
Comment 3 TorrAB 2020-05-04 11:09:55 UTC
(In reply to Maxim Monastirsky from comment #2)
> This happens because the attached file isn't really a document but a
> template, just with a wrong file extension. The default behavior when
> opening templates is to create a new document based on the template. That's
> why the document's title is "Untitled 1". There is also a special menu item
> File > Templates > Open Template... which allows you to edit the template
> itself, if you wish. (And OpenOffice has the same behavior, so this isn't
> specific to LO.)
> 
> You can verify that this is indeed a template, by changing the extension to
> zip, and opening with your favorite archiver. Both mimetype and
> META-INF/manifest.xml files indicate the type as
> "application/vnd.oasis.opendocument.text-template".

Thank you!
I don't remember creating —and renaming! —this template.