[Libreoffice-bugs] [Bug 49939] Exported kMDItemContentTypeTree is missing root (was: .Odf files not showing in Document search!)

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat Aug 26 16:06:43 UTC 2017


https://bugs.documentfoundation.org/show_bug.cgi?id=49939

eisa01 <eisa01 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |NOTOURBUG

--- Comment #19 from eisa01 <eisa01 at gmail.com> ---
According to comment #14 the LibreOffice files are missing
"org.oasis-open.opendocument" from the kMDItemContentTypeTree, and I see the
mdls logs posted don't have them

When I run mdls on my mac on the test files here, they are present now

This is in fact set by the Spotlight importer, so this has been resolved, but
was not a bug in LibreOffice

https://developer.apple.com/library/content/documentation/CoreServices/Reference/MetadataAttributesRef/Reference/CommonAttrs.html

kMDItemContentType
Uniform Type Identifier of the file. For example, a jpeg image file will have a
value of public.jpeg. The value of this attribute is set by the Spotlight
importer. Changes to this value are lost when the file attributes are next
imported.
This attribute is marked as nosearch. You must specify this attribute key
explicitly in a query in order for its contents to be searched.

Version: 5.4.0.3
Build ID: 7556cbc6811c9d992f4064ab9287069087d7f62c
CPU threads: 2; OS: Mac OS X 10.12.6; UI render: default; 
Locale: en-US (en_US.UTF-8); Calc: group


mdls test2.odf 
_kMDItemOwnerUserID            = 501
kMDItemContentCreationDate     = 2017-08-26 15:58:48 +0000
kMDItemContentModificationDate = 2017-08-26 15:58:48 +0000
kMDItemContentType             = "org.oasis-open.opendocument.formula"
kMDItemContentTypeTree         = (
    "org.oasis-open.opendocument.formula",
    "org.oasis-open.opendocument",
    "public.data",
    "public.archive",
    "public.item",
    "public.content",
    "public.zip-archive",
    "org.oasis-open.opendocument.formula",
    "com.pkware.zip-archive"
)
kMDItemDateAdded               = 2017-08-26 15:58:48 +0000
kMDItemDisplayName             = "test2.odf"
kMDItemFSContentChangeDate     = 2017-08-26 15:58:48 +0000
kMDItemFSCreationDate          = 2017-08-26 15:58:48 +0000
kMDItemFSCreatorCode           = ""
kMDItemFSFinderFlags           = 0
kMDItemFSHasCustomIcon         = (null)
kMDItemFSInvisible             = 0
kMDItemFSIsExtensionHidden     = 0
kMDItemFSIsStationery          = (null)
kMDItemFSLabel                 = 0
kMDItemFSName                  = "test2.odf"
kMDItemFSNodeCount             = (null)
kMDItemFSOwnerGroupID          = 20
kMDItemFSOwnerUserID           = 501
kMDItemFSSize                  = 4264
kMDItemFSTypeCode              = ""
kMDItemKind                    = "OpenDocument Formula"
kMDItemLogicalSize             = 4264
kMDItemPhysicalSize            = 8192

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170826/c7ec6e69/attachment.html>


More information about the Libreoffice-bugs mailing list