-
Notifications
You must be signed in to change notification settings - Fork 346
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
Set path_style for S3 bucket name with dots #239
Conversation
+1 on this Not sure if this is only AWS specific or if other providers have the same issue and configuration option, but I ended up just doing a simple override of the
|
@davidjrice any opinion for this pull request? I believed it's helpful for some users. |
What are the disadvantages of setting AFAIK, Fog crashes if there's any bucket with dots when trying to list all of them, so adding a guard to check the configured bucket is not a proper solution. It would be nice to have this fixed by defaulting this or just adding a configuration option. |
Hey @tosbourn, any chance to get this merged? I rebased the master changes, and also passed CI. |
Set path_style for S3 bucket name with dots * dlackty/path-style: Add spec for path_style config Use path_style for dots included bucket
I am unable currently to deploy to heroku because of this issue. I keep getting this error:
|
@slaskis You can temporarily workaround this issue by changing your Gemfile: gem "asset_sync", github: "dlackty/asset_sync", branch: "path-style" |
Thanks @dlackty! I actually went with another workaround, by setting |
closed in favor of #302 |
Recently I updated my fog bundled version and got errors when syncing assets. After digging to the codes, I found several discussions about S3 bucket name with dots included. Ref: fog/fog#2381
Adding
:path_style= > true
forfog_options
whenfog_directory
contains dots would fix this issue.This pul request closes #237.