#7195 BLOC Never A: Corrupted multiple downloads at the same time
Zarro Boogs per Child
bugtracker at laptop.org
Wed Jun 4 22:16:24 EDT 2008
#7195: Corrupted multiple downloads at the same time
-----------------------+----------------------------------------------------
Reporter: cjb | Owner: tomeu
Type: defect | Status: new
Priority: blocker | Milestone: Never Assigned
Component: datastore | Version: Update.1
Keywords: | Verified: 0
Blocking: | Blockedby:
-----------------------+----------------------------------------------------
We found a bug while preparing content bundles for the library. Here's
the bug description:
The bug symptom is that you get two "Download started: [continue]
[cancel]" dialogs on top of each other when clicking on a PDF to
"download" it into the datastore from the sidebar of the local Library.
If you click continue on both of them, or don't click anything at all
(continue is the default) then your datastore gets a single file which has
*the contents of the PDF interleaved with itself*, creating a invalid PDF
twice as large as it should be.
So, Browse, the Journal and the datastore are willing to conspire to have
two downloads of the same file happening at the same time, and to be
appending both copies of that file's data to the same target file in the
datastore.
SJ found what we hope is the cause -- we have an "onclick" handler in the
library as well as an <a> tag, and clicking the <a> tag fires both links,
so you start downloading the file twice.
--
Ticket URL: <http://dev.laptop.org/ticket/7195>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system
More information about the Bugs
mailing list