konklone / campyre

RETIRED: A Campfire client for Android.
https://play.google.com/store/apps/details?id=campyre.android
BSD 3-Clause "New" or "Revised" License
68 stars 22 forks source link

Spaces in domain cause crash #112

Closed konklone closed 13 years ago

konklone commented 14 years ago

We filter out leading and trailing spaces - filter out internal spaces as well, or recognize it as invalid first.

java.lang.RuntimeException: An error occured while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java:200) at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273) at java.util.concurrent.FutureTask.setException(FutureTask.java:124) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307) at java.util.concurrent.FutureTask.run(FutureTask.java:137) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561) at java.lang.Thread.run(Thread.java:1096) Caused by: java.lang.IllegalArgumentException: Illegal character in authority at index 12: http://First giving.campfirenow.com/users/me.json at java.net.URI.create(URI.java:970) at org.apache.http.client.methods.HttpGet.(HttpGet.java:75) at campyre.java.CampfireRequest.get(CampfireRequest.java:57) at campyre.java.Campfire.login(Campfire.java:30) at campyre.android.Login$LoginTask.doInBackground(Login.java:199) at campyre.android.Login$LoginTask.doInBackground(Login.java:1) at android.os.AsyncTask$2.call(AsyncTask.java:185) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)