Ticket #7106 (new defect)
Opened 4 years ago
Last modified 15 months ago
File attachment 'added' time is incorrect
| Reported by: | robert.nadler@… | Owned by: | cboos |
|---|---|---|---|
| Priority: | normal | Milestone: | next-major-0.1X |
| Component: | attachment | Version: | devel |
| Severity: | major | Keywords: | |
| Cc: | |||
| Release Notes: | |||
| API Changes: | |||
Description
Found in r6814.
The added time shown in the ticket is correct:
MTM1.log (1.6 kB) - added by admin 2 days ago.
but when you show the file, the added time is incorrect:
File MTM1.log, 1.6 kB (added by admin, 84 seconds ago)
The tool-tip timestamp is the same (and correct) on both.
Attachments
Change History
Changed 4 years ago by sid
- Attachment trac_logo.png added
comment:1 Changed 4 years ago by cboos
- Milestone set to 0.12
Yeah, it's because we're sending a 304 response in this case (trunk/trac/attachment.py@6980#L622).
Maybe we can use the same approach as for changesets here (i.e. the less than one hour ago trick, trunk/trac/versioncontrol/web_ui/changeset.py@6980#L295), so that we can at the same time show a valid information to the user and minimize the number of page reloads.
comment:2 Changed 15 months ago by thijstriemstra
- Severity changed from normal to major



sample file to see if problem with timestamps can be replicated