AUR web interface

Tasklist

FS#19430 - mime types of text files aren't set correctly in AUR

Attached to Project: AUR web interface
Opened by Heiko Baums (cyberpatrol) - Wednesday, 12 May 2010, 04:39 GMT
Last edited by Loui Chang (louipc) - Wednesday, 12 May 2010, 16:18 GMT
Task Type Bug Report
Category Backend
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version 1.6.0
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Since a few days the mime types (of text files) don't seem to be set correctly anymore. So text files like PKGBUILDs can't be opened and read within the browser or with an external text editor anymore. It's only possible to save them to the harddisk.

This happens at least with Opera. And Opera wasn't updated in the meantime.
This task depends upon

Closed by  Loui Chang (louipc)
Wednesday, 12 May 2010, 16:18 GMT
Reason for closing:  Upstream
Additional comments about closing:  Please file a bug with Opera. Thanks.
http://www.opera.com/support/bugs/
Comment by Loui Chang (louipc) - Wednesday, 12 May 2010, 05:16 GMT
Can you be more specific about which file or packages this is occuring with?

Perhaps you accidentally changed a setting in your browser.
Did you try in other browsers before opening this bug report?
Please try to isolate your issue if at all possible.

But it seems to work for me in Firefox,
wget says the mime type is text/plain (correct),
the config on the server looks good.

[louipc@lynn ~]$ wget -S http://aur.archlinux.org/packages/empathy-indicate/empathy-indicate/PKGBUILD
--2010-05-12 01:13:14-- http://aur.archlinux.org/packages/empathy-indicate/empathy-indicate/PKGBUILD
Resolving aur.archlinux.org... 208.92.232.29
Connecting to aur.archlinux.org|208.92.232.29|:80... connected.
HTTP request sent, awaiting response...
HTTP/1.0 200 OK
Vary: Accept-Encoding
Content-Type: text/plain
Accept-Ranges: bytes
ETag: "3367098942"
Last-Modified: Wed, 12 May 2010 01:10:30 GMT
Content-Length: 2920
Connection: keep-alive
Date: Wed, 12 May 2010 05:11:17 GMT
Server: lighttpd/1.4.26
Length: 2920 (2.9K) [text/plain]
Comment by Heiko Baums (cyberpatrol) - Wednesday, 12 May 2010, 05:59 GMT
I can only reproduce it with Opera 10.10. With Firefox and Midori it seems to work.
But I haven't changed any browser options since it has worked correctly.

I tried it again with several other packages and found out, that it happens only with some packages. I guess I ask the maintainer to check the package and re-upload it.

So this bug may be invalid.
Comment by Loui Chang (louipc) - Wednesday, 12 May 2010, 15:47 GMT
Can you be more specific about which file or packages this is occuring with?
Comment by Heiko Baums (cyberpatrol) - Wednesday, 12 May 2010, 15:51 GMT
This is occurring with gish (http://aur.archlinux.org/packages.php?ID=36682).
I asked the maintainer to rebuild and reupload the package, but the problem is still existing.
Comment by Heiko Baums (cyberpatrol) - Wednesday, 12 May 2010, 15:54 GMT
After saving the PKGBUILD to the harddisk `file PKGBUILD` says "PKGBUILD: UTF-8 Unicode English text, with very long lines".
Can the long pkgdesc line be the reason?
Comment by Heiko Baums (cyberpatrol) - Wednesday, 12 May 2010, 16:15 GMT
Problem solved. The reason was the long package description. And this bug is indeed invalid.
Comment by Loui Chang (louipc) - Wednesday, 12 May 2010, 16:17 GMT
It could be the reason, but all this points to a bug in Opera.

Loading...