Uploaded image for project: 'Lucee Development'
  1. LDEV-359

Lucee Cannot List Certain Types of S3 Directories: "File foo exists, but isn't a directory"

    Details

    • Type: Bug
    • Status: Deployed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 4.5.1.011
    • Fix Version/s: S3 0.9.4.105, 5.1.1.43
    • Labels:

      Description

      If you create a "directory" via the AWS web interface (as you might do before populating the directory with objects), a one-byte object results. It can be seen along with contained objects with:

      aws s3 ls s3://my.bucket.com/directory-created-by-aws-web-interface/
      

      If this object is present, it prevents the directory from being listed, seemingly because Lucee finds that "directory" object and thinks it's a file (which would explain the error message).

      One way to get the directory Lucee-listable is to delete the one-byte directory object with:

      aws s3 rm s3://my.bucket.com/directory-created-by-aws-web-interface/
      

      ...and the "directory's" contents are preserved.

      I haven't found a way to delete that object from Lucee, though (neither fileDelete() nor directoryDelete() seem to have any effect).

        Attachments

          Activity

            People

            • Assignee:
              michaeloffner Michael Offner
              Reporter:
              Jamie Jackson Jamie Jackson
            • Votes:
              4 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: