Bug 1480243 - ods file detected as text
ods file detected as text
Status: NEW
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: nautilus (Show other bugs)
7.4
x86_64 Linux
unspecified Severity unspecified
: rc
: ---
Assigned To: Carlos Soriano
Desktop QE
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-08-10 09:23 EDT by Tomas Hudziec
Modified: 2017-08-11 08:27 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
screenshot of ods file opened as text (538.39 KB, image/png)
2017-08-10 09:23 EDT, Tomas Hudziec
no flags Details
properties of ods file (749.14 KB, image/png)
2017-08-11 06:18 EDT, Tomas Hudziec
no flags Details

  None (edit)
Description Tomas Hudziec 2017-08-10 09:23:03 EDT
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 11:02:13 EDT
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 03:51:57 EDT
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 04:37:24 EDT
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 06:13:19 EDT
(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 06:18 EDT
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 08:27:44 EDT
I think the desktop dingus is "nautilus-desktop"

Note You need to log in before you can comment on or make changes to this bug.