Copying files from OS X causes errors with icon files

Bug #41931 reported by Joachim Noreiko
14
Affects Status Importance Assigned to Milestone
nautilus (Ubuntu)
New
Low
Ubuntu Desktop Bugs

Bug Description

I am copying files from my mac.
I periodically get this error message:

Error "Invalid parameters" while copying "smb://192....s/Icon%0D".

I assume this is because I set a custom icon for a file or folder in OS X, and the problem file is the hidden icon file OS X creates.

Revision history for this message
sam tygier (samtygier) wrote :

is this when copying with nautilus?

Revision history for this message
Joachim Noreiko (jnoreiko) wrote :

Yes.
I have my OS X share open in Nautilus (via SMB), and I am copying a folder from that to a mounted Windows partition (FAT32).

sam tygier (samtygier)
Changed in nautilus:
status: Needs Info → Unconfirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for your bug. What version of Ubuntu do you use? What filesystem is that? What filename is used for that "Icon%0D"?

Changed in nautilus:
assignee: nobody → desktop-bugs
status: Unconfirmed → Needs Info
Revision history for this message
Joachim Noreiko (jnoreiko) wrote :

I am using Ubuntu 5.10.
The filesystem I am trying to copy to is FAT32. The filesystem on the SMB share is OS X's filesystem.

I can confirm that the file that causes the problem is a hidden file on OS X -- trying to copy just this file reproduces the error.
In the OS X terminal, "ls -a" causes it to show as "Icon?". Autocomplete on the OS X terminal produces "Icon^M".
Copying it from the SMB share to my desktop on Ubuntu (ext3 filesystem) works, and produces a (non-hidden) file. This has the same name in the gnome terminal as on OS X, and on the desktop is called "Icon\n" (where \n is a newline character).

Revision history for this message
Sebastien Bacher (seb128) wrote :

The issue seems to be to the encoding of the file and vfat not supporting filenames with a such char. That's similar to upstream http://bugzilla.gnome.org/show_bug.cgi?id=163288 by example

Changed in nautilus:
status: Needs Info → Unconfirmed
Revision history for this message
Joachim Noreiko (jnoreiko) wrote :

Should I file this one upstream too?

I think it's a special case: asking the user what to do with each Icon file would be tedious, as there are so many of them on an OS X filesystem. Nautilus should either skip them or translate the filename in some way.

Revision history for this message
Sebastien Bacher (seb128) wrote :

you can fix it upstream if you want to, I'm not sure that's a nautilus bug though. OsX is to blame to use some weird name, the fat filesystem is to blame to not support those chars, and nautilus,gnome-vfs are to blame to workaround it

Revision history for this message
Chris Wagner (chris-wagner) wrote :

This is basically the same as bug 18562.

Revision history for this message
Duncan Lithgow (duncan-lithgow) wrote :

and is now marked as a duplicate of that bug 18562 - further comments there please.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.