Closed Bug 247968 Opened 21 years ago Closed 21 years ago

download manager doesn't reflect file rename on save

Categories

(Camino Graveyard :: Downloading, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Camino0.9

People

(Reporter: asa, Assigned: jaas)

References

Details

Attachments

(1 file)

When I download a file by doing a Download Link Target... and in the Save dialog I change the name of the file, say from Camino.dmg.gz to Camino-branch.dmg.gz, the downloaded file appears with the correct name on my desktop but the Download manager reports the original file name from the server. This was tested with several downloads, all .dmg.gz and all from http servers in the Mozilla mirrors round-robbin. The Camino build was 2004061708 from the 0.8 branch.
Status: NEW → ASSIGNED
Target Milestone: --- → Camino0.9
I've investigated a bit further and this also impacts ftp downloads and is not limited to the dmg.gz filetype. It seems to be a general problem impacting all downloads. Let me know if there's anything more I should test.
Taking. I have a fix, patch coming up soon. We're getting the display name by taking the last component of the source path. Just change it to destination path.
Assignee: pinkerton → josha
Status: ASSIGNED → NEW
Attached patch one liner v1.0Splinter Review
Attachment #151577 - Flags: review?(shspamsink)
r=shspamsink@comcast.net (Steve Hartwell) This patch seems correct to me. The display name should indeed be the last path component of the destination file name. Did some cursory checks for possible nilness, found nothing likely.
Attachment #151577 - Flags: superreview?(pinkerton)
Comment on attachment 151577 [details] [diff] [review] one liner v1.0 sr=pink
Attachment #151577 - Flags: superreview?(pinkerton) → superreview+
landed on trunk.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Blocks: 249077
landed on branch
Attachment #151577 - Flags: review?(shspamsink)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: