[Mono-bugs] [Bug 691807] New: HttpResponse closes Filter stream after first 64K of output when using custom VirtualPathProvider

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed May 4 17:25:47 EDT 2011


https://bugzilla.novell.com/show_bug.cgi?id=691807

https://bugzilla.novell.com/show_bug.cgi?id=691807#c0


           Summary: HttpResponse closes Filter stream after first 64K of
                    output when using custom VirtualPathProvider
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.10.x
          Platform: x86-64
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: mhabersack at novell.com
        ReportedBy: Kalyanov.Dmitry at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Created an attachment (id=428038)
 --> (http://bugzilla.novell.com/attachment.cgi?id=428038)
Project that demonstrates the issue

User-Agent:       Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.24 (KHTML,
like Gecko) Chrome/11.0.696.50 Safari/534.24

I've been trying to implement proper HTTP caching and compression for a project
that uses VirtualPathProvider to provide content. In Application_BeginRequest I
install Filter to HttpResponse (this filter is used to calculate ETags and
compress data), but this filter is getting only first 64Kb of data (the rest of
data comes straight into output past my filter).

I've made a small project that reproduces this problem and a patch that fixes
this issue for me (though I'm not sure whether it's OK in all cases).

Reproducible: Always

Steps to Reproduce:

1. Open the attached project in monodevelop
2. Run the project
3. Run in terminal:
curl http://localhost:8080/asd.txt 2>/dev/null | gunzip | wc -c
Actual Results:  
The following is printed to stdio:

gzip: stdin: decompression OK, trailing garbage ignored
65535

Expected Results:  
The following is printed to stdio:

26749685

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list