xdg-open mangles mailto: urls to ///<email address hidden>

Bug #291847 reported by David Keogh
40
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
High
Unassigned
Xdg-utils
Invalid
Undecided
Unassigned
libgnome
Invalid
Unknown
libgnome (Ubuntu)
Triaged
Low
Ubuntu Desktop Bugs
xdg-utils (Ubuntu)
Invalid
Low
Unassigned

Bug Description

Binary package hint: xdg-utils

When you pass xdg-open an url such as mailto:<email address hidden>, when the email client is opened it displays ///<email address hidden> as the email address. xdg-email seems to suffer from the same problem.

Revision history for this message
David Keogh (davidkeogh) wrote :

Sorry,

Forgot to mention that this is in Ubuntu 8.10 with xdg-utils 1.0.2-6.

Revision history for this message
QB89Dragon (hughescih) wrote :

I'm also affected by this bug. Please fix!

Revision history for this message
Aaron Bentley (abentley) wrote :

Since "bzr send" uses xdg-email by default on *nix, it is also affected.
A workaround for evolution, thunderbird and kmail is to set "mail_client=CLIENT".

Revision history for this message
Martin Pool (mbp) wrote : Re: [Bug 291847] Re: xdg-open mangles mailto: urls

  status confirmed
  importance high
  summary "xdg-open mangles mailto: urls to ///<email address hidden>"

> When you pass xdg-open an url such as mailto:<email address hidden>, when the email client is opened it displays ///<email address hidden> as the email address. xdg-email seems to suffer from the same problem.

I've hit this too and was wondering where it came from.

--
Martin

Changed in bzr:
importance: Undecided → High
status: New → Confirmed
Jelmer Vernooij (jelmer)
Changed in bzr:
status: Confirmed → Fix Released
Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

I would imagine this bug comes from attempting to canonicalise URLs; mailto:<email address hidden> is a URI, not a URL

Revision history for this message
Robert Collins (lifeless) wrote :

Actually, bzr should be using xdg-email. I think xdg-open should either error or be more helpful when given a mailto: URI.

Changed in bzr:
status: Fix Released → Confirmed
Changed in xdg-utils:
importance: Undecided → Low
Revision history for this message
Chris Jones (cmsj) wrote :

xdg-open is a very simple shell script which appears to do nothing to modify the URL parameter before passing it to the chosen desktop handler (so gnome-open for Ubuntu). Indeed, running:

gnome-open mailto:<email address hidden>

will produce the same prefixed ///

(xdg-email also calls gnome-open)

gnome-open is even shorter than xdg-open, albeit in C. It appears to be doing the canonicalisation with calls to GIO.

It seems as though passing a mailto: URI to a GIO function that creates a GFile (e.g. g_file_new_for_commandline_arg() which gnome-open uses) "may be slightly destructive", to quote GIO's ChangeLog.
On the (admittedly somewhat arbitrary and potentially spurious) basis that something called GFile has no business dealing with things that aren't files, I've attached a naive patch to make gnome-open not feed mailto URIs through GFile.

Changed in xdg-utils:
status: New → Invalid
Revision history for this message
Chris Jones (cmsj) wrote :

(if this is not to be fixed in gnome-open, but GFile then this bug should be moved to glib2 rather than libgnome. I've invalidated the xdg-utils task because that seems like an entirely worse place to fix it than gnome-open)

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

corrected the upstream link, rejecting the xdg-utils upstream task as well, thanks.

Changed in xdg-utils:
importance: Unknown → Undecided
status: Unknown → New
status: New → Invalid
Changed in libgnome:
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Pedro Villavicencio (pedro) wrote :

same bug as 294233 , marking this as dup, did the same with the upstream one.

Changed in libgnome:
status: Unknown → Invalid
Revision history for this message
Lasse Kärkkäinen (ljkarkk2) wrote :

I am now seeing this problem with xdg-open and xdg-email, but not gnome-open (no extra slashes added). As bug #294233 discusses gnome-open, this one is not a duplicate and should be re-opened and fixed.

Running xdg-open 1.1.0 rc3 on Ubuntu 15.10 (dev).

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.