Uploaded image for project: 'AeroGear'
  1. AeroGear
  2. AEROGEAR-4124

HSTS issue with registration against OpenShift

    XMLWordPrintable

    Details

    • Type: Feature Request
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: push
    • Labels:

      Description

      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)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              mwessendorf Matthias Wessendorf
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: