Comments (11)
@jpkrohling so you have certificate for one domain but use it for another <photos.kroehling.de> != <app.cascaio.com>
? Not sure why should it be fixed if it will cause security vulnerability.
from mobile-android.
@httpdispatch No, that would be wrong :-) I have an Apache server with one IP, serving several websites, all of them with SSL. For HTTP clients without support for SNI, the wrong certificate is sent to the client, which happens to be "app.cascaio.com" in this case. For clients with SNI, the client send the hostname on the first request, and the HTTP server sends the proper certificate (photos.kroehling.de , in this case). You can check that by opening https://photos.kroehling.de in a browser: for all current browsers, you'll see the proper certificate, for old browsers, you'd be served with a different one.
The latest version of Apache's HttpClient (4.3) have support for this, but the version from Android doesn't. The link I've sent with the blog post on Android's Developer blog has some more information on that, but basically, Android's UrlConnection (and HttpUrlConnection) also supports SNI.
from mobile-android.
@jpkrohling ok, i will investigate this more in such case. Once i will be able to fix it, i will need your help to test the build.
from mobile-android.
@httpdispatch Sure, no problem. I actually have played with the code yesterday, and I think I have a proposal patch, but I'm unable to build the APKs due to some other reasons. Is there a document somewhere with instructions on how to setup a developer environment?
from mobile-android.
On the main page you can find some information.
You need to fetch project source including submodule and create library projects for each used submodule
I've started to review problem and seems that there are no simple solution for it. There are 2 options: first you migrate to own port on your hosting, second we migrate all the api calls to HttpUrlConnection. Last option is a very complex update. I need to find some replacement for apache httpclient where i can use post requests, upload files, track upload progress and sign requests with OAuth credentials.
from mobile-android.
Indeed, there's no simple solution for this :-) What I've done in the past, when I really needed to use HttpClient from Apache was to repackage it under a different package name and ship it with the application. This increases the size of the APK, but it's a "solution". Of course, the proper one is to use HttpUrlConnection, but as you found out, this is a low level class and you'd need to perform pretty much everything manually.
As I mentioned, I have a proposed patch, mostly around the ApiBase.execute method, but I have to get my environment working before I submit it. Unfortunately, the information on the main README file is not very comprehensive. I'll try this night to get it working as per your instructions.
from mobile-android.
I hope to prepare eclipse environment setup instructions in few days so you can create your own build easily
from mobile-android.
@jpkrohling i've prepared instructions for building an app. You can find it here https://github.com/photo/mobile-android/wiki/Eclipse-build-environment-setup
from mobile-android.
Thanks a lot @httpdispatch for the wiki.
from mobile-android.
@jpkrohling could you test the app and see if your changes would solve the problem, please? Thanks a lot.
from mobile-android.
+1
from mobile-android.
Related Issues (20)
- Feature: add system share menu option to the share menu
- IllegalStateException if to press home during sending tweet or facebook message
- Use sharing token even for public images HOT 1
- New Aviary Android SDK V3.0 migration
- Fix problems with upload HOT 4
- Crash on use of PinchZoom HOT 5
- Notifications should use Android Guidelines HOT 3
- Multi-site login
- Force album on upload for collaborators HOT 1
- Remove tags from navigation
- Remove albums from navigation
- Display name of album in header when viewing an album.
- Default album in Gallery
- One notification
- Changes on Menu
- Enable user to download the image locally
- Gallery blank image issue HOT 1
- No photos using FakeAccountTroveboxApi HOT 3
- Alternate Download HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mobile-android.