Open Bug 445313 Opened 16 years ago Updated 2 years ago

thunderbird remote: parse error on parentheses

Categories

(Toolkit :: Startup and Profile System, defect)

x86
Linux
defect

Tracking

()

People

(Reporter: xlator, Unassigned)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.8.1.15) Gecko/20080623 Firefox/2.0.0.15
Build Identifier: Thunderbird version 2.0.0.14 (20080421)

thunderbird remote gives parse error if the mailto URL contains round parentheses.

Reproducible: Always

Steps to Reproduce:
Execute:
~/usr/thunderbird/thunderbird -a thunderbird -remote "mailto(?body=aaa(bbb)ccc)"

Actual Results:  
Error: Failed to send command: 500 command not parseable


Expected Results:  
SHould bring up mail composition window.

Doesn't happen with [] or {} parentheses, or if ( is used only,
e.g. ~/usr/thunderbird/thunderbird -a thunderbird -remote "mailto(?body=aaa(bbbccc)"
Yep, that's because http://hg.mozilla.org/mozilla-central/index.cgi/annotate/tip/toolkit/components/remote/nsGTKRemoteService.cpp#l370 should be using RFindChar rather than FindChar.

Meantime, at least on the trunk, you can work around it by escaping the parens in your URI-to-be as %28 and %29 (no idea whether that works right in Tb2 or not).
Status: UNCONFIRMED → NEW
Component: General → XRE Startup
Ever confirmed: true
Product: Thunderbird → Toolkit
QA Contact: general → xre.startup
Version: unspecified → Trunk
Thanks for the hint, the URL encoding works on tb2:

~/usr/thunderbird/thunderbird -a thunderbird -remote "mailto(?body=aaa%28bbb%29ccc)"

(actually I've made another workaround by replacing the "()" chars with "[]").
Component: XRE Startup → Startup and Profile System
QA Contact: xre.startup → startup
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.