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

Swift Multipart uploadId Format Problem

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.0.1
    • 2.1.0, 2.0.2
    • jclouds-blobstore
    • None
    • Java 8

    Description

      Generated UploadId is not unique for diffrent Locales.

      Locale French (includes comma):
      hello/slo/1494603748,474000/43/33554432

      Locale English (includes dot):
      hello/slo/1494603748.474000/43/33554432

      Could you please add Locale.ENGLISH param to String.format method call.

            String uploadId = String.format(Locale.ENGLISH, "%s/slo/%.6f/%s/%s", blobMetadata.getName(),
                    System.currentTimeMillis() / 1000.0, contentLength == null ? Long.valueOf(0) : contentLength,
                    partSize);
      

      https://github.com/jclouds/jclouds/blob/8649002e03314e3e4ebe436021e5db56c20500a5/apis/openstack-swift/src/main/java/org/jclouds/openstack/swift/v1/blobstore/RegionScopedSwiftBlobStore.java#L475

      Attachments

        Activity

          People

            gaul Andrew Gaul
            ozhan Özhan Düz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: