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 44925] New: mod_rewrite external map program runs out of sync after reading response longer 2047 bytes
Date Fri, 02 May 2008 15:29:44 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=44925

           Summary: mod_rewrite external map program runs out of sync after
                    reading response longer 2047 bytes
           Product: Apache httpd-2
           Version: 2.0.63
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_rewrite
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: matthias.lehr@siemens.com


mod_rewrite external map program runs out of sync
after reading response longer than LONG_STRING_LEN-1 (2047 bytes)

Reading from fpout terminates after reading an '\n' character
if the response is shorter than LONG_STRING_LEN-1.
But if not, reading stops after 2047 bytes and the remaining characters 
are left in the fpout pipe. 


Steps to reproduce:
write an external rewriting program returning reponses longer than 2048 Bytes


Actual Results:
fpout pipe runs out of sync and the next call of the filter returns 
the remaining bytes as response.

Workaround: 
limit output length in external rewriting program 

Expected:
- an error log entry if LONG_STRING_LEN-1 is reached while reading
- hint in the documentation of external rewrite program regarding this size
limit 

Optional:
read the remaining bytes into a dummy buffer until '\n' is reached 
add dynamic buffers for the response read


-- 
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


Mime
View raw message