Hi,

I appear to be having some sort of issue getting a blob from a blob store
when I am on a proxy. I am actually able to put blobs onto the blob store
no problem, but I am unable to read them.

When I call blobStore.getBlob("location","name") I get back:

Execution exception[[HttpResponseException: request: GET
https://location.s3.amazonaws.com/name HTTP/1.1 failed with response:
HTTP/1.1 400 Invalid URI

(location and name being examples, not what I actually use)
This only happens when using a proxy. If I do not use a proxy, then I
encounter no issues at all and everything works great. Unfortunately my
work requires that I use a proxy.

Here is the code I am using:  (I have changed some fields to examples
instead of true values)
        Properties overrides = new Properties();
        overrides.setProperty(Constants.PROPERTY_PROXY_HOST,
"proxyaddress");
        overrides.setProperty(Constants.PROPERTY_PROXY_PORT, "proxyport");
        BlobStoreContext context =
                ContextBuilder.newBuilder("aws-s3")
                .credentials("creds", "credentials")
                .overrides(overrides)
                .buildView(AWSS3BlobStoreContext.class);
         //This line works without any problems, and I am able to see a
list s3 buckets available to me
         BlobStore blobStore = context.getBlobStore();

        //This is the line that causes the exception
        Blob zipFile = blobStore.getBlob("location", "name");

Does anyone have any idea what I am doing wrong? I am hoping maybe I have
configured the blob store context wrong. I have used the AWS SDK directly
in the past using the proxy and did not encounter any problems.

Thanks,

-Sean

Reply via email to