Details
-
Bug
-
Resolution: Fixed
-
Major
-
2.6.0, 2.7.0
-
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:
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)