This project is read-only.

filename handling - extra dots/spaces?


I had a file in the media section of umbraco that looked like this:

When it was requested from the server via crop up resizing with crop alias,
URL was:

This resulted in the following exception/ysod:
Server Error in '/' Application.

The specified virtual file could not be found.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.IO.FileNotFoundException: The specified virtual file could not be found.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace: 

[FileNotFoundException: The specified virtual file could not be found.]
   ImageResizer.ImageBuilder.GetStreamFromSource(Object source, ResizeSettings settings, Boolean& disposeStream, String& path, Boolean& restoreStreamPosition) in c:\Users\nathanael\Documents\resizer\Core\ImageBuilder.cs:236
   ImageResizer.ImageBuilder.LoadImage(Object source, ResizeSettings settings, Boolean restoreStreamPos) in c:\Users\nathanael\Documents\resizer\Core\ImageBuilder.cs:152
   Eksponent.CropUp.Plugins.ImageResizerDialect.GetBitmap(String virtualPath) +72
   Eksponent.CropUp.AutoDetect.FaceAndEnergyDetector.SuggestCropInfo(String virtualPath, Dialect dialect) +50
   Eksponent.CropUp.DefaultCropDataProvider.GetCropData(String virtualPath) +871
   Eksponent.CropUp.Plugins.ImageResizerPlugin.Pipeline_Rewrite(IHttpModule sender, HttpContext context, IUrlEventArgs e) +509
   ImageResizer.Configuration.PipelineConfig.FireRewritingEvents(IHttpModule sender, HttpContext context, IUrlEventArgs e) in c:\Users\nathanael\Documents\resizer\Core\Configuration\PipelineConfig.cs:397
   ImageResizer.InterceptModule.CheckRequest_PostAuthorizeRequest(Object sender, EventArgs e) in c:\Users\nathanael\Documents\resizer\Core\InterceptModule.cs:87
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +80
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +165

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18446
The same image worked fine when renamed to "myreads.png" and reuploaded (no image data was manipulated so this is to do with the filename)