Modify

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#7031 closed defect (fixed)

Download file name problems

Reported by: rrossmair Owned by: 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 (0)

Change History (2)

comment:1 follow-up: Changed 4 years ago by Blackhex

  • Resolution set to fixed
  • Status changed from new to 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 4 years ago 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 Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.