Library Image URL Case Sensitive Null Reference Exception
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
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
Hi Svetoslav,
Thanks for the reply. I created a support ticket and posted the details there. Ticket #807367
Thank You!
Sam