thunderbird remote: parse error on parentheses

NEW
Unassigned

Status

()

Toolkit
Startup and Profile System
10 years ago
10 years ago

People

(Reporter: xzoli, Unassigned)

Tracking

Trunk
x86
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

10 years ago
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
(Reporter)

Comment 2

10 years ago
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 "[]").

Updated

10 years ago
Component: XRE Startup → Startup and Profile System
QA Contact: xre.startup → startup
You need to log in before you can comment on or make changes to this bug.