Redmine: Issueshttps://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292008-12-02T13:50:11ZRedmine
Redmine Redmine - Defect #2264 (Closed): md5 incorrect on Windowshttps://www.redmine.org/issues/22642008-12-02T13:50:11ZYaroslav Matsera
<p>md5 calculated incorrect for files, that contains "\r\n" on Windows platform.<br />line:<br /> self.digest = Digest::MD5.hexdigest(File.read(diskfile))<br />replaced "\r\n" -> "\n" and than calculated checksum</p>
<p>for file in attachment correct md5 is f2789658fd0737100f4dd1fac58c08e9 but redmine calculate it as 37c4b87edffc5d198ff5a185cee7ee09</p>
<p>ruby script/about:<br />About your application's environment<br />Ruby version 1.8.6 (i386-mswin32)<br />RubyGems version 1.3.1<br />Rails version 2.0.2<br />Active Record version 2.0.2<br />Action Pack version 2.0.2<br />Active Resource version 2.0.2<br />Action Mailer version 2.0.2<br />Active Support version 2.0.2<br />Edge Rails revision rel_2-0-2<br />Application root C:/Program Files/Ruby/redmine<br />Environment production<br />Database adapter postgresql (8.3.4 win i386)</p>