Issue 117163 - Faulty handling of attachment on Save As (right mouse click)
Summary: Faulty handling of attachment on Save As (right mouse click)
Status: CLOSED IRREPRODUCIBLE
Alias: None
Product: Infrastructure
Classification: Infrastructure
Component: Bugzilla (show other issues)
Version: current
Hardware: All All
: P3 Normal (vote)
Target Milestone: ---
Assignee: bernd.eilers
QA Contact: issues@ooo
URL: http://openoffice.org/bugzilla/show_b...
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-01 21:19 UTC by eric.savary
Modified: 2017-05-20 09:42 UTC (History)
7 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Dummy Text test attachment (15.88 KB, application/vnd.oasis.opendocument.text)
2011-04-14 06:10 UTC, bernd.eilers
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description eric.savary 2011-03-01 21:19:16 UTC
Problems affecting Firefox (3.6.13) and Netbeans (6.9.1) and IE tp some extends
- load an issue with attachments (such as http://openoffice.org/bugzilla/show_bug.cgi?id=117109)
- right click on one of the attachments and execute "Save As"
-> The Save As dialog won't get the (correct) file name to download

On Firefox: a file name "attachment.cgi" is proposed
On Netbeans: no file name is set.
On IE (7.0) binary attachments are renamed to *.zip

No problems found using Safari or Chrome.
Comment 1 Oliver Brinzing 2011-03-09 08:32:04 UTC
confirming problem
Comment 2 bernd.eilers 2011-03-10 19:05:45 UTC
Bugzilla correctly sets a content-dispsition header when the contents of attachments is downloaded.

Most Browsers seem to at least regonize that when you just click on the link.
Why they do not use that information in their Save-As dialog is beyond my knowledge.

This is not something we can fix by customizing bugzilla.
Here the Browser implementations do have bugs.

Feel free to file issue to their buftracking systems.

Setting issue to resolved/invalid
Comment 3 bernd.eilers 2011-03-15 17:59:30 UTC
reopening.

We might have a chance to workaround the browser´s problems by providing a URL that ends in the filename in the OpenOffice.org bugzilla theme plus an apache rewrite rule that redirects this URL to the bugzilla/attachment.cgi page.
Comment 4 bernd.eilers 2011-03-16 14:42:20 UTC
assigned to me
Comment 5 bernd.eilers 2011-03-17 13:58:49 UTC
adding the apache rewrite rule to OOo kenai is tracked in
http://kenai.com/jira/browse/KENAI-2755
Comment 6 Frédéric Buclin 2011-03-22 16:34:26 UTC
(In reply to comment #3)
> We might have a chance to workaround the browser´s problems by providing a URL
> that ends in the filename in the OpenOffice.org bugzilla theme plus an apache
> rewrite rule that redirects this URL to the bugzilla/attachment.cgi page.

This is not a problem with the browsers. Other installations running Bugzilla 3.2 work correctly. Only OpenOffice's Bugzilla is broken.
Comment 7 bernd.eilers 2011-03-22 21:31:35 UTC
(In reply to comment #6)
> (In reply to comment #3)
> > We might have a chance to workaround the browser´s problems by providing a URL
> > that ends in the filename in the OpenOffice.org bugzilla theme plus an apache
> > rewrite rule that redirects this URL to the bugzilla/attachment.cgi page.
> 
> This is not a problem with the browsers. Other installations running Bugzilla
> 3.2 work correctly. Only OpenOffice's Bugzilla is broken.

Ok thanks for the hint.
Will have to dig deeper into what is actually happening.
Things that might have a influence here are that there is as far as i know some redirection for these urls on the kenai infrastructure (this would mean netbeans.org has the same problem) and on the other hand response times on OOo are sometimes not good too.
Comment 8 stx123 2011-03-23 16:26:25 UTC
Reset QA Contact to new default
Comment 9 stx123 2011-04-07 10:48:33 UTC
You may want to have a look at BZ settings. There seems to be options to customize the behavior.
Comment 10 bernd.eilers 2011-04-07 11:30:25 UTC
bei->st: there are adminstrative settings for some aspects of attachment handling in bugzilla yes but none of them is relavant for this issue.
Comment 11 bernd.eilers 2011-04-14 05:00:16 UTC
The history of the firefox "save link as" implementation related to this can be found here:
https://bugzilla.mozilla.org/show_bug.cgi?id=299372

From reading the long history of that issue and doing some experiments I conclude the following:

Firefox developers did some compromise between displaying the save_as dialog fast and displaying the right filename in it. The OpenOffice.org website response is currently to slow for that compromise to do the right think. Fortunately though this is somewhat configurable:

In the browser URL bar enter "about:config" and confirm that you really want to do changes to the configuration and know what you are doing.
Now find the item "browser.download.saveLinkAsFilenameTimeout". The default value there seems to be 1000 Increase that value to 10000 or more.
Now firefox should display the right filename in the save as dialog.
Comment 12 bernd.eilers 2011-04-14 06:10:15 UTC
Created attachment 76376 [details]
Dummy Text test attachment
Comment 13 bernd.eilers 2011-04-14 06:31:37 UTC
A follow up issue for Firefox has been created:

Issue: https://bugzilla.mozilla.org/show_bug.cgi?id=649925

Title: default value for browser.download.saveLinkAsFilenameTimeout set to a too low value