URL Dispatcher Should Prompt on Bad URL

Bug #1370008 reported by errors.ubuntu.com bug bridge on 2014-09-16
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Bill Filler
url-dispatcher (Ubuntu)
Ted Gould

Bug Description

The Ubuntu Error Tracker has been receiving reports about a problem regarding gallery-app. This problem was most recently seen with version 13.10.0+14.10.20140908.1-0ubuntu1, the problem page at https://errors.ubuntu.com/problem/b1f16000af092461aeb85b5c7edfd3dc3f1271c8 contains more details.

<https://wiki.ubuntu.com/URLDispatcher#Unsupported_URLs>: "Whenever the URL dispatcher is called on to open an address of a protocol that it does not understand (url-dispatcher-bad-url), it should open an alert with the title “Unrecognized Address”, text of the form ‘Ubuntu can’t open addresses of type “{protocol:}”.’, and an “OK” button. To prevent denial of UI service, however, the alert should not open if it has already opened more than three times in the past minute."

Related branches

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gallery-app (Ubuntu):
status: New → Confirmed
Changed in gallery-app (Ubuntu):
importance: Undecided → High
Bill Filler (bfiller) wrote :

this appears to be a webbrowser-app issue not a gallery issue, please take a look

Changed in webbrowser-app (Ubuntu):
assignee: nobody → Olivier Tilloy (osomon)
importance: Undecided → High
Olivier Tilloy (osomon) wrote :

This is not a crash, it’s a recoverable problem. It seems to happen when trying to open market:// URLs in the browser (from pages that incorrectly assume that they are running on an android device).

I can easily reproduce the issue by opening a test page in the browser that contains this code:

    <a href="market://details?id=com.google.android.voicesearch">click me</a>

When clicking this link, I’m seeing the following error in the browser’s log:

  ** (process:14120): WARNING **: Unable to dispatch url 'market://details?id=com.google.android.voicesearch':GDBus.Error:com.canonical.URLDispatcher.BadURL: URL 'market://details?id=com.google.android.voicesearch' is not handleable by the URL Dispatcher

We could probably have a default application that registers as a handler for this type of URLs and informs the user that android applications are not compatible with Ubuntu (adding an ubuntu-ux task to get input from the design team).

Changed in gallery-app (Ubuntu):
status: Confirmed → Invalid
Changed in webbrowser-app (Ubuntu):
status: New → Confirmed
Changed in ubuntu-ux:
assignee: nobody → Matthew Paul Thomas (mpt)
status: New → Triaged
importance: Undecided → High
Stuart Langridge (sil) wrote :

In general there should probably be fallback handling in the URL dispatcher for all unknown URL schemata, I think? (Although having a dedicated handler for market: URLs may also be useful.)

Changed in ubuntu-ux:
status: Triaged → In Progress
Matthew Paul Thomas (mpt) wrote :
Changed in ubuntu-ux:
status: In Progress → Fix Committed
description: updated
Olivier Tilloy (osomon) on 2015-04-24
affects: webbrowser-app (Ubuntu) → url-dispatcher (Ubuntu)
Changed in url-dispatcher (Ubuntu):
assignee: Olivier Tilloy (osomon) → nobody
Ted Gould (ted) on 2015-06-19
summary: - url-dispatcher-bad-url
+ URL Dispatcher Should Prompt on Bad URL
Bill Filler (bfiller) wrote :
Changed in canonical-devices-system-image:
importance: Undecided → High
no longer affects: gallery-app (Ubuntu)
Changed in canonical-devices-system-image:
milestone: none → backlog
Pat McGowan (pat-mcgowan) wrote :

Can we find someone to work on this?

Changed in canonical-devices-system-image:
assignee: nobody → Bill Filler (bfiller)
status: New → Confirmed
Bill Filler (bfiller) on 2015-11-10
Changed in canonical-devices-system-image:
importance: High → Medium
Changed in url-dispatcher (Ubuntu):
assignee: nobody → Ted Gould (ted)
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package url-dispatcher - 0.1+17.04.20161107-0ubuntu1

url-dispatcher (0.1+17.04.20161107-0ubuntu1) zesty; urgency=medium

  [ Florian Boucault ]
  * Crossbuilding Fixes

  [ Larry Price ]
  * App ID should allow package names with dots. (LP: #1591342) (LP: #1606498)

  [ Ted Gould ]
  * Check versions of appid:// urls to reduce the number of invalid appids
    we send to UAL (LP: #1352656)
  * Scope testing for the scope:// URL and overlays that should be over
    the dash
  * Protect the dash from getting NULL urls (LP: #1476257)
  * Make sure URL Overlays are shutdown on exit
  * Remove the wildcard that is confusing the update script (LP: #1461496)
  * Not using a message that isn't set properly (LP: #1608009)
  * Fixing tests to adjust for UAL changes
  * Add a small GUI helper tool for testing
  * Show error dialog over apps that use Bad URLs (LP: #1370008)

 -- Ted Gould <email address hidden> Mon, 07 Nov 2016 16:33:15 +0000

Changed in url-dispatcher (Ubuntu):
status: Confirmed → Fix Released
no longer affects: ubuntu-ux
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers