dhanji / sitebricks

Sitebricks: A fast platform for web development.
http://sitebricks.org
Apache License 2.0
248 stars 63 forks source link

WebClient does not support HTTPS in GAE #49

Open tomacla opened 12 years ago

tomacla commented 12 years ago

The SiteBricks webclient does not support HTTPS connection. A ClasCastException is thrown.

dhanji commented 12 years ago

Can you paste your stack trace please? I have SB clients running fine in production that call HTTPS URLs. (Also which version are you using? Maybe there was a regression?)

tomacla commented 11 years ago

Hello,

In fact it is due to GAE environnement :

Error injecting constructor, java.lang.ClassCastException: com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler$Connection cannot be cast to javax.net.ssl.HttpsURLConnection

I'm using 0.8.7 (lastest release). I haven't tried to build from source.

dhanji commented 11 years ago

Yea =(

After one of our contributors migrated the Web Client to AHC, all that broke. Fixing GAE is on the roadmap for 0.8.8. In the meantime if you want to contribute the fix (just use HttpURLConnection instead of AHC underneath) that would be fantastic.

I also want to support the GAE async api if possible.

tomacla commented 11 years ago

Hello Dhanji,

If I find a bit of time at home after work, I'll do that :)