[
https://issues.apache.org/jira/browse/JCLOUDS-1297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16011021#comment-16011021
]
ASF subversion and git services commented on JCLOUDS-1297:
----------------------------------------------------------
Commit a299a6c1fdfff5669d2f9bc830e6b2df96bec1a8 in jclouds's branch
refs/heads/master from ui4j
[ https://git-wip-us.apache.org/repos/asf?p=jclouds.git;h=a299a6c ]
JCLOUDS-1297: Fix uploadId format for non-English locale
Add Locale.ENGLISH parameter to String.format(...) to generate same uploadId
for different locales.
> 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)