Details
-
Bug
-
Resolution: Fixed
-
Major
-
2.5.0, 2.6.0
-
Security Level: Public
-
CBG Sprint 25, CBG Sprint 26
-
5
Description
Steps to reproduce:
- Start sync gateway with delta sync on , make sure no conflicts is not enabled (allow_conflicts=true)
- Create docs
- update docs few times
- Create a conflict PUT http://192.168.33.11:4984/db/sg_docs_0?new_edits=false
Expected :
1. Conflict should be successful
Actual:
Fails with 400 error
Error : HTTP: #2006: --> 400 Missing digest in stub attachment "e6f633e3-5ea1-4e08-82c6-1b0df52a8a8b.png" (2.7 ms)
SGW logs:
SGW config:
{
|
"interface":":4984", |
"adminInterface": "0.0.0.0:4985", |
"maxIncomingConnections": 0, |
"maxCouchbaseConnections": 16, |
"maxFileDescriptors": 90000, |
"compressResponses": false, |
"logging": {"debug": {"enabled": true} }, |
"databases":{ |
"db":{ |
"import_docs": "continuous", |
"enable_shared_bucket_access": true, |
"num_index_replicas": 0, |
"username": "data-bucket", |
"password": "password", |
"delta_sync": { "enabled": true}, |
"rev_cache_size": 1000, |
"server":"http://192.168.33.10:8091", |
"bucket":"data-bucket" |
}
|
}
|
}
|
NOTE: It fails only with delta sync on
Test is : test_migrate_conflicts_to_noConflicts