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