Giter VIP home page Giter VIP logo

Comments (8)

luqven avatar luqven commented on July 28, 2024 2

Hey @eboto,
PRs #68 is & #70 should address this issue. Thanks for reporting this, and please feel free to open this again if we missed anything.

from imgix-java.

paulstraw avatar paulstraw commented on July 28, 2024

Hmm, interesting. I'll take a look at this. Thanks for the thorough report, @eboto!

from imgix-java.

paulstraw avatar paulstraw commented on July 28, 2024

I haven't been able to replicate this problem @eboto. I set up a test image at https://paulstraw.imgix.net/colon:test/benice.jpg. When I use URLHelper#getURL providing either colon:test/benice.jpg or colon%3Atest/benice.jpg, the output matches the input. Would it be possible for you to provide a code snippet I can use to replicate this?

from imgix-java.

eboto avatar eboto commented on July 28, 2024

Hm ok maybe my steps to repro weren't great. Here are sample URLs that demonstrate it.

This is the scala code I used to generate the 2 signed URLs:

import com.imgix.URLBuilder
val queryParams = new java.util.HashMap[String, String]
queryParams.put("w", "50")
queryParams.put("h", "50")
queryParams.put("fit", "crop")
val url = "https://dfxmachina-dev.s3.amazonaws.com/suZ32nz0XTTOTlVaoGCr6752126306682600695.jpg?response-cache-control=max-age%3D86400&response-content-disposition=inline&x-amz-security-token=FQoDYXdzEGsaDFZn9nWWulUR50%2Fz7SLvAaZDerJCxxUiRiKAids6d%2B5OU%2BWaBzGyxnO0u47bB5aj8MfTtwQBTZPATN0v908sJ6R6aIXVRzhPO%2BMs%2FtDDZ7eFIJg%2BfL7d6%2F0%2B9o%2FsvR68TSTaubNjj%2FhTRMZCB0s3sFsl1klyxoQgmidm%2B53j0D9gSIfHaDW9lof7Z%2FbNSyuSjxx%2FbZxksA8hWaYna172XO027OG11u4PfW0ZQ%2BgeeYTPN9YaI15OKEfO0VRgGoYpEqET145PYXBw6Obr0gOtQSdRbsBFoifpHWuL3eSCESb3LjIomcJHVsJIfAg5D99zixaLzPVbD0unT7ir1XIqKOfUm7wF&AWSAccessKeyId=ASIAIRCLC2OECGERAPDQ&Expires=1468540799&Signature=8fUZk%2FoDu%2FWyQD2gTt6OrawZf%2BY%3D"
val builder = new URLBuilder("instrumental-dev.imgix.net")
builder.setUseHttps(true)
builder.setSignKey("signing key here")

println("v--- This URL is broken")
println(builder.createURL(url, queryParams))

println("v--- This URL works")
println(builder.createURL(java.net.URLEncoder.encode(url, "UTF-8"), queryParams))

from imgix-java.

paulstraw avatar paulstraw commented on July 28, 2024

Oh, I think I misunderstood before. This is happening when you try to generate a URL for a web proxy source, using the complete URL of the destination image, correct?

from imgix-java.

eboto avatar eboto commented on July 28, 2024

Yes that's right!

On Jul 14, 2016 5:06 PM, "Paul Straw" [email protected] wrote:

Oh, I think I misunderstood before. This is happening when you try to
generate a URL for a web proxy source, using the complete URL of the
destination image, correct?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#14 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAPReTCOBngPWk0C1teiAxwgOlbT8Vspks5qVs7mgaJpZM4JIdB5
.

from imgix-java.

paulstraw avatar paulstraw commented on July 28, 2024

@eboto, does usage like dd3905d (passing an unencoded URL) work as expected?

from imgix-java.

paulstraw avatar paulstraw commented on July 28, 2024

Hey @eboto, just wanted to check in if you'd had a chance to test my suggestion from the previous comment on July 20th!

from imgix-java.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.