Leopard stumbles over file transfers

A flaw has been identified in the way Apple's operating system Leopard moves files between storage volumes which deletes the source file if the transfer is disrupted.

Tom Karpik, a computer science student at the British Columbia Institute of Technology, says he has identified a bug in Leopard that can cause data loss at the source file while moving files to another hard drive.

If the source of the files crash or is disconnected from the network while the move is under way, the contents of the file completely disappear from the source machine, leaving the user with only with the files already copied to the destination machine.

The problem is related specifically to moving files -- as opposed to copying them -- which is considered a risky method of transporting files since the user acknowledges they want that file deleted from the source machine once the operation is completed. The default setting in Leopard also is to "copy" the file from source to destination when the icon is dragged across the screen -- bypassing the default requires a user to hold down the Command key while dragging the icon.

Commenters on Karpik's blog, Slashdot, and others like Daring Fireball's John Gruber point out that users are asking for trouble if they opt to "move" files rather than copy them -- if the user wants the file deleted from the source machine, they should manually delete it after the transfer is complete.

But Karpik's point is that Leopard should not delete the source data until it has verified that the transfer was successfully completed.

"Windows behaves differently in that it never deletes the source unless everything has been completely copied to the destination. This is just sane, to-be-expected behaviour," he wrote in an e-mail in response to asking for clarification on a couple of his findings.

The problem may not just be isolated to Leopard however. Some commenters on Karpik's blog said this issue has existed since Panther (Mac OS X 10.3).

ZDNet Australia's sister site CNet News has contacted Apple to ask if it had identified this as a bug or problem, however Apple is yet to respond.

Advertisement

Talkback 5 comments

    Mountains over Molehills Anonymous -- 07/11/07

    Isure does seem like there's a lot of piling on going on with Apple's new Leopard. I just wonder if some of this isn't of Microsoft's orchestrating, considering the pounding their latest OS, Vista has taken. Something to consider, eh?

    Mountains over Molehills Anonymous -- 07/11/07 (in reply to #320089288)

    I heard it was them thar Martians, even one of 'em being a coder ... more to consider eh oh?

    The article is too kind Anonymous -- 07/11/07 (in reply to #320089288)

    You're quite wrong.

    far from being a case of "piling on", the original CNet news story above is actually *too kind*

    Gruber misses the point -- as always.

    You could copy and then delete the original file manually (after checking the copy has been done successfully, of course). But the point is that the file systen APIs *should* do this for you in the form of a "move" command.

    Unix doesn't behave how the Finder does, as you'll find if you experiment at the Mac's command line.

    This one is bad, and Mac users shouldn't be ignorantly defending the company for this blunder but should be getting hopping mad. I know I am.

    Here's a full technical explanation:

    http://rixstep.com/1/1/20071106,00.shtml

    lost a file today with leopard with a simple Save! Anonymous -- 07/11/07

    Using leopard today I opened a file on another disk on the network, made a change, and saved it. When I tried to open the file again it was completely empty!! I lost 3 weeks of work!!

    Can't believe Apple let such a bug slip through on a final version.

    uber geeks! Anonymous -- 08/11/07

    I don't think in my whole IT life I have ever moved a document on my Mac. I always copy and then get rid of the source. This has Microsoft written all over it. Mac's rock and so does leopard. I have never enjoyed an upgrade more in all my life.

Add your opinion

Latest Videos

Sponsored content

Power Centre - Content from our premier sponsors

Blogs

  • David Braue Forget the NBN, 100Mbps is already here
    Telstra and TransACT will shortly begin offering 100Mbps broadband to many customers. By moving early, the companies have not only raised the bar for Australia's broadband services, but thrown down a challenge to a government that now faces increased pressure to deliver the NBN as promised.
  • Array IT: Govt's cost-cutting bitch
    The government needs to stop looking at IT as a necessary evil or the place to remove costs when the Treasurer comes calling.
  • Array Can complaints on mobile content be cut?
    On 1 July this year the new Mobile Premium Services Code was introduced. It sounds like it's had a good impact, but is it enough?
  • More blogs »

Tags

Back to top

Featured