Library Image URL Case Sensitive Null Reference Exception

Posted by Community Admin on 04-Aug-2018 23:54

Library Image URL Case Sensitive Null Reference Exception

All Replies

Posted by Community Admin on 07-Apr-2014 00:00

Hi There,

We have a site running Sitefinity 6.0 (upgraded from 3.7).  When linking to a library image and using the incorrect case (e.g. MyImage.png vs myimage.png) we get the following exception.  I would assume the URL would not be case sensitive, and if all else, would throw a 404 instead.  Any insight would be much appreciated.

 [NullReferenceException: Object reference not set to an instance of an object.]
 Telerik.Sitefinity.Modules.Libraries.Web.LibrariesEventsFactory.CreateMediaContentDownloadingEvent(MediaContent item, HttpRequest request, String url) +30
   Telerik.Sitefinity.Modules.Libraries.Web.LibraryHttpHandler.ProcessRequest(HttpContext context) +1252
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +341
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69

Posted by Community Admin on 08-Apr-2014 00:00

Hi Sam,

Could you please provide us with more information about the error? Where this link is set? Did you get the image through the API? If so, the item /image, news, etc./ title is case sensitive.

If not the case, can you give some example?

Regards,
Svetoslav Manchev
Telerik

 
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
 

Posted by Community Admin on 08-Apr-2014 00:00

Hi Svetoslav,

Thanks for the reply.  I created a support ticket and posted the details there.  Ticket #807367

  

Thank You!

Sam 

 

This thread is closed