Re: [users@httpd] mod_autoindex and README.html gzipped

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 6/30/06, Miguel Pagano <miguel.pagano@xxxxxxxxx> wrote:
Hi,
I discvorered a buggy behaviour in mod_autoindex: when the file
README.html is gzipped or compressed the content of that file is
showed after the directory listing. The problem is that the content of
the README file is gzipped or compressed and is showed verbatim.

This problem is also mentioned in bug #21372
(http://issues.apache.org/bugzilla/show_bug.cgi?id=21372). I have
issued a new bug #39937
(http://issues.apache.org/bugzilla/show_bug.cgi?id=39937), and
provided a patch (available on the same bug report).

If this is not a bug, could you explain why? I apologize for not
following the guidelines (it's supposed that I should have asked first
here and then filed the bug) and for my english mistakes.

There was an old vaudeville joke that went something like:
A man walks into the doctor's office, raises his arm and says, "Doc,
it hurts when I do this."  The doctor says, "Don't do that."

Yes, there is a small bug here in the sense that Apache tries to
prevent you from shooting yourself in the foot by only trying to
include text/* documents but allows you to dodge that check using
encoding and shot yourself in the foot anyway.  But that is really
only a safety check, and the fix is either not gzip your README, or
configure apache not to include it.  (In other words, stop trying to
shoot yourself in the foot.)  I think it is borderline whether it is
worth adding code to check for this special case.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux