mdimport fails on folders containing a dot in iCloud's ubiquity container

Originator:graeter
Number:rdar://12766774 Date Originated:28-Nov-2012 03:44 PM
Status:Open Resolved:
Product:OS X Product Version:10.8.3
Classification:Severe Bug Reproducible:Always
 
SUMMARY:

If a folder with a dot inside the filename is created inside an ubiquity container, Spotlight fails to index files inside the folder.


STEPS TO REPRODUCE:

- Create a folder inside an ubiquity container that has a dot in its filename

mkdir ~/Library/Mobile\ Documents/com~apple~TextEdit/Documents/foo.bar

- Place a text file inside the folder

echo "Strawberry" >~/Library/Mobile\ Documents/com~apple~TextEdit/Documents/foo.bar/some.txt

- Import the text file

mdimport -d 4 ~/Library/Mobile\ Documents/com~apple~TextEdit/Documents/foo.bar/some.txt


EXPECTED RESULTS:

"some.txt" should be imported


ACTUAL RESULTS:

"some.txt" is not imported.

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!