FileManagerLink incorrect URL

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.
5/15/2018 1:21:29 PM
Gravatar
Total Posts 3

FileManagerLink incorrect URL

I'm updating from v 2.3.6.6 MSSQL  to 2.6.0.0 MSSQL.   I had my ups and down but after a clean install most of my problems are gone.

 

Except that the link to the file manager returns a 404 file not found. /FileManager?view=fullpage

It works if you fix the URL to this: /Admin/FileManager.aspx?view=fullpage

I check the code and it looks like there is a bug in the onload event of the Web/Controls/FileManagerLink.cs control.
The assignment to NavigateUrl is incorrect.

    if (SiteUtils.SslIsAvailable()) {
        NavigateUrl = basePage.SiteRoot + "/FileManager" + queryString;
    }
    else {
        NavigateUrl = basePage.RelativeSiteRoot + "/FileManager" + queryString;
    }

The literal in the above code should be changed to "/Admin/FileManager.aspx" to make it work.

5/16/2018 3:22:00 PM
Gravatar
Total Posts 2239

Re: FileManagerLink incorrect URL

Hi,

The link should work fine with the code as it is. It uses routing to get to the right place.

The link you are suggesting to use is the old File Manager.

Are you sure your server has .net 4.6.2 or higher installed?

Thanks,
Joe

5/17/2018 9:06:57 AM
Gravatar
Total Posts 3

Re: FileManagerLink incorrect URL

Yes, I have .Net 4.7 installed on a Win 2012 R2 server.
It seems like the code doesn't work in Classic pipeline mode.  I switched my app pool to Integrated and it started working.

But now it seems that the new file manager doesn't work with multiple sites (using folders). Each time I clicked on it. It brought up the file manager for the main site (ID=1) even if I am in one of my other folders.

The other problem I found with using Integrated pipeline was the default document causes a redirect loop. I don't have any rewrites.

5/24/2018 5:36:28 PM
Gravatar
Total Posts 2239

Re: FileManagerLink incorrect URL

Hi,

To fix the File Manager, copy the contents of this file to the /Views/FileManager/Index.cshtml file on your site.

We have not had redirect loop problems with mojoPortal without some kind of a rewrite rule in place, an old redirect being cached (browsers like to cache 301 redirects forever), or a redirect in the Administration>Advanced Tools>Redirect Manager.

Thanks,
Joe

5/25/2018 12:57:07 PM
Gravatar
Total Posts 3

Re: FileManagerLink incorrect URL

Thanks Joe, that file fixed the File Manager for multiple sites (using folders). smiley

The only thing left is the redirect loop. But in checking the Administration>Advanced Tools>Redirect Manager page that gave me an idea.

I added '/child' redirects to '/child/default.aspx' at the main site and that fixed my problem. It brought up my highest level page for that site.

 

Thanks again Joe!

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