Bug 1715109

Summary: [fix available] Image with no extension can not be inserted but can be opened.
Product: Red Hat Enterprise Linux 8 Reporter: Bill Sanford <bsanford>
Component: libreofficeAssignee: Caolan McNamara <caolanm>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.1CC: jkoten, mboisver, tpelka
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libreoffice-6.0.6.1-16.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-05 20:54:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Bill Sanford 2019-05-29 15:17:58 UTC
Description of problem:
I just installed RHEL-8.1.0-20190523.0 and libreoffice-6.0.6.1-13 and I try to insert and image File -> Insert -> Image to Writer (Or any LO app) with an image file (.jpg) that has no extension and I can't. If I do a File -> Open and select the file, without extension, it opens it within writer.

It seems like this was never tested and is default behavior.

Version-Release number of selected component (if applicable):
RHEL-8.1.0-20190523.0
libreoffice-6.0.6.1-13
libreoffice-filters-6.0.6.1-13

How reproducible:
100%

Steps to Reproduce:
1. Get or edit an image file, (JPG was used) and remove .jpg extension
2. File -> Insert -> Image to Writer and this file is not available.
3. Now try File -> Open and select the file.

Actual results:
Image is never shown to exist to add to Writer.

Expected results:
Image should be available to add.

Additional info:

I noticed that File -> Insert -> Image instead of having "All Files" in the dropdown of the Insert Image dialog, it has "All Images" or "All Formats," denoting that an extension is still hard coded to still require an extension.

Comment 1 Caolan McNamara 2019-05-31 14:35:36 UTC
My upstream patch for this https://gerrit.libreoffice.org/#/c/73276/

keep "<All formats>" to list everything that's known to be an image by its suffix, but add "All files" like file->open to list everything

Comment 3 Bill Sanford 2019-06-25 14:50:11 UTC
Verified with libreoffice-6.0.6.1-16.el8

Comment 5 errata-xmlrpc 2019-11-05 20:54:23 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:3354