Özhan Düz created JCLOUDS-1297:
----------------------------------

             Summary: Swift Multipart uploadId Format Problem
                 Key: JCLOUDS-1297
                 URL: https://issues.apache.org/jira/browse/JCLOUDS-1297
             Project: jclouds
          Issue Type: Bug
          Components: jclouds-blobstore
    Affects Versions: 2.0.1
         Environment: Java 8
            Reporter: Özhan Düz
            Priority: Minor


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.

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

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



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to