Image Cropping not working when deploy mojoPortal in virtual directory under website

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.
1/31/2012 10:43:24 AM
Gravatar
Total Posts 6

Image Cropping not working when deploy mojoPortal in virtual directory under website

Hi everyone,

I am fairly new to .NET CMS products and MojoPortal (previously have experience in Java portals such as Liferay ). Anyways, I have just started to learn MojoPortal and  was quite impressed with the code organization/style.

Great work!

Just want to highlight a small bug in DiskFileSystem.cs which will make the image cropping page blank when we click on "crop image" link in CKEditor. Note that this only occurs when mojoPortal is deployed as a virtual directory e.g. localhost/mojoportal.

 public bool FileExists(string virtualPath)
{
return File.Exists(HostingEnvironment.MapPath(virtualPath));
}

This should be

return File.Exists(MapPath(virtualPath));

 

 

 

1/31/2012 12:31:41 PM
Gravatar
Total Posts 18439

Re: Image Cropping not working when deploy mojoPortal in virtual directory under website

Hi Ngo,

Thanks for the bug report. This is now fixed in the source code repository.

Best,

Joe

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