You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2008/06/18 07:30:04 UTC
DO NOT REPLY [Bug 45225] New: XBitHack breaks DirectoryIndex +
MultiViews content negotiation
https://issues.apache.org/bugzilla/show_bug.cgi?id=45225
Summary: XBitHack breaks DirectoryIndex + MultiViews content
negotiation
Product: Apache httpd-2
Version: 2.2.8
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: mod_include
AssignedTo: bugs@httpd.apache.org
ReportedBy: matt@blissett.me.uk
Problem: The transfer of a document fails if it was chosen by Apache because of
DirectoryIndex and MultiViews, and XBitHack is set.
Reproduction:
VirtualHost configuration:
<VirtualHost *:80>
ServerName problem
DocumentRoot /web/problem
CustomLog "/var/log/apache2/problem" combined
ErrorLog "/var/log/apache2/problem_e"
Options +MultiViews +Includes
DirectoryIndex index
XBitHack Full
</VirtualHost>
The file in DocumentRoot:
$ echo '<!--#set var="a" value="ABC" -->T: <!--#echo var="a" -->' > index.html
$ chmod 744 index.html
Example HEAD request (works fine):
$ curl -I http://problem/
HTTP/1.1 200 OK
Date: Wed, 18 Jun 2008 05:08:43 GMT
Server: Apache
Content-Location: index.html
Vary: negotiate
TCN: choice
Accept-Ranges: bytes
Content-Type: text/html; charset=UTF-8
But a GET request hangs (curl hangs for 10 seconds before exiting with the
error, web browsers just fail and display an error):
$ curl http://problem/
T: ABC
curl: (18) transfer closed with outstanding read data remaining
The log records a successful request.
This request is fine:
$ curl http://problem/index
T: ABC
To "fix":
$ chmod 644 index.html
$ curl http://problem/
<!--#set var="a" value="ABC" -->T: <!--#echo var="a" -->
Bring back the SSI:
$ mv index.html index.shtml
$ curl http://problem/
T: ABC
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 45225] XBitHack breaks DirectoryIndex + MultiViews content
negotiation
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45225
Wim Lewis <wi...@omnigroup.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Blocks| |50914
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 45225] XBitHack breaks DirectoryIndex + MultiViews
content negotiation
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45225
--- Comment #3 from Zhang Weiwu <zh...@realss.com> 2011-03-11 01:13:20 EST ---
*** Bug 50914 has been marked as a duplicate of this bug. ***
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 45225] XBitHack breaks DirectoryIndex + MultiViews
content negotiation
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45225
--- Comment #1 from Zhang Weiwu <zh...@realss.com> 2009-03-09 09:39:16 PST ---
I can confirm this bug do exist on two of my servers, one with gentoo linux and
the other ubuntu. Matt made a very good bug report IMHO because all what he
said waisted me 1 full day to find out.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 45225] XBitHack breaks DirectoryIndex + MultiViews
content negotiation
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45225
Zhang Weiwu <zh...@realss.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |zhangweiwu@realss.com
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 45225] XBitHack breaks DirectoryIndex + MultiViews
content negotiation
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45225
--- Comment #2 from David Nesting <da...@fastolfe.net> 2009-06-22 12:24:38 PST ---
This may be related to bug 43289.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org