Modify

Opened 14 years ago

Closed 14 years ago

Last modified 7 years ago

#7031 closed defect (fixed)

Download file name problems

Reported by: Robert Rossmair Owned by: Radek Bartoň
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 (3)

comment:1 Changed 14 years ago by Radek Bartoň

Resolution: fixed
Status: newclosed

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 14 years ago by Robert Rossmair

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.

comment:3 Changed 7 years ago by Ryan J Ollos

In 16022:

1.0.0dev: Remove duplicate path option

Refs #7031, #9609.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Radek Bartoň.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.