Finder can lose files in a Copy / Paste action

Originator:peter
Number:rdar://13039999 Date Originated:2013-01-18
Status:Open Resolved:
Product:Mac OS X Product Version:10.8.2
Classification:Serious bug Reproducible:Always
 
Summary:

If any application is monitoring the pasteboard, and if the Finder is used to "Copy" a large number of items, and if the monitoring of the pasteboard happens while the Finder is populating the pasteboard, files will be missed.  When pasted, some files will be missing.

Steps to Reproduce:

Install any clipboard history application (eg Keyboard Maestro, iClip, PTH Pasteboard, etc).
Create a directory with a large number of small files in it (1000-100,000).
Create a new empty directory.
Select Al files in the first folder.
Command-C
Move to the second folder
Command-V

Expected Results:

All files copied.

Actual Results:

Some files are missed if the pasteboard is read while the Finder is populating the pasteboard.

Notes:

This may be a bug in the Finder, or a bug in the system pasteboard.  There is no apparent way to set the clipboard atomically, nor to tell when a change to the clipboard is "completed".

If the reading clipboard accesses [[NSPasteboard generalPasteboard] changeCount] and either  [[[NSPasteboard generalPasteboard] pasteboardItems] count] or PasteboardGetItemCount, files will be lost.

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!