Save As bug

Hi.
I have noticed a bug in Save As from writer, long standing.
I know the reason for what is happening, but not sure if fixed in the 5
series (I am still on 4). If you open the below file and click Save As I
have the file name curtailed to TN16 in the dialogue, LO does not pass the
whole file name to the Save As dialogue.
TN16.779SoftwareConfigurationofAzureSeriesInstruments
<http://nabble.documentfoundation.org/file/n4169631/TN16.779SoftwareConfigurationofAzureSeriesInstruments>

If this bug could be verified in the 5 series I will file a bug report.

Observed in Opensuse 13.2

steve

Hi Steve,

steveedmonds schrieb:

Hi.
I have noticed a bug in Save As from writer, long standing.
I know the reason for what is happening, but not sure if fixed in the 5
series (I am still on 4). If you open the below file and click Save As I
have the file name curtailed to TN16 in the dialogue, LO does not pass the
whole file name to the Save As dialogue.
TN16.779SoftwareConfigurationofAzureSeriesInstruments
<http://nabble.documentfoundation.org/file/n4169631/TN16.779SoftwareConfigurationofAzureSeriesInstruments>

If this bug could be verified in the 5 series I will file a bug report.

I see the problem in version 5.2 too. It seems to be this bug report
https://bugs.documentfoundation.org/show_bug.cgi?id=74064

Kind regards
Regina

Is this exactly a bug? Do you, in fact, know the reason for it happening? Your original file name is missing its proper extension of ".odt". The part of the existing name after the dot is - surely quite properly? - interpreted as its extension. Then when you do a Save As..., the program offers to correct the inappropriate extension to the appropriate one. How is that a bug?

If you correct the original mistake by adding the correct extension to the file name before you open it, the Save As... will surely work with no problem. Doesn't LibreOffice use extensions (along with actual file contents) to determine in what format to interpret any document file?

Brian Barker

Doesn't LO automatically add .odt to the filename (unless overridden by the user)? In Windows, at least, that's accomplished by selecting the file type in the Save As dialogue.

Dave Liesse

Indeed so, but someone has created a document file, we are told, without this extension.

If you open a file named a.odt, everything is OK If you open a file named a.b.odt, everything is also OK. But if you open in LibreOffice Writer a file named a.b (without the ".odt"), the "b" is now its extension, so Save As... offers "a" as the file name and "odt" as the corrected extension. If the original file - a.b - was saved from LibreOffice it must have been saved without the proper extension or its name must have been changed before it was offered back to LibreOffice. That's where the problem lies - and also where the solution lies.

Brian Barker

You are correct Brian, the bug is different. I hadn't noticed that the extension was missing, Opensuse doesn't need it to know its a Writer file.
What is happening is that the extension is not being automatically added, it seems I need to explicitly add the extension in the dialogue.
Create a new Writer file, Click Save, type a name like 16.77.test and have automatically add extension. It is not added on file save.
Same when producing a PDF.
Steve

Some software Save dialogues interpret anything after a dot in the name field as overriding whatever extension is specified elsewhere (or by default), I think. Perhaps this is a hangover from the days when the only use of a dot in a file name would be as the extension separator - with the name part never including dots. Could this be operating system dependent?

Brian Barker