Opened 10 years ago

Closed 10 years ago

## #7031 closed defect (fixed)

### 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.

### comment:1 follow-up:  2 Changed 10 years ago by Radek Bartoň

Resolution: → fixed new → closed

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.

### comment:2 in reply to:  1 Changed 10 years ago by Robert Rossmair

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.

### comment:3 Changed 4 years ago by Ryan J Ollos

In 16022:

1.0.0dev: Remove duplicate path option

Refs #7031, #9609.

### Modify Ticket

Change Properties