Actions
Defect #6090
closedMost binary files become corrupted when downloading from CVS repository browser when Redmine is running on a Windows server
Defect #6090:
Most binary files become corrupted when downloading from CVS repository browser when Redmine is running on a Windows server
Resolution:
Fixed
Affected version:
Description
Most binary files become corrupted when downloading from CVS repository browser when Redmine is running on a Windows server. The corruption is 100% repeatable.
The patch is a one character change at source:trunk/lib/redmine/scm/adapters/abstract_adapter.rb#L191.
On Windows, without this change the pipe is opened in text mode and any 0x1A bytes are treated as EOF and subsequent bytes already in the pipe are discarded.
Note: "r+b" is equivalent to "r+" on non-Windows platforms, so this patch should be harmless for all platforms.
Files
Actions