[Bugs] #2668 UNSP: passing path to checkout to update() causes data file to be destroyed

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Sat Mar 5 14:21:33 EST 2011


#2668: passing path to checkout to update() causes data file to be destroyed
------------------------------------------+---------------------------------
    Reporter:  sascha_silbe               |          Owner:  sascha_silbe     
        Type:  defect                     |         Status:  new              
    Priority:  Unspecified by Maintainer  |      Milestone:  0.92             
   Component:  sugar-datastore            |        Version:  Git as of bugdate
    Severity:  Critical                   |       Keywords:                   
Status_field:  Assigned                   |   Distribution:                   
   Seeta_dev:                             |  
------------------------------------------+---------------------------------
 If we call {{{datastore.get()}}} and pass the file name back into
 {{{datastore.update()}}} for the same entry with {{{transfer_ownership}}}
 set to {{{False}}}, the data file will get destroyed.
 This is because source and destination file are identical (hard links) and
 we overwrite the destination file in {{{AsyncCopy.start()}}} without
 unlinking it first.

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/2668>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list