Open Bug 253311 Opened 20 years ago Updated 2 years ago

Allow Mailto:s longer than > 2k on newer versions of windows

Categories

(Firefox :: File Handling, enhancement)

x86
Windows XP
enhancement

Tracking

()

People

(Reporter: efk-mbug, Unassigned)

References

Details

User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7) Gecko/20040628 Firefox/0.9.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040707 Firefox/0.9.2

Here are two mailto: links, the first one works, the second does not:
(please note, I could NOT reproduce on Os X)
<a href="mailto:a@b.com?subject=1234567890&bcc=
a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdef
gh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefg
h.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh
.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.
com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.c
om,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.co
m,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com
,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,
a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a
12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a1
2345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12
345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a123
45@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a1234
5@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345
@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,">Works</a>
<br />
<a href="mailto:a@b.com?subject=1234567890&bcc=
a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdef
gh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefg
h.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh
.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.
com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.c
om,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.co
m,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com
,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,
a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a
12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a1
2345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12
345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a123
45@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a1234
5@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345
@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a12345@abcdefgh.com,a@b.c">Broken</a>

Reproducible: Always
Steps to Reproduce:
1. Click on the first link "works"
2. Everything is fine (if a bit slow while it parses out the bcc's
3. Close compose window, and come back to the mailtos
4. Click on the second link "broken"
5. Nothing happens!

Actual Results:  
Nothing!

Expected Results:  
A compose window should have come up
reproduced from Firefox 1.0/WinXP to other mail client.

Higher limit depends on environment.
One in Japanese bugzilla says 2038byte. and My environment is less than
that(about 2000byte).
Client application path length seems to affect limit.
Status: UNCONFIRMED → NEW
Component: Message Compose Window → General
Ever confirmed: true
Product: Thunderbird → Firefox
Version: unspecified → 1.0 Branch
mark to WONTFIX.

See bug 161357.
And see here.
http://lxr.mozilla.org/mozilla/source/uriloader/exthandler/win/nsOSHelperAppService.cpp#213
213     // Some versions of windows (Win2k before SP3, Win XP before SP1)
214     // crash in ShellExecute on long URLs (bug 161357).
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → WONTFIX
Whiteboard: DUPME
This doesn't necessarily have to be WONTFIX on account of bug 161357, though
it's not unreasonable given the costs of windows-version-specific code and
testing if we used different length limits on different versions. Note that you
couldn't just check for the OS's major release level, this crash was fixed in
service packs.

We'd also have to test the longer URLs against popular windows mail clients
(Outlook and Outlook Express primarily) to make sure Firefox isn't used as a
vector to exploit people using MUA's other than Thunderbird.

With Microsoft pushing everyone to get at least WinXP SP2 that wouldn't be an
unreasonable floor should someone want to let bigger URLs through.

Reopening as an enhancement request, but if we think no one is going to step up
we can close it WONTFIX again.
Severity: normal → enhancement
Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---
Summary: Mailto:s longer then > 2040 chars do NOT get handled correctly → Allow Mailto:s longer than > 2k on newer versions of windows
Whiteboard: DUPME
Version: 1.0 Branch → Trunk
dveditz, we should be using mapi or at least dde, so the commandline length 
limit should be totally irrelevant
Core:File Handling's my best guess at an owner for uriloader - certainly better than here.
Assignee: mscott → file-handling
Status: REOPENED → NEW
Component: General → File Handling
Product: Firefox → Core
QA Contact: ian
What actions need to occur to get this directed to someone who can take action on it?

(In reply to comment #5)
> Core:File Handling's my best guess at an owner for uriloader - certainly better
> than here.
> 

Assignee: file-handling → nobody
QA Contact: ian → file-handling
Product: Core → Firefox
Version: Trunk → unspecified
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.