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

S3 multi-part uploads don't honor content-type & content-disposition

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.6.1
    • 1.6.2, 1.7.0
    • jclouds-blobstore
    • None

    Description

      Sample headers from a 4KB file uploaded using jclouds:

      HTTP/1.1 200 OK
      x-amz-id-2: k4MQk9+abyU9SPDs1xM0wuH/aZOAN2XZXEwk70APErzgVZkg1QpSmkJ8uXhnDq5P
      x-amz-request-id: F86A27E1D90E3CFD
      Date: Wed, 10 Jul 2013 05:20:51 GMT
      Content-Disposition: inline; filename=IMG_0000.MOV
      Last-Modified: Wed, 10 Jul 2013 05:20:40 GMT
      ETag: "620f0b67a91f7f74151bc5be745b7110" 
      Accept-Ranges: bytes
      Content-Type: video/quicktime
      Content-Length: 4096
      Server: AmazonS3
      

      Note the content-disposition and content-type flags. Now consider the headers from a similarly named 1-GB file uploaded using multi-part upload:

      HTTP/1.1 200 OK
      x-amz-id-2: Hox2BcBsDrwaNMSohRYM7OKZJdO+6+S2EC78v6hKFKsN/rnKLiaJ337Bd9XY22mb
      x-amz-request-id: C693A5FAA0228346
      Date: Wed, 10 Jul 2013 05:06:22 GMT
      Last-Modified: Tue, 09 Jul 2013 00:28:41 GMT
      ETag: "3ea49a0c05da9be44d9915f1bbdb259e-33" 
      Accept-Ranges: bytes
      Content-Type: binary/octet-stream
      Content-Length: 1099199149
      Server: AmazonS3
      

      Note the absence of content-type and content-disposition.

      Attachments

        Activity

          People

            gaul Andrew Gaul
            diwaker Diwaker Gupta
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: