Modify

Opened 2 years ago

Closed 2 years ago

#9756 closed defect (invalid)

Attachments are being corrupted on upload and download

Reported by: rjollos Owned by: Blackhex
Priority: normal Component: DownloadsPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.12

Description (last modified by rjollos)

By comparing the MD5 checksums, we are seeing that the downloads are being corrupted. We are seeing them corrupted on move from the path directory to a numbered subdirectory, as well as on download from the site. There may be multiple issues at play here. More information will be provided shortly.

Attachments (0)

Change History (5)

comment:1 Changed 2 years ago by rjollos

  • Description modified (diff)

comment:2 Changed 2 years ago by Blackhex

  • Status changed from new to assigned

Thank you for reporting. What is your operating system and Python version? What was the way how you have added the files to the plugin, trac-admin or web interface? Are you referring to binary or textual files or it happens for every file you upload?

comment:3 Changed 2 years ago by rjollos

Yeah, my defect report was a bit inadequate; I had been planning to add more info last night, but here it is:

  • Server is CentOS 5, Python 2.6, Trac 0.12.2, DownloadsPlugin r11238.
  • We've seen the issue when adding files with trac-admin.
  • We've seen the issue when download zip and msi files.

I'm going to ask one of my coworkers to follow up with you in more detail. He's working the issue right now.

comment:4 Changed 2 years ago by pkline

Following up on what rjollos reported:

We are working with fairly large zip and msi files that are about 60 MB. The first corruption was on some files after adding them through the trac-admin command. The md5sums didn't match between the downloads directory and the numbered directory that the plugin creates and copies them to. Running "zip -T" to test the integrity reported the copy in the downloads directory to be ok and the one in the numbered directory to be an invalid zip file.

Yesterday I added an msi successfully, the files matched between downloads and the numbered directory. I downloaded the msi through the plugin but it wouldn't run. I checked the md5sum of the downloaded file and it didn't match what was in the numbered directory. A second attempt failed as well and showed the file size was off by 2 MB. I downloaded the same file from the numbered directory with WinFTP successfully.

comment:5 Changed 2 years ago by rjollos

  • Resolution set to invalid
  • Status changed from assigned to closed

Turns out this was due to configuration of the Apache server. There was a timeout that was causing downloads to be cutoff. No fault of DownloadsPlugin ;)

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from Blackhex. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.