[Mono-bugs] [Bug 74688][Nor] Changed - Cannot create 'download' page for inline PDF viewing with IE

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 21 Apr 2005 23:13:39 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by gonzalo@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=74688

--- shadow/74688	2005-04-21 22:48:38.000000000 -0400
+++ shadow/74688.tmp.29418	2005-04-21 23:13:39.000000000 -0400
@@ -174,6 +174,106 @@
 I don't think the charset should be specified for binary files..
 perhaps it shouldn't be added if it hasn't been specified explicitly?
 
 
 ------- Additional Comments From eto@shaw.ca  2005-04-21 22:48 -------
 Sorry, that's HttpResponse.cs, not HttpRequest.cs
+
+------- Additional Comments From gonzalo@ximian.com  2005-04-21 23:13 -------
+Heh, I got a mid-air collision on bugzilla. These are my findings:
+I modified xsp to print the headers and the length of the data it
+writes and see this... The first request is from IE. Seems like IE
+closes the connection! The second one is from firefox and goes on and
+on... until the end. Note that there's no utf-8 here.
+
+$ ./xsp
+xsp
+Listening on port: 8080
+Listening on address: 0.0.0.0
+Root directory: c:\gonzalo\webtests
+Hit Return to stop the server.
+GET /WebForm1.aspx HTTP/1.1
+HTTP/1.0 200 OK
+Server: Mono-XSP Server/1.0.6.0 Win32NT
+X-AspNet-Version: 1.1.4322
+Content-Disposition: inline; filename="svn-book.pdf"
+Cache-Control: private
+Content-Type: application/pdf
+Connection: close
+
+
+16600
+16384
+Exception: System.IO.IOException: Unable to write data to the
+transport connecti
+on. ---> System.Net.Sockets.SocketException: An existing connection
+was forcibly
+ closed by the remote host
+   at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset,
+Int32 size, So
+cketFlags socketFlags)
+   at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32
+offset, Int32
+size)
+   --- End of inner exception stack trace ---
+
+Server stack trace:
+   at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32
+offset, Int32
+size)
+   at Mono.ASPNET.XSPWorker.Write(Byte[] buffer, Int32 position, Int32
+size)
+   at Mono.ASPNET.BaseRequestBroker.Write(Int32 requestId, Byte[]
+buffer, Int32
+position, Int32 size)
+   at
+System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(M
+ethodBase mb, Object[] args, Object server, Int32 methodPtr, Boolean
+fExecuteInC
+ontext, Object[]& outArgs)
+   at
+System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMes
+sage msg, Int32 methodPtr, Boolean fExecuteInContext)
+
+Exception rethrown at [0]:
+   at
+System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage req
+Msg, IMessage retMsg)
+   at
+System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgDa
+ta, Int32 type)
+   at Mono.ASPNET.BaseRequestBroker.Write(Int32 requestId, Byte[]
+buffer, Int32
+position, Int32 size)
+   at Mono.ASPNET.XSPWorkerRequest.FlushResponse(Boolean finalFlush)
+System.Threading.ThreadAbortException: Thread was being aborted.
+   at System.Threading.Thread.AbortInternal()
+   at System.Threading.Thread.Abort(Object stateInfo)
+   at System.Web.HttpResponse.End()
+   at TestPDFDownload.WebForm1.Page_Load(Object sender, EventArgs e)
+
+Administrator@this /cygdrive/c/gonzalo/webtests
+$ ./xsp
+xsp
+Listening on port: 8080
+Listening on address: 0.0.0.0
+Root directory: c:\gonzalo\webtests
+Hit Return to stop the server.
+GET /WebForm1.aspx HTTP/1.1
+HTTP/1.0 200 OK
+Server: Mono-XSP Server/1.0.6.0 Win32NT
+X-AspNet-Version: 1.1.4322
+Content-Disposition: inline; filename="svn-book.pdf"
+Set-Cookie: ASP.NET_SessionId=vztd1w45jitq2u551ucfyvbm; path=/
+Cache-Control: private
+Content-Type: application/pdf
+Connection: close
+
+
+16664
+16384
+16384
+16384
+16384
+16384
+16384
+16384