Edgewall Software

Opened 19 years ago

Last modified 19 years ago

#1043 closed defect

Get error by changeset 1108 when viewing attachment. — at Version 1

Reported by: anonymous Owned by: Christopher Lenz
Priority: normal Milestone: 0.9
Component: wiki system Version: devel
Severity: major Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Christopher Lenz)

I've got error by exception when viewing attachment on wiki page. It is caused by modification of File.py in changeset 1108. I fixed like this:

Index: File.py
===================================================================
--- File.py	(revision 1120)
+++ File.py	(working copy)
@@ -145,7 +145,7 @@
             
             stat = os.fstat(fd.fileno())
             self.last_modified = time.gmtime(stat[8])
-            self.req.check_modified(self.last_modified)
+            self.req.check_modified(stat[8])
 
             self.length = stat[6]
             self.read_func = lambda x, f=fd: f.read(x)

Change History (1)

comment:1 by Christopher Lenz, 19 years ago

Description: modified (diff)
Milestone: 0.9
Owner: changed from Jonas Borgström to Christopher Lenz
Status: newassigned
Note: See TracTickets for help on using tickets.