Spotlight: wrong kMDItemKind values on volumes with disowned on-disk ownership

Originator:martin.kopischke
Number:rdar://11457199 Date Originated:15/05/2012
Status:open Resolved:
Product:OS X Product Version:10.7.4
Classification:Other bug Reproducible:yes
 
Summary:
On volumes with disowned on-disk ownership, Spotlight indexing stores wrong values for kMDItemKind. Instead of the correct values, tangentially related ones (form other apps registered as handlers) are stored.

Steps to Reproduce:
1. Install iFlicks and MPlayerX from the App Store.
2. Make sure QuickTimeX is the default handler for m4v files.
3. Make sure MPlayerX is the default hander for mkv files
2. Copy a m4v file from the iTunes library and an mkv file on the external drive. 
3. run mdls on the copied files

Expected Results:
kMDItemKind of the m4v is ”Apple MPEG-4 Movie” (approximate translation, German system here)
kMDItemKind of the mkv is ”“Video Media” (from MPlayerX)

Actual Results:
kMDItemKind of the m4v is ”Video-MPEG-4” (from iFlicks)
kMDItemKind of the mkv is ”Video-DivX” (from iFlicks – technically wrong, too: iFlicks registers “Matroska-Video”)

Regression:

Notes:
Running mdls on the source files (internal drive, adopted on-disk ownership) shows the correct values for kMDItemKind. Adopting ownership on the external drive, chown’ing the files and re-indexing will correct the erroneous Values. originally discussed on http://superuser.com/questions/424800/different-spotlight-kmditemkind-metadata-values-for-same-file-on-different-drive.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!