FS#16134 - 302 and depency problem of http://www.archlinux.org/packages/
Attached to Project:
Arch Linux
Opened by Liu Dongiao (liudongmiao) - Friday, 11 September 2009, 06:09 GMT
Last edited by Jan de Groot (JGC) - Sunday, 20 September 2009, 12:27 GMT
Opened by Liu Dongiao (liudongmiao) - Friday, 11 September 2009, 06:09 GMT
Last edited by Jan de Groot (JGC) - Sunday, 20 September 2009, 12:27 GMT
|
Details
*Description:*
When we visit www.archlinux.org/packages/[search], for example, www.archlinux.org/packages/firefox with firefox *sometimes* firefox doesnt follow the information of web, but try to save a file. the content of saved file is like this: 0300 0000 0000 0000 0000 (ten bytes) HTTP/1.1 302 FOUND Date: Fri, 11 Sep 2009 04:51:04 GMT Server: Apache Content-Length: 0 Location: http://www.archlinux.org/packages/?arch=&repo=&q=firefox Vary: User-Agent,Accept-Encoding Content-Encoding: gzip Keep-Alive: timeout=2, max=499 Connection: Keep-Alive Content-Type: text/html; charset=utf-8 0d0a 0d0a 1f8b 0800 0000 0000 0003 0200 0000 ffff 0300 0000 0000 0000 0000 (ten bytes) but other browser(tested with opera, konqueror, arora) or wget goes well: (example in wget) -> HEAD, http://www.archlinux.org/packages/firefox <- 301, http://www.archlinux.org/packages/firefox/ -> HEAD, http://www.archlinux.org/packages/firefox/ <- 302, http://www.archlinux.org/packages/?arch=&repo=&q=firefox -> HEAD, http://www.archlinux.org/packages/?arch=&repo=&q=firefox <- 200 -> GET, http://www.archlinux.org/packages/?arch=&repo=&q=firefox <- 200 note: wget uses HEAD, then GET, but other browser like konqueror uses GET Another Problem of www.archlinux.org/packages vim in extra depends on vi in testing, actually, vim in extra should depend vi in core And i suggest that packages in core, extra, community follow the depencies in core, extra, community, never follow testing or kde-unstable 1. testing search depencies in testing, never other //should core, extra, community? 2. core search depencies in core, never other. 3. extra search depencies in core, extra, never other 4. community search depencies in core, extra, community, never other Additional info: firefox: 3.5.2-1 Steps to reproduce: 302: http://www.archlinux.org/packages/firefox depency: http://www.archlinux.org/packages/extra/i686/vim/ |
This task depends upon
Closed by Jan de Groot (JGC)
Sunday, 20 September 2009, 12:27 GMT
Reason for closing: Fixed
Additional comments about closing: Patched mod_fastcgi with the patch named in the last comment. Thanks for pointing this out. Also enabled mod_deflate on the https dev vhost again, as this was disabled to fix the same problem there.
Sunday, 20 September 2009, 12:27 GMT
Reason for closing: Fixed
Additional comments about closing: Patched mod_fastcgi with the patch named in the last comment. Thanks for pointing this out. Also enabled mod_deflate on the https dev vhost again, as this was disabled to fix the same problem there.
When searching for all arches this only happens with any packages:
phpmyadmin,phpmya ... phpm
perl-uri,perl-ur
modular initramfs image
When limiting the search to specific arch and repo this behaviour is triggered much more often:
i686/core/{bash,dash,kernel26-lts} most package names will do
Since Dusty reported "works fine" and I got the correct result very seldomly, is there some kind of load balancing going on?
There's no load balancing, but there is django level caching (memcached). This problem has started since we switched the server over to FCGI vs modpython, but that doesn't explain the issue.
Is it possible that during the apache reconfigure, some kind of compression got turned on that is wrapping the HTTP request and making it look like binary to firefox? Why are other browsers interpreting it correctly?
I am running up-to-date Arch firefox as well, I tried with the official build from mozilla and default config, same problem. Midori and firefox on windows work lika a charm.
@garns, er, if i change HEADER from deflate to gzip,deflate, a more funny question occurs..
As the result is compressed, the size should be smaller than orignal html. but, in response, its the same with non-compress html.
Take example as http://www.archlinux.org/packages/firefox
the `deflate' size is 12204, ang `gzip' size is 2273. but in the response to `gzip'-wget, the Content-Length is 12205, not 2273.
Then, wget will always try to get 12204 bytes of html, and will fail permanently.
in attachments, i should wgetrc and the response information.
As a quick survey, what browsers are you using?
but adding / at the end is making the page load.
@Aaron:
There are several problematic cases, which seem to be related:
1. When I try to access the package search by url, like http://archlinux.org/packages/<SEARCHTERM>, firefox starts downloading a binary similar to the one shown in the report. With a header that says:
302 FOUND
Location: http://www.archlinux.org/packages/?arch=&repo=&q=<SEARCHTERM>
same behaviour with http://archlinux.org/packages/search/<SEARCHTERM>. Behaviour seems the same for all search terms.
2. When I enter a search term which identifies a specific package into the search box on the website, i.e. drupal, phpmya, i686/core/dash, I get a binary file with a header which says 200 OK.
3. When I try to access a specific package by url without a trailing slash: http://archlinux.org/core/i686/bash I get a binary file with a header similar to case 2. With trailing slash I get the correct site.
4. An URL like http://archlinux.org/packages/foo/bar/baz also results in a binary file, with a header that says 404 NOT FOUND.
When I deactivate usage of gzip encoding in about:config firefox shows the correct site in all cases, but without CSS.
I took a look using livehttpheaders and it seems that firefox fails when retrieving a redirected site. The redirection is successful, but upon recieving the site I get presented the binary instead. I can reproduce this pretty consistently (firefox on windows in virturalbox behaves correctly, sometimes) with different versions of firefox (3.5.2-arch, 3.5.3, 3.0.14, 3.7a1, 3.0.8) on i686 and x86_64 and across several distros (Arch,Ubuntu 8.04 and 9.04, zenwalk) and operating systems (opensolaris,win XP).
Other browsers: I tested midori and ie, which both show correct behaviour.
@garns: en, network.http.keep-alive works for me too.
Again, Can bugs.archlinux.org support Markdown?
I cannot reproduce the bug with firefox on windows, but probably because I'm behind a corporate proxy.
Do you want me to report a new bug against mod_fastcgi?
[1]: https://bugs.launchpad.net/ubuntu/+source/libapache-mod-fastcgi/+bug/381384
[2]: http://article.gmane.org/gmane.comp.web.fastcgi.devel/2613
[3]: http://article.gmane.org/gmane.comp.web.fastcgi.devel/2819