shindig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Heute <the...@gmail.com>
Subject Missing scheme in rewritten CSS
Date Thu, 05 Jul 2012 21:02:03 GMT
Hello, I may have found a bug, let me explain

My proxied gadgets are rewritten and things like:

background: url('foo.png')
is rewritten to
background: url('//localhost:8080/...

What's wrong here is that the scheme is gone and that's not correct. 
Looks like web browsers are smart enough to try HTTP but when it comes 
to HTTPS then it doesn't work anymore.

I think that I nailed down the issue to be in:
http://svn.apache.org/repos/asf/shindig/trunk/java/gadgets/src/main/java/org/apache/shindig/gadgets/uri/DefaultProxyUriManager.java
makeProxiedUri method

As you can see the authority is set but not the scheme. And when the URI 
is built it will add the "//" 
http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/main/java/org/apache/shindig/common/uri/Uri.java

I was wondering if that's a known issue as I didn't find anything

Thomas


Mime
View raw message