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

can't set user-defined metadata for Azure with multipart blobs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 1.6.2
    • 1.9.0, 2.0.0
    • jclouds-blobstore
    • None
    • Windows 7, Azure and S3

    Description

      Try to set user defined meta data for Azure blob storage. No error setting meta data, but when I try to read them, they were not stored for the given blob.
      my code (small part of it):

         BlobStore blobStore = Context.getBlobStore();
         BlobBuilder builder = blobStore.blobBuilder("blob001");
         PayloadBlobBuilder  payload = builder.payload(data);       // data is InputStream
         payload.contentLength(datalen);
      
         Blob blob = payload.build();
         Map<String, String> keyValueMap = new HashMap<String, String>();
         keyValueMap.put("testmeta","12345");
      
         blob.getMetadata().setUserMetadata(keyValueMap);
         blobStore.putBlob("container001", blob, multipart() );
      

      For S3 it works.
      Is this a known problem with Azure, or something wrong with my code?

      Attachments

        Activity

          People

            gaul Andrew Gaul
            klausm Klaus Müller
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: