Browse Server

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.
6/22/2010 7:37:55 PM
Gravatar
Total Posts 165

Browse Server

When trying to add a image, I get the following error when I click on my folder that I have images in:


We're sorry but a server error has occurred while trying to process your request.

The error has been logged and will be reviewed by our staff as soon as possible. It is possible that the error was just a momentary hiccup and you may wish to use the back button and try again or go back to the
home page
.
 

6/22/2010 7:58:32 PM
Gravatar
Total Posts 165

Re: Browse Server

Additional information, it looks like it's only happening on the folder that I added images to via ftp upload.  Is this the issue?

6/22/2010 9:42:06 PM
Gravatar
Total Posts 2253

Re: Browse Server

Hi,

Do your images have spaces in the names? If so, please remove the spaces and let us know if the problem persists. If not, go to Administration > System Log and go to the bottom to see if there is anything that may pertain to this issue.

Thanks,
Joe D.

6/23/2010 7:40:41 AM
Gravatar
Total Posts 165

Re: Browse Server

No spaces  The odd thing is I created a new folder and added an image via the control panel (not ftp) and it works.

2010-06-23 07:39:14,298 ERROR mojoPortal.Web.Global - 172.16.10.120-en-US - /Services/jqueryFileTreeMediaBrowser.ashx?type=image&dir=
System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)
at System.Security.CodeAccessPermission.Demand()
at System.IO.DirectoryInfo.GetFiles(String searchPattern, SearchOption searchOption)
at System.IO.DirectoryInfo.GetFiles()
at mojoPortal.Web.Services.jqueryFileTreeMediaBrowser.RenderFileTree(HttpContext context)
at mojoPortal.Web.Services.jqueryFileTreeMediaBrowser.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
The action that failed was:
Demand
The type of the first permission that failed was:
System.Security.Permissions.FileIOPermission
The Zone of the assembly that failed was:
Intranet
 

6/23/2010 8:04:11 AM
Gravatar
Total Posts 165

Re: Browse Server

OK, after more review I found the issue.

there where two files in the system that had the same name but one had upper case letters and the other did not.

Example:

PW_cheer.jpg and pw_cheer.jpg were both in there, so the system could not tell the differences between the two so it created an error.

I believe this is a bug, but I'm not sure how it would be fixed.

6/24/2010 7:54:20 AM
Gravatar
Total Posts 18439

Re: Browse Server

Hi,

Maybe you are using a linux network share to host your files, but on windows the file system is not case sensitive like it is on linux. It is not possible on windows to have two files in the same folder with the same name differing only by case. This is a feature of the operating system beyond the scope of any control by mojoPortal. By default mojoportal is going to lower case the name of any image files uploaded via the UI. Possibly if you uploaded an mixed case file by ftp and then tried to modify it or upload it again with mojoportal it might cause an error, but I would be surprised if it resulted in 2 files on a windows drive that differ only by case of the file name, I would expect it to overwrite the file since from windows point of view it is the same file.

Best,

Joe

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