Long file paths containing *.zip files fail to resolve during WebKitDirectoryReader.readEntries()

Issue #14964329 • Assigned to Shawn P.

Details

Created
Dec 5, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

Affects directories that satisfy both of these conditions:

  • Directory path of length between 247 and 259
  • Contain .zip file(s) with total path length greater than 260

All child files fail to be resolved when calling WebKitDirectoryReader.readEntries(function(entries)) during drag and drop of a folder that meets the above requirements. Drag and drop of individual non-zip files within the path of the same lengths, however, are resolved without issue.

Fiddle that demonstrates the issue: https://jsfiddle.net/7fj8q0fp/1/

Steps to reproduce:

  1. Attach addEventListener("drop", function (event)) to an element.
  2. Drop a folder with total path length of 250 that contains a .zip file with a name greater than 10 characters long ( for example: t123456789.zip )
  3. observe that the resulting DataTransfer object does not resolve any of the files within the dropped folder.
  4. drop those same files individually (not the parent folder) and observe that those files are now resolvable via the DataTransfer object, however the names (of zip files with total path greater than 260 only) are truncated the same way that windows file explorer will truncate long file paths in the address bar, despite other file-types of equal or greater length being fully expanded.

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “James M.”

      Changed Assigned To to “bbrinza”

      Changed Assigned To to “Sermet I.”

      Changed Assigned To to “Venkat K.”

      Changed Assigned To from “Venkat K.” to “Shawn P.”

    You need to sign in to your Microsoft account to add a comment.

    Sign in