Details
-
Bug
-
Resolution: Fixed
-
Major
-
2.6.0
-
Security Level: Public
-
iOS, emulator iPhone-8-plus
-
Critical
Description
Custom Conflict resolution is throwing exception for iOS app when trying to resolve conflict
Steps to reproduce the issue -
1. Checkout https://github.com/couchbaselabs/mobile-testkit.git
2. Checkout branch - feature/cbl-2.6-custom-conflict
3. Deploy iOS app using Xcode for build 2.6.0-137. (latestbuild app will not have CCR changes, so deploy locally built app )
4. Run the test -
pytest -rsx -s --skip-provisioning --timeout 3600 --liteserv-version=2.6.0-137 --liteserv-host=localhost --liteserv-port=8080 --no-conflicts --enable-file-logging --delta-sync --sync-gateway-version=2.5.0 --mode=cc --server-version=6.0.1-2037 --liteserv-platform=ios --create-db-per-test=cbl-test -k test_local_wins_custom_conflicts["pull"] testsuites/CBLTester/CBL_Functional_tests/TestSetup_FunctionalTests/test_custom_conflicts.py
CCR API code is available at - https://github.com/couchbaselabs/mobile-testkit/blob/feature/cbl-2.6-custom-conflict/CBLClient/Apps/CBLTestServer-iOS/CBLTestServer-iOS/Server/ReplicatorConfigurationRequestHandler.swift#L278