After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 764739 - Don't try to open Microsoft Office temporary files
Don't try to open Microsoft Office temporary files
Status: RESOLVED FIXED
Product: tracker
Classification: Core
Component: Extractor
1.8.x
Other All
: Normal normal
: ---
Assigned To: tracker-extractor
tracker-extractor
Depends on:
Blocks:
 
 
Reported: 2016-04-07 15:54 UTC by Christian Stadelmann
Modified: 2016-05-15 08:16 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
tracker-miner-fs: Add MS Office "owner files" to ignored-files (2.19 KB, patch)
2016-05-14 20:33 UTC, Carlos Garnacho
committed Details | Review

Description Christian Stadelmann 2016-04-07 15:54:09 UTC
Microsoft Office is creating files named like ~$cument.docx. Tracker-extractor doesn't need to index them and thus doesn't need to warn about being unable to work with them.
Comment 1 Carlos Garnacho 2016-05-13 23:33:39 UTC
Sure, sounds worthwhile to add to filters. What would be a common pattern for those temporary documents? I assume the "cument" part in your example is variable. Would "~$*.docx" work?
Comment 2 Christian Stadelmann 2016-05-14 10:42:22 UTC
(In reply to Carlos Garnacho from comment #1)
> Would "~$*.docx" work?

Yes, that's the way they look like.

Same for
Word:
.docx
.docm
.dotx
.dotm

Excel
.xlsx
.xlsm
.xltx
.xltm
.xlam

Powerpoint
.pptx
.pptm
.potx
.potm
.ppam
.ppsx
.ppsm

Visio:
.vsdx
.vsdm
.vssx
.vssm
.vstx
.vstm


Source: https://support.office.com/en-us/article/Introduction-to-new-file-name-extensions-ECA81DCB-5626-4E5B-8362-524D13AE4EC1 and https://technet.microsoft.com/en-us/library/cc179191.aspx
Comment 3 Carlos Garnacho 2016-05-14 20:33:44 UTC
Thanks for the info. Pushed a fix to master so far, a candidate for backporting though.

The following fix has been pushed:
eb1f3d9 tracker-miner-fs: Add MS Office "owner files" to ignored-files
Comment 4 Carlos Garnacho 2016-05-14 20:33:48 UTC
Created attachment 327898 [details] [review]
tracker-miner-fs: Add MS Office "owner files" to ignored-files

"Owner files" (described in https://support.microsoft.com/en-us/kb/211632)
works as a lock file when opening the document. Those are supposedly
removed when the document is closed, but in practice there's situations
where those are left behind, and are meaningless to tracker.

Those files may be generated for any of the document extensions, so handle
the whole bunch.
Comment 5 Christian Stadelmann 2016-05-15 08:16:41 UTC
Thank you very much!