Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-55147

[TC][OBJSTORE] CompressUpload should not write files at the full path in the zip

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • master
    • master
    • tools
    • None
    • Untriaged
    • 0
    • Unknown

    Description

      What is the problem?

      Gvidas Razevicius noticed that when using the CompressUpload API with a prefix that was deeply nested that the zip file preserves this deep nesting. For example, given the following structure in S3

       + foo
         + bar
           + baz
             + 01.txt

      and asking to CompressUpload foo/bar we will have a zip file containing a single file 01.txt, but with the file hierarchy maintained, i.e. the file is located at foo/bar/baz. We would expect that it would maintain the hierarchy only up to the path prefix, i.e. baz/01.txt.

      What is the fix?
      When writing the file to the zip we should strip the original prefix off the key. This will give us the correct structure in the zip file.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Matt.Hall Matt Hall
            Matt.Hall Matt Hall
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty