Uploaded image for project: 'Couchbase Mobile'
  1. Couchbase Mobile
  2. CM-284

Android P security policy support

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Done
    • Major
    • None
    • None
    • CouchbaseLite

    Description

      On test environment setup, with couchbase servers and sync gateway machines are in data center, and Android devices have Android 9 (Pie) running on couchbase-corp network, HTTP is no longer allowed. Solution either to upgrade TestServer running on HTTPS or add network security config to bypass the security policy so websocket connection won't get closed by Android OS.

      https://developer.android.com/training/articles/security-config#base-config

      http://www.douevencode.com/articles/2018-07/cleartext-communication-not-permitted/

      https://better-coding.com/solved-android-cannot-send-data-to-the-server-cleartext-communication-to-not-permitted-by-network-security-policy/

       

      adb log captured –

      10-28 13:06:01.356 15332 15400 V CouchbaseLite/REPLICATOR: {Repl#9} Remote-DB ID 1 found for target <ws://172.23.106.104:4984/db/_blipsync>

      10-28 13:06:01.356 15332 15406 W CouchbaseLite/NETWORK: WebSocketListener.onFailure() response -> null (java.net.UnknownServiceException: CLEARTEXT communication to 172.23.106.104 not permitted by network security policy)

       

       

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              eunice.huang Eunice Huang (Inactive)
              eunice.huang Eunice Huang (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty