Uploaded image for project: 'Couchbase Lite'
  1. Couchbase Lite
  2. CBL-165

[Mercury][Android][2.7.0-91] replication failed due to unauthorized 401 error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.6.0
    • 2.6.0, 2.7.0
    • Java-Android
    • Security Level: Public
    • None

    Description

      Android cobalt weekly run found some test cases failed with 10401 'Unauthorized' error, this issue starts with Android version 2.6.0-142. Failure does not apply on .Net or iOS platforms, looks Android specific. Involved test cases are: 

      test_mask_password_in_logs[auto-password]
      test_mask_password_in_logs[auto password]
      test_mask_password_in_logs[validpassword]
      test_replication_configuration_with_pull_replication[basic-None]
      test_replication_configuration_with_push_replication[basic-None]
      test_replication_configuration_with_filtered_doc_ids
      test_replication_multipleChannels_withFilteredDocIds
      test_CBL_SG_replication_with_rev_messages[sync_gateway_rev_cache_size5-purge]

      jenkins job link:

      http://uberjenkins.sc.couchbase.com:8080/job/Android-Listener-TestServer-Functional-tests/1482/testReport/

      http://uberjenkins.sc.couchbase.com:8080/job/Android-Listener-TestServer-Functional-tests/1481/testReport/

      http://uberjenkins.sc.couchbase.com:8080/job/Android-Listener-TestServer-Functional-tests/1482/testReport/testsuites.CBLTester.CBL_Functional_tests.TestSetup_FunctionalTests/test_replication/test_replication_configuration_with_pull_replication_basic_None_/

       

      One of reproducing sample steps are (SGW w/o delta-sync, w/o xattrs, sg-ssl=true, no-conflict=true):
      1. Create CBL DB and create bulk doc in CBL
      2. Configure replication to Sg with basic authentication
      3. Replicate docs to SG => replication failed with 401 error.
       
      error message about 401 issue like below, attach logs:

      2019-07-13T04:43:30.293Z [INF] HTTP+: #012: --> 201 (7.8 ms)
      2019-07-13T04:43:30.294Z [INF] Cache: Received #11 after 1ms ("sg_doc_9" / "1-728debc1502258027ee1d64c619cf0a8")
      2019-07-13T04:43:30.294Z [DBG] Cache+: Pruned 0 entries from channel "ABC"
      2019-07-13T04:43:30.294Z [DBG] Cache+: Pruned 0 entries from channel "*"
      2019-07-13T04:43:30.294Z [INF] Cache: #11 ==> channels {*, ABC}
      2019-07-13T04:43:30.294Z [DBG] Changes+: Notifying that "travel-sample" changed (keys="{*, ABC}") count=13
      2019-07-13T04:43:30.335Z [INF] HTTP: #013: GET /db/_blipsync (as GUEST)
      2019-07-13T04:43:30.335Z [ERR] 401 Login required – rest.(*handler).writeError() at handler.go:690
      2019-07-13T04:43:30.335Z [INF] HTTP: #013: --> 401 Login required (0.7 ms)

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty