Ticket #7031 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Download file name problems

Reported by: rrossmair Assigned to: Blackhex
Priority: normal Component: DownloadsPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.12

Description

Trac 0.12dev-r9557:

My download had a space in its filename, like "foo bar.7z". When I clicked on the link, the open dialog offered to open a file "foo". And, saving it, indeed there was a file "foo" created (no extension). Note that the entry on the Downloads page, in contrast, was showing the full file name "foo bar.7z".

But there is another problem: I removed the download, renamed the file to "foo-bar.7z" (no spaces anymore), and uploaded it again. This, to my surprise, did no good, the open dialog still offered to open "foo".

To verify my suspicion, I removed the download once more and uploaded a completely different file, "differentfile.7z". And again, an attempt to download this file resulted in a dialog offering to "open foo".

Seems there remains some debris in the database after removing a download.

Attachments

Change History

(follow-up: ↓ 2 ) 04/29/10 11:49:36 changed by Blackhex

  • status changed from new to closed.
  • resolution set to fixed.

Changeset r7897 should fix the first issue. It also contains some code unification with ScreenshotsPlugin's code so that's why it is so big. The other issue has something to do with browser's cache and not Trac DB as files are requested with same resource URL and thus I can't do anyting about it IIRC.

(in reply to: ↑ 1 ) 05/05/10 02:38:37 changed by rrossmair

Replying to Blackhex:

Changeset r7897 should fix the first issue.

...

The other issue has something to do with browser's cache and not Trac DB as files are requested with same resource URL and thus I can't do anyting about it IIRC.

Anyway, it seems to work flawlessy for me now. Thanks.


Add/Change #7031 (Download file name problems)




Change Properties
Action