Skip to content
New issue

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

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

Already on GitHub? # to your account

Incorrect url generated for fog storage + aws #2354

Closed
ransombriggs opened this issue Dec 14, 2018 · 3 comments
Closed

Incorrect url generated for fog storage + aws #2354

ransombriggs opened this issue Dec 14, 2018 · 3 comments

Comments

@ransombriggs
Copy link
Contributor

We are in the process of moving to carrierwave but have found an issue in url generation & fog when the bucket has a period in it like foo.bar. The problem is that carrierwave detects as a valid subdomain where as fog does not. I tested using the https://foo.bar.s3.amazonaws.com/ style url that carrierwave constructs but when I request it I get a certificate error because of the multiple nestings of domains causing the cert to not match.

curl: (51) SSL: certificate subject name (*.s3.amazonaws.com) does not match target host name 'foo.bar.s3.amazonaws.com'

I can file a pull request for this and fix in either one of two ways, either I could add the extra condition like fog does, or I could add a fog option to force the generation to pass to fog. Let me know what you think and I can put something together.

@ransombriggs
Copy link
Contributor Author

I wrote a monkey patch in my project to get this working and I think the better way would be to add the extra conditional to avoid the extra network calls, will work on a PR next week.

@ransombriggs
Copy link
Contributor Author

I finished our transition to carrierwave so I went ahead and filed a PR for this bug.

@mshibuya
Copy link
Member

Fixed by #2359.

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

No branches or pull requests

2 participants