2.2.7.8 MySQL Shared files problem

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
11/19/2008 8:25:32 AM
Gravatar
Total Posts 92

2.2.7.8 MySQL Shared files problem

I just installed a fresh copy of Mojoportal 2.2.7.8 MySql on my localhost sandbox to test some features and ran into some problems with the Shared Files module.   When downloading a PDF I got a "File does not begin with a %PDF-" error.   So I uploaded a text file and tried downloading that.  The content that was received is as follows.

<html>
<head>
<title>Positive number required.<br>Parameter name: bufferSize</title>
<style>
body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}

Here is the log entry

2008-11-19 09:17:29,678 ERROR mojoPortal.Web.Global - 127.0.0.1-en-US - /SharedFiles/Download.aspx?pageid=3&fileid=1&mid=3
System.ArgumentOutOfRangeException: Positive number required.
Parameter name: bufferSize
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync)
at Apache.Web.WorkerRequest.SendResponseFromFile(String filename, Int64 offset, Int64 length)
at Brettle.Web.NeatUpload.DecoratedWorkerRequest.SendResponseFromFile(String filename, Int64 offset, Int64 length)
at System.Web.HttpWorkerRequest.TransmitFile(String filename, Int64 offset, Int64 length, Boolean isImpersonating)
at System.Web.HttpFileResponseElement.System.Web.IHttpResponseElement.Send(HttpWorkerRequest wr)
at System.Web.HttpWriter.Send(HttpWorkerRequest wr)
at System.Web.HttpResponse.Flush(Boolean finalFlush)
at System.Web.HttpResponse.Flush()
at System.Web.HttpWriter.TransmitFile(String filename, Int64 offset, Int64 size, Boolean isImpersonating, Boolean supportsLongTransmitFile)
at System.Web.HttpResponse.TransmitFile(String filename, Int64 offset, Int64 length)
at System.Web.HttpResponse.TransmitFile(String filename)
at mojoPortal.Web.SharedFilesDownload.DownloadFile()
at mojoPortal.Web.SharedFilesDownload.Page_Load(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at mojoPortal.Web.mojoBasePage.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Any ideas?  This is a fresh install on an empty database.  No upgrade at all, running on Apache (Windows), MySql and Dot Net (Not mono)

11/19/2008 12:14:46 PM
Gravatar
Total Posts 18439

Re: 2.2.7.8 MySQL Shared files problem

Hi Richard,

That error doesn't indicate any database problem. Do the files exist on disk? The error would make me think the file isn't there.

It works on my machine and on the demo site. Possibly its an issue with apache and moddotnet

Hope it helps,

Joe

11/19/2008 12:18:46 PM
Gravatar
Total Posts 92

Re: 2.2.7.8 MySQL Shared files problem

Yes, I looked up the guid filename in the table, and found it on the hard disk, renamed to pdf or txt file and the file was intact, so the uploading is working okay.

I just downloaded the svn version, and ran it in vs2005 and it's working okay.   I'm going to move the svn version to my windows apache sandbox and see if it's an apache problem.   I haven't changed anything in my apache/asp_dotnet configuration or versions except the new mojoportal version.

I'll let you know how it works out.

11/19/2008 12:46:53 PM
Gravatar
Total Posts 92

Re: 2.2.7.8 MySQL Shared files problem

Hmmm,  Weird.    I just set up a fresh Apache 2.2.10 server with mod_aspnet 2.2 with a fresh compile of mojoPortal svn revision 4451 and a fresh mysql database and I still get the same problem where previous versions didn't. 

It's definately a problem with Apache, and is happening on the live machines as well as my testbed.

 

11/20/2008 7:14:01 AM
Gravatar
Total Posts 92

Re: 2.2.7.8 MySQL Shared files problem

Well it looks like something in mojoPortal doesn't like the Windows Apache/mod_aspdotnet configuration anymore.  Links to downloads work, but downloading using the mojoPortal module does not.  I was forced to switch the systems over to IIS temporarily.

I suspect it's the mod_aspdotnet module because downloads work fine on Linux using Apache/mod_mono/xsp2.

For security sake I'll switch the systems over to linux soon since the only reason I was running this configuration is that mono wasn't mature enough to run mojoPortal at the time.

 

You must sign in to post in the forums. This thread is closed to new posts.