Bug 1480243

Summary: ods file detected as text
Product: Red Hat Enterprise Linux 7 Reporter: Tomas Hudziec <thudziec>
Component: nautilusAssignee: Carlos Soriano <csoriano>
Status: CLOSED CURRENTRELEASE QA Contact: Desktop QE <desktop-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.4CC: dtardon, thudziec
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-07-04 13:08:00 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:
Attachments:
Description Flags
screenshot of ods file opened as text
none
properties of ods file none

Description Tomas Hudziec 2017-08-10 13:23:03 UTC
Created attachment 1311767 [details]
screenshot of ods file opened as text

Description of problem:
Sometimes after saving and closing ods file via LibreOffice Calc the file has no thumbnails and is treated as a text file. When opened, it is opened in text editor.

Version-Release number of selected component (if applicable):
libreoffice-calc-5.0.6.2-14.el7.x86_64

How reproducible:
occasionally

Steps to Reproduce:
1. open some ods file in LibreOffice Calc
2. make some changes
3. save & quit

Actual results:
The file loses its thumbnail and is treated as a text file.

Expected results:
The file has its thumbnail and is treated as an ods file.

Additional info:
After opening the ods file in Archive Manager the issue is repaired.

Comment 2 Caolan McNamara 2017-08-10 15:02:13 UTC
I assume the ods is not corrupted, i.e. that it opens fine if manually opened from within libreoffice, i.e. the (gnome-shell?) file detection misdetected the ods

Comment 3 David Tardon 2017-08-11 07:51:57 UTC
What does "opened in text editor" mean? Does it show meaningful content? XML? Garbage? Note that Writer is used as "last resort" for opening files whose type couldn't be determined.

Comment 4 Caolan McNamara 2017-08-11 08:37:24 UTC
In the screen shot its opened in gedit and the icon on the desktop is shown as a text icon. So the problem seems to be outside of LibreOffice (assuming that the file isn't actually corrupted on save). I'm unsure what "thing" does the detection here however.

How about opening nautilus and browsing to the Desktop and what sort of icon does nautilus show for the ods (when its shown as a text icon on the root screen) and what does right click->properties list then ?

Comment 5 Tomas Hudziec 2017-08-11 10:13:19 UTC
(In reply to Caolan McNamara from comment #2)
> I assume the ods is not corrupted, i.e. that it opens fine if manually
> opened from within libreoffice, i.e. the (gnome-shell?) file detection
> misdetected the ods

The ods file itself is not corrupted. It can be opened manually within LibreOffice Calc, changed, saved and closed. Detection works correctly after that.

Comment 6 Tomas Hudziec 2017-08-11 10:18:16 UTC
Created attachment 1312049 [details]
properties of ods file

When Desktop folder opened via Nautilus, ods file detection and its properties are correct. Properties of misdetected file are wrong, they even show that file has 0 bytes.

Comment 7 Caolan McNamara 2017-08-11 12:27:44 UTC
I think the desktop dingus is "nautilus-desktop"

Comment 8 Tomas Hudziec 2018-07-04 13:08:00 UTC
Have not managed to reproduce after ~ 15 attempts with nautilus-3.26.3.1-2.el7.x86_64 and gnome 3.28 on RHEL 7.6, closing.