Video and Music scopes should provide non-file:/// based URIs

Bug #1340952 reported by Laszlo Molnar
44
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Unity Media Scanner Scope
Fix Released
High
Paweł Stołowski
mediaplayer-app
Fix Released
High
Ted Gould
unity-scopes-shell
Invalid
High
Unassigned
url-dispatcher (Ubuntu)
Fix Released
High
Ted Gould

Bug Description

There are some mp4 videos found/indexed by mediascanner-service-2.0 from ~/Pictures. The thumbnails of those are shown in the Video scope but can not be played. If the video is moved over to ~/Videos, the videos are played just fine.
mako utopic r119

Related branches

Revision history for this message
Jim Hodapp (jhodapp) wrote :

The limiting factor here is the app_armor profile. This is set up to be this restrictive on purpose. Subscribing jdstrand to comment on whether this should truly be a bug or a won't fix.

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

What are the apparmor denials? mediascanner-2.0 has quite wide access to the users home. Are the files owned by root or the user? (thye should be owned by the user).

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

The same goes for media-hub-server.

Changed in mediaplayer-app:
status: New → Incomplete
Revision history for this message
Bill Filler (bfiller) wrote :

It looks like the problem is URLDispatcher is failing trying to launch the URL from the dash when the file lives in ~/Pictures:

** (process:2555): WARNING **: Unable to dispatch url 'file:///home/phablet/Pictures/IMG_2088.MOV':GDBus.Error:com.canonical.URLDispatcher.BadURL: URL 'file:///home/phablet/Pictures/IMG_2088.MOV' is not handleable by the URL Dispatcher

There are no denials in syslog. When moving the movie to ~/Videos, it's launched correctly by url dispatcher.

Changed in mediaplayer-app:
status: Incomplete → New
Revision history for this message
Ted Gould (ted) wrote :

The URL dispatcher current has two file:/// based URLs that are for backwards compatibility with the URLs that came from the Unity 7 scopes. Those two are for ${HOME}/Music and ${HOME}/Videos which are routed to their appropriate players.

The long term solution is to kill those URLs for usage in the video and music scopes as they don't really do what we want. Researching to see if that's reasonable in the RTM timeframe.

Ted Gould (ted)
summary: - media player doe not play videos indexed from outside ~/Videos
+ Video and Music scopes should provide non-file:/// based URIs
tags: added: rtm14 scopes-dev
Changed in url-dispatcher (Ubuntu):
status: New → Confirmed
importance: Undecided → High
Changed in unity-scopes-shell:
status: New → Confirmed
importance: Undecided → High
Changed in unity-scope-mediascanner:
status: New → Confirmed
importance: Undecided → High
tags: added: scope-dev
removed: scopes-dev
Ted Gould (ted)
Changed in url-dispatcher (Ubuntu):
assignee: nobody → Ted Gould (ted)
Ted Gould (ted)
Changed in url-dispatcher (Ubuntu):
status: Confirmed → In Progress
Thomas Strehl (strehl-t)
Changed in unity-scope-mediascanner:
assignee: nobody → Pawel Stolowski (stolowski)
tags: added: touch-2014-08-28
Thomas Strehl (strehl-t)
tags: added: touch-2014-09-11
removed: touch-2014-08-28
Bill Filler (bfiller)
Changed in mediaplayer-app:
status: New → In Progress
importance: Undecided → High
assignee: nobody → Ted Gould (ted)
Revision history for this message
Andrew Hayzen (ahayzen) wrote :

Just as an FYI the music-app supports the protocol music:///path/to/file which would resolve this issue for the music scope.

tags: added: lt-age-20140911 lt-blocker lt-category-visible lt-prio-high
Bill Filler (bfiller)
tags: added: touch-2014-09-25
removed: touch-2014-09-11
Revision history for this message
Bill Filler (bfiller) wrote :

don't we need a photo:// url for the "My Photos" scope as well?

Pete Woods (pete-woods)
Changed in unity-scopes-shell:
status: Confirmed → Invalid
Bill Filler (bfiller)
Changed in mediaplayer-app:
status: In Progress → Fix Released
Revision history for this message
Sergio Schvezov (sergiusens) wrote :

This affects video playback from sdcards (non standard we are "use to" paths on devices).

Revision history for this message
Launchpad Janitor (janitor) wrote :

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

---------------
url-dispatcher (0.1+14.10.20140925-0ubuntu1) utopic; urgency=low

  [ Ted Gould ]
  * Drop file based URLs for Music and Video (LP: #1340952)
  * Update tests to work with new UAL requirements (LP: #1370735)
 -- Ubuntu daily release <email address hidden> Thu, 25 Sep 2014 13:29:40 +0000

Changed in url-dispatcher (Ubuntu):
status: In Progress → Fix Released
Changed in unity-scope-mediascanner:
status: Confirmed → Fix Released
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.