U4-4206 - Image picker tries to get thumbnail when you pick a folder

Created by Sebastiaan Janssen 10 Feb 2014, 09:34:46 Updated by Sebastiaan Janssen 19 Mar 2014, 13:32:41

Relates to: U4-4111

GET request goes to: /umbraco/backoffice/UmbracoApi/Images/GetBigThumbnail?originalImagePath= Error:

An error has occurred.Object reference not set to an instance of an object.System.NullReferenceException at Umbraco.Core.IO.PhysicalFileSystem.GetRelativePath(String fullPathOrUrl) at Umbraco.Web.Editors.ImagesController.GetResized(String imagePath, Int32 width, String suffix) at Umbraco.Web.Editors.ImagesController.GetBigThumbnail(String originalImagePath) at lambda_method(Closure , Object , Object[] ) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass13.<GetExecutor>b__c(Object instance, Object[] methodParameters) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.<>c__DisplayClass5.<ExecuteAsync>b__4() at System.Threading.Tasks.TaskHelpers.RunSynchronously[TResult](Func`1 func, CancellationToken cancellationToken)

Easiest way to fix IMO would be to return a generic thumbnail if the originalImagePath is empty.


Sebastiaan Janssen 19 Mar 2014, 13:32:38

Temporary fix put in place in rev 36c107c0efd718e7424603d138c857f050506e5e

It's probably better not to ask for a thumbnail when the image is empty but this fixes it for now.

Priority: Normal

Type: Bug

State: Fixed


Difficulty: Normal


Backwards Compatible: True

Fix Submitted:

Affected versions: 7.0.3

Due in version: 7.1.0


Story Points: