Uploaded image for project: 'jclouds'
  1. jclouds
  2. JCLOUDS-992

jclouds improperly handles "application/directory" blobs during LIST

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.9.1, 2.0.0
    • 2.0.0
    • jclouds-blobstore
    • None

    Description

      To support directory-style interaction with blob stores, jclouds treats application/directory blobs as "special" during LIST. There are specifically two ways this is manifested:
      1. the blob storage type is set to RelativePath. This is problematic, as RelativePath is also used to represent CommonPrefixes – the prefix of common names up to the delimiter character (or string) if the delimiter is set. This makes it impossible for an application to discern whether there are actually relative paths in the listing or whether these are just directory objects
      2. the returned name does not contain the last character (the separator suffix). jclouds has a list of common suffixes that are stripped off in such a way: _$folder, /, and \

      These two issues combined present an interface that may be unexpected to applications. Instead of jclouds implementing some of this functionality, I think jclouds should push to the end users of the library to implement it. I'm not sure how many people do rely on this, however, and it's not clear what the impact would be of fixing it. I will submit a PR to address this issue in all providers that does the following:
      1. do not mutate blob names
      2. do not list directory blobs as RelativePaths

      Attachments

        Issue Links

          Activity

            People

              timuralp Timur Alperovich
              timuralp Timur Alperovich
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: