-
Feature Request
-
Resolution: Done
-
Major
-
None
-
None
The AeroGear Push cartridge on OpenShift performs a redirect (302) to https when the URLs are being accessed w/out SSL.
Looks like the Android registration library is causing an exception in that case:
02-16 15:51:30.899: E/HttpRestProvider(21213): Error on POST of http://SERVER.rhcloud.com/rest/registry/device 02-16 15:51:30.899: E/HttpRestProvider(21213): java.io.IOException: BufferedInputStream is closed 02-16 15:51:30.899: E/HttpRestProvider(21213): at java.io.BufferedInputStream.streamClosed(BufferedInputStream.java:118) 02-16 15:51:30.899: E/HttpRestProvider(21213): at java.io.BufferedInputStream.read(BufferedInputStream.java:279) 02-16 15:51:30.899: E/HttpRestProvider(21213): at java.io.InputStream.read(InputStream.java:163) 02-16 15:51:30.899: E/HttpRestProvider(21213): at org.jboss.aerogear.android.impl.http.HttpRestProvider.readBytes(HttpRestProvider.java:310) 02-16 15:51:30.899: E/HttpRestProvider(21213): at org.jboss.aerogear.android.impl.http.HttpRestProvider.getHeaderAndBody(HttpRestProvider.java:274) 02-16 15:51:30.899: E/HttpRestProvider(21213): at org.jboss.aerogear.android.impl.http.HttpRestProvider.post(HttpRestProvider.java:154) 02-16 15:51:30.899: E/HttpRestProvider(21213): at org.jboss.aerogear.android.impl.http.HttpRestProvider.post(HttpRestProvider.java:140) 02-16 15:51:30.899: E/HttpRestProvider(21213): at org.jboss.aerogear.android.impl.http.HttpRestProviderForPush.post(HttpRestProviderForPush.java:55) 02-16 15:51:30.899: E/HttpRestProvider(21213): at org.jboss.aerogear.android.impl.unifiedpush.AeroGearGCMPushRegistrar$3.doInBackground(AeroGearGCMPushRegistrar.java:141) 02-16 15:51:30.899: E/HttpRestProvider(21213): at org.jboss.aerogear.android.impl.unifiedpush.AeroGearGCMPushRegistrar$3.doInBackground(AeroGearGCMPushRegistrar.java:90) 02-16 15:51:30.899: E/HttpRestProvider(21213): at android.os.AsyncTask$2.call(AsyncTask.java:287) 02-16 15:51:30.899: E/HttpRestProvider(21213): at java.util.concurrent.FutureTask.run(FutureTask.java:234) 02-16 15:51:30.899: E/HttpRestProvider(21213): at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230) 02-16 15:51:30.899: E/HttpRestProvider(21213): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080) 02-16 15:51:30.899: E/HttpRestProvider(21213): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573) 02-16 15:51:30.899: E/HttpRestProvider(21213): at java.lang.Thread.run(Thread.java:838)
- blocks
-
AEROGEAR-7037 Android: Incorrect credentials make the app try to register forever
- Resolved