Bug 149466 - LibreOffice Draw opens the OpenSSH public key
Summary: LibreOffice Draw opens the OpenSSH public key
Status: RESOLVED WONTFIX
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
7.0 all versions
Hardware: All All
: lowest trivial
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsUXEval
Depends on:
Blocks:
 
Reported: 2022-06-06 19:13 UTC by Salman Mohammadi
Modified: 2022-06-08 06:35 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Open dialog (24.39 KB, image/png)
2022-06-07 11:40 UTC, Shinji Enoki
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Salman Mohammadi 2022-06-06 19:13:04 UTC
Description:
I created an SSH key pair using the following command on Debian:

    $ ssh-keygen

which subsequently created two files:

    id_rsa  id_rsa.pub

the public key has a .pub extension but has the following type:

    $ file id_rsa.pub 
    id_rsa.pub: OpenSSH RSA public key

But LibreOffice assumes that every .pub file is a Microsoft Publisher file and LibreOffice Draw becomes automatically the default software to open it.

I think this is a bug and it needs to be changed.

Actual Results:
LibreOffice Draw opens the ssh public key

Expected Results:
LibreOffice Draw should not open ssh public key file.


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.0.4.2
Build ID: 00(Build:2)
CPU threads: 8; OS: Linux 5.16; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Debian package version: 1:7.0.4-4+deb11u1
Calc: threaded
Comment 1 Shinji Enoki 2022-06-07 11:39:00 UTC
Reproduced in:

Version: 7.3.2.2 / LibreOffice Community
Build ID: 49f2b1bff42cfccbd8f788c8dc32c1c309559be0
CPU threads: 8; OS: Linux 5.17; UI render: default; VCL: gtk3
Locale: ja-JP (ja_JP.UTF-8); UI: ja-JP
Calc: threaded

If I opened it in LibreOffice, I opened it in Writer.
The file is listed as Microsoft Publisher document in the Type field of the Open dialog.
Comment 2 Shinji Enoki 2022-06-07 11:40:25 UTC
Created attachment 180620 [details]
Open dialog
Comment 3 Shinji Enoki 2022-06-07 11:49:34 UTC
I confirmed it, but in my environment it opens in Writer instead of Draw. So this is just a matter of displaying in the dialog for me.
Comment 4 Timur 2022-06-07 15:04:30 UTC
This is a trivial problem with no "right" solution. 
Maybe Publisher files are rare but so or more is opening of .pub with LO.
IMO this is WontFix.
Comment 5 Heiko Tietze 2022-06-08 06:35:50 UTC
The association between the extension pub and the program MS Publisher is clear. And that's how it works - no checks whatsoever. Another example is ODT, the default for Writer but also used by other programs, see https://filext.com/file-extension/ODT.

The SSH public key is supposed to live in a hidden directory (since you use the command "file" I suppose it's Linux where ~/.ssh is the default). You come hardly in touch with the key.