Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using different domain and force PathStyleAccess. #18

Open
timgluz opened this issue Mar 16, 2013 · 2 comments
Open

using different domain and force PathStyleAccess. #18

timgluz opened this issue Mar 16, 2013 · 2 comments

Comments

@timgluz
Copy link

timgluz commented Mar 16, 2013

I'm using fake-s3 and openstack as my s3 providers & i'm currently writing patch to add function to change default domain of s3 server.

Changing host is simple just (.setEndpoint client "http://new-host") and works well.

But i'm little stuck. How to change PathStyleAccess?

I'm not very familiar with Java and it's documentation is very confusing. Changing PathStyleAccess is important because none of my s3 server dont support accessing buckets as virtualhost .s3.localhost.
Here is documentation: http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/s3/S3ClientOptions.html

@timgluz
Copy link
Author

timgluz commented Mar 16, 2013

Is it possible that clj-aws-s3 uses very old version, that just dont support PathStyleAccess? Here is versioninfo for clj-aws-s3: http://www.versioneye.com/user/projects/51447cdb7f984f0002002ec2

@timgluz
Copy link
Author

timgluz commented Mar 16, 2013

Well, i updated aws-sdk-java to latest version, then it automatically fallbacks to pathstyle when first request fails.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant