1

Topic: SSL Redirection Breaks Filemanager

Hello,

I have filemanger setup on a .net site that has been working for over a year now.  We recently added an ssl cert to the site which broke the filemanager.  When you try to pull up the filemanager it just spins and says loading for ever.  I have tried to enable debug logging but don't get anything written to the logs.  In firebug I get "filemanager/rpc/default.aspx 301 Moved Permanently" errors.

The application that filemanger is used with forces any request that are sent in over http to https.  It seems like the rpc/default.aspx call used internally by filemanger keeps requesting http then when it gets an https response it tries again with http.  I am guessing this is causing an infiinite loop but I have no idea how to resolve it.

Where do I go from here?

Thanks,

Bryan

2

Re: SSL Redirection Breaks Filemanager

All requests are protocol relative a.f.a.i.k. So as long as the filemanager isn't loaded form an absolute http url in the page it should auto detect https and use that.

Just verified that the standalone version works over HTTPS.
So I just pointed my browser to https://myserver/filemanager and tried out the examples over https.

Best regards,
Spocke - Main developer of TinyMCE

3

Re: SSL Redirection Breaks Filemanager

Hey Spoke,

Thanks for the reply. 

I still have the same issue and just tried to hit the rpc pages directly.  I found this error in the logs from any request to https://servername/scripts/tiny_mce/plugins/filemanager/rpc/default.aspx

Stack trace:    at System.Web.UI.Page.HandleError(Exception e)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest()
   at System.Web.UI.Page.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Inner Exception: System.NullReferenceException: Object reference not set to an instance of an object.
   at Moxiecode.Manager.ManagerEngine.SetupConfigItems()
   at Moxiecode.Manager.ManagerEngine..ctor(String prefix, String manager_path)
   at ASP.scripts_tiny_mce_plugins_filemanager_rpc_default_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer)
   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
   at System.Web.UI.Page.Render(HtmlTextWriter writer)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

4

Re: SSL Redirection Breaks Filemanager

Hmm, not sure what the issue might be here since I can't reproduce it. We ship the product with the full source so maybe you could build a debug build to see whats going in.

Best regards,
Spocke - Main developer of TinyMCE