-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
upgrade from 1.3.1 to 2.0.0 breaks remote_x_url when coming from s3 #2415
Comments
I tested #2419 but unfortunately, it does not seem to fix this issue. I tried
but still getting Downgrading to 1.3.1 fixes the issue. My usage is something like this:
Hope that helps. |
@trangmei and I found that the URL from our other uploader is already encoded, but CarrierWave encodes it again when trying to download it. This causes the |
Thanks @fonglh, using Do you know which half of this changed between 1.3 and 2.0? I.e. did the |
I got same error and I realize that related: sporkmonger/addressable#196 |
Right, I just don't understand why Can't we just assume the url provided is valid? I think that's the responsibility of the caller to ensure that and eventually encode the url properly if needed. There is no reliable fix possible to https://github.com/carrierwaveuploader/carrierwave/blob/master/lib/carrierwave/downloader/base.rb |
+1 for assuming the URI provided is valid If it turns out we really want to encode in some cases because callers are depending on it, then it seems like the best check is whether |
I believe 3faf749 have fixed this, please try with the master. |
Something weird happens when doing
where template.document_url is an URL from another uploader (using s3, yes we are basically copying a file from an uploader to an other). We have a
could not download file: 400 Bad Request
error. The weird part is that when using a url from somewhere else (any image on the internet for example) there is no issue.What could go wrong?
The text was updated successfully, but these errors were encountered: