yDelouis / selfoss-android

Android application for Selfoss
MIT License
41 stars 9 forks source link

Certificate error ! #2

Closed gerundt closed 10 years ago

gerundt commented 10 years ago

I try your app, but it crash on my Moto G. :(

I add the servername, check "Require authentication", add username and password and get a "Certificate error !" question:

"Certificate of can't be verified. Trust it anyway?"

If I click "OK", the app crash. :((

Since it is a HTTP conection, I dont understand the question.

Greetings, Tim

yDelouis commented 10 years ago

If you use username and password, HTTPS is needed. So if your certificate is unknown, you may want to trust it anyway. Does it work on the second launch ? I fixed a crash which occurred on my phone too, only on the first launch.

gerundt commented 10 years ago

Mhhh, I have a shared webhoster without HTTPS but use the password function from Selfoss. How can I add username/password without select "Require authentication"? The app crash on every start. I must delete the account, to get it run again.

yDelouis commented 10 years ago

I could add a "Force HTTP" option. But this doesn't explain why the app crashes. Could you post the stacktrace from logcat ?

gerundt commented 10 years ago

I am a Android newbie. It is a real device and I have no Android dev tools installed. :(

I send a crash report, but I don't know if you get the report or Google?!

The Exception class name is "com.fasterxml.jackson.core.JsonParseException" and the source file JsonParser.java (line 1369).

The stack trace starts with a HttpMessageNotReadableException: Could not read JSON: Unexpected character ('<' (code 60)): expected a valid value...

yDelouis commented 10 years ago

Ok. Thanks, this will help me. I will add an option to choose between HTTP and HTTPS and will fix crashes if the server doesn't answer correctly.

yDelouis commented 10 years ago

I had the ability to choose between HTTP and HTTPS. I also tried to fix your crash (I saw the crash report from Google Play).

I'm closing this issue. Please, re-open it if the issue is still here.

gerundt commented 10 years ago

I got one crash (send to Google) after the first start after the configuration. But after the next start it works! :) Thanks for the fix!