Bug 127215 - If saving a file.with.dots, ".odt" is not appended, so Export to PDF results in file.with.PDF instead of file.with.dots.PDF (KDE or OpenSuse?)
Summary: If saving a file.with.dots, ".odt" is not appended, so Export to PDF results ...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.2.5.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: KDE, KF5
  Show dependency treegraph
 
Reported: 2019-08-29 12:08 UTC by gorgonz
Modified: 2023-02-01 22:08 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Screencast with master as of 2023-02-01 (832.95 KB, video/x-matroska)
2023-02-01 08:57 UTC, Michael Weghorn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gorgonz 2019-08-29 12:08:16 UTC
Description:
if You export a writer file with more then one dot to pdf, then the suggestion for the pdf name is cut off after the FIRST dot

Better solution is to cut off after the LAST dot ;-)




Steps to Reproduce:
1.create a new file
2.save it as name with more dots, like my.example.file.odt
3.export to pdf

Actual Results:
 pdf export will create the name suggestion my.pdf 

Expected Results:
 pdf export should create the name suggestion my.example.file.pdf 


Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
[Information automatically included from LibreOffice]
Locale: de
Module: TextDocument
[Information guessed from browser]
OS: Linux (All)
OS is 64bit: yes

Its openSUSE leap 15.1:
Version: 6.2.5.2
Build-ID: 20(Build:2)
CPU-Threads: 8; BS: Linux 4.12; UI-Render: Standard; VCL: kde5; 
Gebietsschema: de-DE (de_DE.UTF-8); UI-Sprache: de-DE
Calc: threaded
Comment 1 Oliver Brinzing 2019-08-29 12:23:22 UTC
i cannot confirm this with:

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

Maybe a Linux only issue?
Comment 2 Jean-Baptiste Faure 2019-09-08 14:26:42 UTC
Not reproducible with LibreOffice 6.3.3.0+ under Ubuntu 18.04 x86-64 with gtk3 backend.

KDE only problem ?

Best regards. JBF
Comment 3 Timur 2019-09-09 12:39:09 UTC
@ gorgonz: 
Please reset your profile and also test with versions from http://libreoffice.soluzioniopen.com/ 
So that we narrow down to Suse or KDE or your profile.
Comment 4 gorgonz 2019-09-09 15:49:57 UTC
damn, I did a mistake and so my description was not correct. There are two errors, but in a different way:

When saving a file without dots then the name defaults to filename.odt. But if saving a file with dots, then NO ".odt" is appended. 

If I export a file, that has a suffix .odt, then the pdf name is created in the right way. If I use a file name without .odt then the name is truncated, deleting the the string part after the last dot.

Conclusions:
1. Saving a file with a wanted type of odt should get the suffix .odt in any case, where the last part of the name is not equal to odt
2. Exporting a file to pdf should take the last string part, if it is not odt.
 
Sorry, that I didn't notice that earlier.

Used 3 AppImages 6.2.7, 6.3.1 and 6.4.0alpha as of today, all of them show the same behaviour
Comment 5 Timur 2019-09-10 08:39:38 UTC
(In reply to gorgonz from comment #4)

> When saving a file without dots then the name defaults to filename.odt. But
> if saving a file with dots, then NO ".odt" is appended. 
No repro in Linux Mint. If I set name test.xxx.yyy then test.xxx.yyy.odt is created if ODT is selected as filetype (not: All Formats). 
Although this is Linux only report, let's note no repro in Windows as shown Bug 111070. 

> If I export a file, that has a suffix .odt, then the pdf name is created in
> the right way. If I use a file name without .odt then the name is truncated,
> deleting the the string part after the last dot.
No repro. If I export test.xxx.yyy.odt, then test.xxx.yyy.pdf is created. 

We still don't know whether your issue could be Suse or KDE. 
Please test with some other distro or interface, if you can.
Comment 6 QA Administrators 2019-09-10 08:46:13 UTC Comment hidden (obsolete)
Comment 7 Timur 2019-09-11 14:59:28 UTC
No repro in OpenSuse. It's up to you to find a cause.
Comment 8 gorgonz 2019-09-11 18:06:48 UTC
well, I don't know, just wanted to help, making LO better ;-). You may close it then, because You can't reproduce the bug.

Still some notes for analysing the behaviour on my systems:

- Tried the same with my laptop and openSUSE Tumbleweed => same result with those 3 versions

- there was no difference in using AppImage in language de or en.

- opened "nur.test2.bug" in leap 15.1, the moment I call the export function in 6.2.7 I see these messages in the konsole:
kf5.kservice.services: The desktop entry file "/usr/share/applications/org.kde.drkonqi.desktop" has Type= "Application" but no Exec line
kf5.kservice.sycoca: Invalid Service :  "/usr/share/applications/org.kde.drkonqi.desktop"
kf5.kservice.services: The desktop entry file "/usr/share/applications/org.kde.systemmonitor.desktop" has Type= "Application" but no Exec line
kf5.kservice.sycoca: Invalid Service :  "/usr/share/applications/org.kde.systemmonitor.desktop"
kf5.kio.core: Invalid URL: QUrl("nur.test2.pdf")
kf5.kio.core: Invalid URL: QUrl("nur.test2.pdf")

- if I use my official LO 6.2.5.2 from konsole, then I get less messages:
kf5.kio.core: Invalid URL: QUrl("nur.test2.pdf")
kf5.kio.core: Invalid URL: QUrl("nur.test2.pdf")
Comment 9 gorgonz 2019-09-11 19:44:57 UTC
maybe I should have listened more carefully, forget one subject: profile

Sorry ;-)

- created a new user test with a new standard profile in leap 15.1
- starting konsole and standard LO 6.5.2.5
- opening "nur.test2.bug"
- open the export dialog results in:
test@linux-8ipm1:~/Downloads> libreoffice
kf5.kio.widgets: No node found for item that was just removed: QUrl("file:///home/test/Downloads/LibreOffice-6.2.7-x86_64.AppImage")
kf5.kio.core: Invalid URL: QUrl("nur.test2.pdf")
kf5.kio.core: Invalid URL: QUrl("nur.test2.pdf")

- open file in 6.2.7 brings
f5.kservice.services: The desktop entry file "/usr/share/applications/org.kde.drkonqi.desktop" has Type= "Application" but no Exec line
kf5.kservice.sycoca: Invalid Service :  "/usr/share/applications/org.kde.drkonqi.desktop"
kf5.kservice.services: The desktop entry file "/usr/share/applications/org.kde.systemmonitor.desktop" has Type= "Application" but no Exec line
kf5.kservice.sycoca: Invalid Service :  "/usr/share/applications/org.kde.systemmonitor.desktop"

- exporting now brings
kf5.kio.core: Invalid URL: QUrl("nur.test2.pdf")
kf5.kio.core: Invalid URL: QUrl("nur.test2.pdf")

and - as already mentioned the name "nur.test2.pdf instead of "nur.test2.bug.pdf". So, this bug still exists.

But the other file name "nur.test.bug.odt" is exported in the right way to "nur.test.bug.pdf". Just by the way, also produced these messages:
kf5.kio.core: Invalid URL: QUrl("nur.test.bug.pdf")
kf5.kio.core: Invalid URL: QUrl("nur.test.bug.pdf")

This behaviour is the same in 6.4.0-alpha
Comment 10 QA Administrators 2019-09-12 02:52:10 UTC Comment hidden (obsolete)
Comment 11 Timur 2019-09-18 12:39:42 UTC
I think I reproduced in OpenSuse Thumbleweed with LO 6.3 and system dialog.

What happens is that desired file name "nur.test.bug" is not appended with ".odt" although it's shown as file type. And that would be the bug. 
It's saved as "nur.test.bug" and then if exported to PDF, filename offered is "nur.test.pdf" which may make some sense but also may be a bug.

This could be a duplicate of Bug 74064 but let's keep separated until explained why this one doesn't happen in other Linux with GTK3.
Comment 12 QA Administrators 2021-09-18 03:26:50 UTC Comment hidden (obsolete, spam)
Comment 13 Michael Weghorn 2023-02-01 08:57:20 UTC
Created attachment 185041 [details]
Screencast with master as of 2023-02-01
Comment 14 Michael Weghorn 2023-02-01 08:59:01 UTC
Is this stil an issue for you with a current LO and KDE Plasma version?

If I understand correctly, this all works as expected for me with the current development version (git master) on Debian testing, s. screencast attachment 185041 [details].

Or are the steps you take different from the ones shown there?

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: a262ee4c4a682f844ef380d5e843be1b3ec78c98
CPU threads: 12; OS: Linux 6.1; UI render: default; VCL: kf5 (cairo+xcb)
Locale: en-GB (en_GB.UTF-8); UI: en-US
Calc: threaded
Comment 15 gorgonz 2023-02-01 22:08:38 UTC
No, is not an issue anymore. Tested with

Version: 7.3.6.2 / LibreOffice Community
Build ID: 30(Build:2)
CPU threads: 12; OS: Linux 5.14; UI render: default; VCL: kf5 (cairo+xcb)
Locale: de-DE (de_DE.UTF-8); UI: de-DE
Calc: threaded

and works as expected. Nice job, well done :-)