#8674 BLOC 8.2.0 (: 8.2-764, Software Update erased complete /home/olpc/Activities directory

Zarro Boogs per Child bugtracker at laptop.org
Sun Sep 28 14:23:39 EDT 2008


#8674: 8.2-764, Software Update erased complete /home/olpc/Activities directory
--------------------------+-------------------------------------------------
   Reporter:  tvoverbeek  |       Owner:  cscott              
       Type:  defect      |      Status:  new                 
   Priority:  blocker     |   Milestone:  8.2.0 (was Update.2)
  Component:  sugar       |     Version:  olpc-3              
 Resolution:              |    Keywords:  blocks:8.2.0 r+     
Next_action:  review      |    Verified:  0                   
  Blockedby:              |    Blocking:                      
--------------------------+-------------------------------------------------

Comment(by cscott):

 |Test Case|
 (a bit involved)
 Create a corrupt bundle, which python's ZipFile will still open.
 Truncating the file is not good enough: that will remove the zip's index
 and ZipFile will bail.  It has to be a problem which ZipFile won't catch,
 but causes 'unzip' to return a non-zero status code.  The best way is to
 open the bundle in a hex editor, page down a bit, and increment a single
 random byte by one.  Put this bundle in a place where the updater will
 find it.

 I've done these steps to create a Pippy-99.xo.  Add the activity group
 {{{
 http://dev.laptop.org/~cscott/bundles/pippy-test.html
 }}}
 to the software updater.

 Attempt to install this bundle with the bundle.  Previously, this would
 result in deletion of ~/Activities.   Now, only the corrupted Pippy bundle
 will be cleaned up.

-- 
Ticket URL: <http://dev.laptop.org/ticket/8674#comment:13>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system


More information about the Bugs mailing list