Bug 1669734

Summary: New bugzilla ask the browser to open all text attachments in external editor
Product: [Community] Bugzilla Reporter: Zbigniew Jędrzejewski-Szmek <zbyszek>
Component: ExtensionsAssignee: PnT DevOps Devs <hss-ied-bugs>
Extensions sub component: SubComponents QA Contact: tools-bugs <tools-bugs>
Status: CLOSED DUPLICATE Docs Contact:
Severity: unspecified    
Priority: unspecified CC: agk
Version: 5.0Keywords: Reopened
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-03-14 03:47:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
plain text attachment none

Description Zbigniew Jędrzejewski-Szmek 2019-01-26 14:37:48 UTC
Description of problem:
Right now, when I click on any text attachment in a bug, I get asked by firefox for an external editor to open the file. I believe this is caused by bugzilla setting Content-disposition: attachment.

$ curl -I https://bugzilla.redhat.com/attachment.cgi?id=1519289
HTTP/1.1 200 OK
Date: Sat, 26 Jan 2019 14:32:45 GMT
Server: Apache
X-xss-protection: 1; mode=block
X-frame-options: SAMEORIGIN
Content-disposition: attachment; filename="bug-1661945-boot_with_udev_debug.txt"
X-content-type-options: nosniff
Content-length: 1458790
Content-Type: text/plain; name="bug-1661945-boot_with_udev_debug.txt"; charset=
Set-Cookie: Bugzilla_login_request_cookie=N6Da3P7XS7; domain=bugzilla.redhat.com; path=/; HttpOnly
Connection: close

This is annoying when working for example with abrt bugs, which have ~10 text attachments, and I really don't want to jump between the browser and an external editor all the time.

Comment 1 Zbigniew Jędrzejewski-Szmek 2019-01-26 14:38:52 UTC
Created attachment 1523722 [details]
plain text attachment

This is is a plain text attachment, I would expect it to be displayed inline.

Comment 2 Alasdair Kergon 2019-01-26 18:33:18 UTC
The feature was not working after the recent upgrade and we had to disable it.  We think that we'll be able to reenable it after the next release.

*** This bug has been marked as a duplicate of bug 1657579 ***

Comment 3 Zbigniew Jędrzejewski-Szmek 2019-02-13 07:17:12 UTC
This is still an issue. Possibly, it's not a duplicate of #1657579. Just click on the attachment above, it is still opened in an editor, and curl -I shows "Content-disposition: attachment; filename="file_1669734.txt"".

Comment 4 Jeff Fearn 🐞 2019-03-14 03:47:37 UTC

*** This bug has been marked as a duplicate of bug 1658655 ***