mirror of https://github.com/apache/jclouds.git
remove blob uri from transient blobstore
container may not be valid hostnames and the current blob uri code can fail. there isn't really a way to use uri for transient blobstore anyway, and removing it is the easier option. for reference, filesystem blobstore also doesn't do this
This commit is contained in:
parent
180a61e85e
commit
1ccdae46fa
|
@ -18,7 +18,6 @@ package org.jclouds.blobstore;
|
|||
|
||||
import static com.google.common.base.Preconditions.checkNotNull;
|
||||
import static com.google.common.io.BaseEncoding.base16;
|
||||
import static org.jclouds.http.Uris.uriBuilder;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Date;
|
||||
|
@ -234,8 +233,6 @@ public class TransientStorageStrategy implements LocalStorageStrategy {
|
|||
Blob blob = blobFactory.create(BlobStoreUtils.copy(in.getMetadata()));
|
||||
blob.setPayload(payload);
|
||||
blob.getMetadata().setContainer(containerName);
|
||||
blob.getMetadata().setUri(
|
||||
uriBuilder(new StringBuilder("mem://").append(containerName)).path(in.getMetadata().getName()).build());
|
||||
blob.getMetadata().setLastModified(new Date());
|
||||
blob.getMetadata().setSize((long) input.length);
|
||||
String eTag = base16().lowerCase().encode(contentMd5.asBytes());
|
||||
|
|
Loading…
Reference in New Issue