All project content is available for reading, but you need to be a member of the project for Subversion checkout of source code, or to create/modify any information.
Login if you are a member. Apply here to request membership (open to all).

Ticket #292 (closed defect: worksforme)

Opened 6 years ago

Last modified 6 years ago

Drag and Drop Folder does not work with space in folder name

Reported by: rachelg@… Owned by: alexander@…
Priority: major Component: EPiImage
Keywords: Cc:


(Tested in Firefox)

Attempt to drag and drop a folder from the File Manager into an EPiImage Property fails when the folder has a space in the folder name.

Fails with exception:
Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.NullReferenceException: Object reference not set to an instance of an object.

at MakingWaves.EPiImage.Services.EPiImageGalleryCreateSlideService.Page_Load(Object sender, EventArgs e)

Investigation identifies the following line of code throws the exception (line 49):
foreach (UnifiedFile file in HostingEnvironment.VirtualPathProvider.GetDirectory(qsImagePath).Files)

gsImagePath evaluates to "Folder%20Name" which returns null on GetDirectory.

Change History

comment:1 Changed 6 years ago by rachelg@…

Adding a HttpUtility.UrlDecode for the image path will fix this issue. Unable to upload fix due to being at a customer site but will upload fix to code once back at the office.

comment:2 Changed 6 years ago by alexander@…

  • Status changed from new to closed
  • Resolution set to worksforme

I haven't been able to replicate this bug. Any one else experienceed this?

Note: See HelpUser/Tickets for help on using tickets.