[Bugs] #3709 Jukebox UNSP: Jukebox should safely ignore when referenced media is not found

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Mon Jun 18 11:38:57 EDT 2012


#3709: Jukebox should safely ignore when referenced media is not found
------------------------------------------+---------------------------------
    Reporter:  manuq                      |          Owner:  kushal     
        Type:  defect                     |         Status:  new        
    Priority:  Unspecified by Maintainer  |      Milestone:  0.96       
   Component:  Jukebox                    |        Version:  Unspecified
    Severity:  Unspecified                |       Keywords:  12.1.0     
Distribution:  Unspecified                |   Status_field:  Unconfirmed
------------------------------------------+---------------------------------
Description changed by manuq:

Old description:

> And may also tell the user: "N medias were not found".
>
> TestCase:
>
>  1. start Jukebox from scratch
>  2. add media from a external device, like a pendrive
>  3. stop the activity
>  4. remove the external device, restart the activity from the Journal
> entry
>
> Currently, an error is shown in the logs for the second time the activity
> is started.  Log attached.

New description:

 And may also tell the user: "N medias were not found".

 TestCase:

  1. start Jukebox from scratch
  2. add media from a external device, like a pendrive
  3. stop the activity
  4. remove the external device, restart the activity from the Journal
 entry

 Currently, a OSError raised, can be seen in the logs for the second time
 the activity is started.  Complete log attached.

 {{{
 Traceback (most recent call last):
 36        File
 "/home/olpc/Activities/Jukebox.activity/jukeboxactivity.py", line 491, in
 _start
 37          jobject = datastore.get(url[len("journal://"):])
 38        File "/usr/lib/python2.7/site-
 packages/sugar/datastore/datastore.py", line 295, in get
 39          return RawObject(object_id)
 40        File "/usr/lib/python2.7/site-
 packages/sugar/datastore/datastore.py", line 228, in __init__
 41          stat = os.stat(file_path)
 42      OSError: [Errno 2] No such file or directory:
 '/run/media/olpc/9DF7-AE82/test-files/Hydrate-Kenny_Beltrey.ogg'
 }}}

--

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/3709#comment:1>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list