SharedFiles module: Download impossible when not in admin role

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.
4/11/2007 12:11:08 PM
Gravatar
Total Posts 2

SharedFiles module: Download impossible when not in admin role

Hello forum and mojoportal developers,

I am trying to get secured file downloads to work with mojoportal running on mono. I'm currently experimenting with mojoportal 1.0.5 on mono 1.2.3 on SuSE 10.2 (which is to be migrated to a 10.0 machine when ready). PostgreSQL 8.1 serves as the db backend.

My goal is to force users to register before they can start downloading files. So I have created a page with a SharedFile module in it and have successfully added a file. As admin, I can also download the file perfectly. The page is protected for non-authenticated users which works as desired. Now I try to log in with a different user and download the file which in return points me to the error.html page.

I believe the following is what log4net writes out about the issue.

System.NullReferenceException: Object reference not set to an instance of an object
at System.Web.UI.WebControls.ImageButton.LoadPostData (System.String postDataKey, System.Collections.Specialized.NameValueCollection postCollection) [0x00000]
at System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackDataHandler.LoadPostData (System.String postDataKey, System.Collections.Specialized.NameValueCollection postCollection) [0x00000]
at System.Web.UI.Page.ProcessPostData (System.Collections.Specialized.NameValueCollection data, Boolean second) [0x00000]
at System.Web.UI.Page.InternalProcessRequest () [0x00000]
at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x00000]
2007-04-11 18:35:55,478 [-1224885360] ERROR mojoPortal.Web.Global [(null)] - yggdrasil
System.NullReferenceException: Object reference not set to an instance of an object
at System.Web.UI.WebControls.ImageButton.LoadPostData (System.String postDataKey, System.Collections.Specialized.NameValueCollection postCollection) [0x00000]
at System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackDataHandler.LoadPostData (System.String postDataKey, System.Collections.Specialized.NameValueCollection postCollection) [0x00000]
at System.Web.UI.Page.ProcessPostData (System.Collections.Specialized.NameValueCollection data, Boolean second) [0x00000]
at System.Web.UI.Page.InternalProcessRequest () [0x00000]
at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x00000]


Of course, I appreciate any hint on how I could track down this issue. It looks like reading postback/viewstate data fails at a very early stage of the pipeline?

I have some more questions on user profile management. Where can I edit the mail template(s)? The german translation seems a bit awkward. Is there a way an administrator can be informed (by mail) when a new user applies for registration?

Best regards,
Helge
4/11/2007 4:26:27 PM
Gravatar
Total Posts 18439

Re: SharedFiles module: Download impossible when not in admin role

Hi,

I'm not sure, that might be a Mono bug. I'll try to look into it sometime, though I'm running Mono from the latest mono svn so if there was a bug in that version it may be fixed in svn.

Message templates are under Data/MessageTemplates

We don't currently have a feature to notify upon registration but it would be easy to implement and is something I've thought would be nice to have also.

Best,

Joe
4/12/2007 9:38:38 AM
Gravatar
Total Posts 2

Re: SharedFiles module: Download impossible when not in admin role

Hi Joe,

thanks for your answer - especially for pointing me to that MessageTemplates directory that I have searched for.

However, the bug when attempting a download remains. I have found bug #81236 in mono's bugzilla that looks perfectly the same to what I see over here. It is mentioned as a possible bug in mono 1.2.3 but solved in subversion. So I went through building the latest of everything from subversion and getting it to run again. Anyway, the result is just the same error.

I think I'll stay with direct file links for now until hopefully mojoportal 2.x is fully functional on mono ;-)

Best regards,
Helge
You must sign in to post in the forums. This thread is closed to new posts.