send file to thunderbird with non-ASCII path

Bug #656932 reported by riu
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
nautilus-sendto (Ubuntu)
Incomplete
Low
Unassigned

Bug Description

Binary package hint: nautilus-sendto

When the filepath contain non-ASCII symbols, the file cannot be sent (the file is inaccessible).

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: nautilus-sendto 2.28.4-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.32-25.44-generic 2.6.32.21+drm33.7
Uname: Linux 2.6.32-25-generic i686
Architecture: i386
CheckboxSubmission: 8bf351e32a2c0e6ed74749d2aae2fe20
CheckboxSystem: 2954e74ba17fb0e37fc942cd1d9fab4e
Date: Fri Oct 8 10:59:46 2010
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
ProcEnviron:
 LANG=ru_RU.utf8
 SHELL=/bin/bash
SourcePackage: nautilus-sendto

Revision history for this message
riu (stanray) wrote :
Revision history for this message
dazza5000 (darran-kelinske) wrote :

Dear Riu,

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please answer these questions:

* Is this reproducible?
* If so, what specific steps should we take to recreate this bug?

This will help us to find and resolve the problem.

Sincerely,

Darran

Revision history for this message
riu (stanray) wrote :

This is reproducible on my sysytem. How to reproduce:
(Thunderbird must be default email client in order to reproduce this)
1. Create a file with non-ASCII name ( for example "новый файл" ) (or create a folder with non ASCII-name and a file with ASCII/non-ASCII name in it)
2. Right-click on it in nautilus and choos "Send to..."
3. Enter an email address in the thunderbird new email window
4. Click "close" button on the title bar of ths window and choose "save to draft" (or click "send message" button and choose "without subject")
See screenshots.

Revision history for this message
riu (stanray) wrote :
Revision history for this message
urusha (urusha) wrote :

Have the same bug on every lucid, maverick machine (many). I think it's problem with /usr/lib/nautilus-sendto/plugins/libnstevolution.so which is used for this action.
Is there anyone who created quick fix for this? (IMO, nautilus-scripts is not the graceful way to do this) I'm thinking about including some sed-like filter to /usr/bin/thunderbird

Revision history for this message
urusha (urusha) wrote :

As I see, this is not a bug of nautilus-sendto, but thunderbird (don't exactly know is it bug or feature).
Thuderbird doesn't understand percent-encoded file uris. So here is my perl-written nautilus-script which does it well (works with many, non-ascii encoded, full of spaces files). And the next step is implementing filter (which could be found in script) right in /usr/bin/thunderbird.
Toggle in attachment.

Revision history for this message
urusha (urusha) wrote :

So, here is quick fix, run this as root:

printf '#!/usr/bin/perl
system("/usr/bin/thunderbird @ARGV");
' > /usr/local/bin/thunderbird &&
chmod 755 /usr/local/bin/thunderbird &&
chown root:root /usr/local/bin/thunderbird

It just runs thunderbird through perl script (using the fact that /usr/local/bin is in the left of /usr/bin in PATH). Don't ask me why it works:).

But there is another bug: if you want send many files at the time, only one file appears in the created message. So, I write workaround. Copy thunderbird from attachment to /usr/local/bin, chmod 755 and chown root:root it.
This workaround has a little bug, which breaks file names if you enter something like "%D0" in recipient field in nautilus-sendto window. But I can't imagine a situation you'll need or want this.

Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thanks for the report, it has been some time without any response or feedback in this bug report and we are wondering if this is still an issue for you with the latest release of Ubuntu the Natty Narwhal, May you please test with that version and comment back if you're still having or not the issue? Please have a look at http://www.ubuntu.com/download to know how to install that version. Thanks in advance and sorry for the late response.

Changed in nautilus-sendto (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
riu (stanray) wrote :

This bug seems to be fixed (see Bug #757976)

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.