httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 39236] - 'include virtual' not working when there are more than 255 byte to include.
Date Fri, 07 Apr 2006 13:19:49 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39236>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39236





------- Additional Comments From blogarithme@gmail.com  2006-04-07 14:19 -------
(I add here what was truncated in my original description)

HOW TO REPRODUCE:
The config of the virtual host is very simple:

  AddType text/html .shtml
  AddOutputFilter   INCLUDES .shtml

  DocumentRoot  /home/web/htdocs
  <Directory    /home/web/htdocs>
    Options       Includes
    AllowOverride None    
    Order         allow,deny
    Allow         from all  
  </Directory>
  

I use two small files:
  > ls -l test*
  -rw-r--r--   1 web web    51  Apr 7 07:20 test.shtml
  -rw-r--r--   1 web web   255  Apr 7 07:21 test.txt
  
> cat test.shtml
  <html>
  <!--#include virtual='test.txt' -->
  </html>

> cat test.txt
  123456789 123456789 123456789 123456789 123456789
  123456789 123456789 123456789 123456789 123456789
  ...

> wc -c test.txt
    255 test.txt

In this situation (where the size of test.txt is 255 bytes or less) the 'include
virtual' is working as expected.

Now, I add at least one byte to test.txt Its new size is > 255. 
In this new situation the 'include' is no more working.

I think there is no interaction with other modules because I use a very limited
number of modules:

(output from /server-info?list)
Server Module List
    mod_dir.c
    mod_vhost_alias.c
    mod_info.c
    mod_status.c
    mod_mime.c
    mod_log_config.c
    mod_filter.c
    mod_include.c
    mod_authz_host.c
    mod_so.c
    http_core.c
    prefork.c
    core.c

Even with the 'LogLevel' set to 'debug' there is nothing interesting in the logs.


(Output from /server-info)
Server Settings
  Server Version: Apache/2.2.0 (Unix)
  Server Built: Jan 1 2006 02:14:58
  Module Magic Number: 20051115:0
  Timeouts: connection: 300    keep-alive: 300
  MPM Name: Prefork
  MPM Information: Max Daemons: 256 Threaded: no Forked: yes
  Server Architecture: 32-bit
  Server Root: /usr/local/apache2
  Config File: /usr/local/apache2/conf/httpd.conf
  Server Built With: 
  -D APACHE_MPM_DIR="server/mpm/prefork" 
  -D APR_HAS_SENDFILE 
  -D APR_HAS_MMAP 
  -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) 
  -D APR_USE_FCNTL_SERIALIZE 
  -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT 
  -D APR_HAS_OTHER_CHILD 
  -D AP_HAVE_RELIABLE_PIPED_LOGS 
  -D HTTPD_ROOT="/usr/local/apache2" 
  -D SUEXEC_BIN="/usr/local/apache2/bin/suexec" 
  -D DEFAULT_ERRORLOG="logs/error_log" 
  -D AP_TYPES_CONFIG_FILE="conf/mime.types" 
  -D SERVER_CONFIG_FILE="conf/httpd.conf"

NB: The XBitHack is a workaround only for text/html files
not for those used by wap (.wml)


I hope this can help...


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message