Media-Hub can't play a file (*.mp3) downloaded with DownloadManager 0.1

Bug #1393318 reported by HAFIANE Mohamed
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
media-hub (Ubuntu)
New
Undecided
Unassigned

Bug Description

When download *.mp3 file with DownloadManager 0.1, can't play it with MediaPlayer.
The error in media-hub is: Client denied access to open_uri()

the code:

                Rectangle {
                    width: parent.width
                    height: units.gu(20)
                    TextField {
                        id: text
                        text: "http://www.everyayah.com/data/Ghamadi_40kbps/001001.mp3"
                        height: 50
                        anchors {
                            left: parent.left
                            right: button.left
                            rightMargin: units.gu(2)
                        }
                    }
                    Button {
                        id: button
                        text: "Download"
                        height: 50
                        anchors.right: parent.right
                        onClicked: {
                            single.download(text.text);
                        }
                    }
                    ProgressBar {
                        minimumValue: 0
                        maximumValue: 100
                        value: single.progress
                        anchors {
                            left: parent.left
                            right: parent.right
                            bottom: parent.bottom
                        }
                        SingleDownload {
                            id: single
                        }
                    }
                }

              MediaPlayer{
                   id: playSound
               }

                Button {
                    text:"Play file Downloaded"
                    onClicked: {
                        playSound.source= "/home/phablet/.local/share/ubuntu-download-manager/com.ubuntu.developer.myApp/Downloads/001001.mp3"

                        playSound.play()

                    }
                }

When click on the Button ("Play file Downloaded") le file is not playing

summary: - Media-Hub can't play a file (*.mp3) downlowded with DownloadManager 0.1
+ Media-Hub can't play a file (*.mp3) downloaded with DownloadManager 0.1
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

Are there any apparmor denials at the time of the failure? Please paste the output of this command at the time of the denial:
$ grep DEN /var/log/syslog

Changed in apparmor-easyprof-ubuntu (Ubuntu):
status: New → Incomplete
Revision history for this message
HAFIANE Mohamed (thakir-ubuntu-dz) wrote : Re: [Bug 1393318] Re: Media-Hub can't play a file (*.mp3) downloaded with DownloadManager 0.1

Hi, here is what I get

2015-03-18 14:23 UTC+01:00, Jamie Strandboge <email address hidden>:
> Are there any apparmor denials at the time of the failure? Please paste the
> output of this command at the time of the denial:
> $ grep DEN /var/log/syslog
>
> ** Changed in: apparmor-easyprof-ubuntu (Ubuntu)
> Status: New => Incomplete
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1393318
>
> Title:
> Media-Hub can't play a file (*.mp3) downloaded with DownloadManager
> 0.1
>
> Status in apparmor-easyprof-ubuntu package in Ubuntu:
> Incomplete
>
> Bug description:
> When download *.mp3 file with DownloadManager 0.1, can't play it with
> MediaPlayer.
> The error in media-hub is: Client denied access to open_uri()
>
> the code:
>
> Rectangle {
> width: parent.width
> height: units.gu(20)
> TextField {
> id: text
> text:
> "http://www.everyayah.com/data/Ghamadi_40kbps/001001.mp3"
> height: 50
> anchors {
> left: parent.left
> right: button.left
> rightMargin: units.gu(2)
> }
> }
> Button {
> id: button
> text: "Download"
> height: 50
> anchors.right: parent.right
> onClicked: {
> single.download(text.text);
> }
> }
> ProgressBar {
> minimumValue: 0
> maximumValue: 100
> value: single.progress
> anchors {
> left: parent.left
> right: parent.right
> bottom: parent.bottom
> }
> SingleDownload {
> id: single
> }
> }
> }
>
> MediaPlayer{
> id: playSound
> }
>
> Button {
> text:"Play file Downloaded"
> onClicked: {
> playSound.source=
> "/home/phablet/.local/share/ubuntu-download-manager/com.ubuntu.developer.myApp/Downloads/001001.mp3"
>
> playSound.play()
>
>
> }
> }
>
> When click on the Button ("Play file Downloaded") le file is not
> playing
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/apparmor-easyprof-ubuntu/+bug/1393318/+subscriptions
>

Changed in apparmor-easyprof-ubuntu (Ubuntu):
status: Incomplete → New
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

The security policy is correctly denying access to the global mediascanner database so I'm going to reassign this to media-hub for now.

affects: apparmor-easyprof-ubuntu (Ubuntu) → media-hub (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.