This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 176305 - Inline attachments forbidden
Summary: Inline attachments forbidden
Status: RESOLVED DUPLICATE of bug 176417
Alias: None
Product: www
Classification: Unclassified
Component: Admin (show other bugs)
Version: 6.x
Hardware: PC Linux
: P1 normal with 2 votes (vote)
Assignee: leawang
URL: http://wiki.netbeans.org/BrowserTools...
Keywords:
: 176238 (view as bug list)
Depends on: 176417
Blocks:
  Show dependency tree
 
Reported: 2009-11-09 16:03 UTC by Jesse Glick
Modified: 2009-11-22 10:33 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2009-11-09 16:03:36 UTC
Whereas in Issuezilla most attachments could be displayed inline in the browser, Bugzilla now sends

  Content-disposition: attachment; filename="stacktrace.txt"
  Content-length: 6430
  Content-Type: text/plain; name="stacktrace.txt"; charset=UTF-8

which forces the file to be downloaded; there is no way to view it directly in the browser. (The Greasemonkey script to display attachments inline cannot be made to work either.) This is a major regression in day-to-day workflow; for example, to view a screenshot of a bug, you need to click the link, figure out where your browser saved the file, then manually launch an image viewer program on that path.

Was this change of behavior intentional, say for security reasons? I see in BZ sources

    my $disposition = Bugzilla->params->{'allow_attachment_display'} ? 'inline' : 'attachment';

    print $cgi->header(-type=>"$contenttype; name=\"$filename\"",
                       -content_disposition=> "$disposition; filename=\"$filename\"",
                       -content_length => $attachment->datasize);

implying that it is a global parameter, I guess edited here:

https://netbeans.org/bugzilla/editparams.cgi
Comment 1 Marian Mirilovic 2009-11-10 08:12:10 UTC
Hi Jesse, 
I enabled that parameter on Saturday, Sunday , Monday and this morning as well, but kenai team rewrote it to the default setting again and again - see bug 176417

BTW: the correct link is
https://netbeans.org/bugzilla/editparams.cgi?section=attachment
Comment 2 leawang 2009-11-11 03:27:12 UTC
*** Bug 176238 has been marked as a duplicate of this bug. ***
Comment 3 leawang 2009-11-12 20:51:08 UTC
http://kenai.com/jira/browse/KENAI-1593 was created for this.  It is slated for 20091120 sprint.
Comment 4 leawang 2009-11-16 19:13:52 UTC
Duplicate request as 176417.

*** This bug has been marked as a duplicate of bug 176417 ***
Comment 5 leawang 2009-11-22 10:33:09 UTC
Due to staging outage this past week, we won't be able to resolve this issue till 20091214 sprint.