Details
-
Bug
-
Resolution: Fixed
-
Major
-
2.1.3
-
Security Level: Public
-
None
-
CBG Sprint 18
-
3
Description
When attempting to add a document through sync gateway when a non-imported document with a matching ID already exists in Couchbase Server a panic occurs. Sync Gateway recovers from this panic and continues to operate, however, this should be fixed and instead return a document conflict error.
Reproduction steps:
- Start an SG instance with import disabled and connect to CB Server.
- Create a document in Couchbase Server, eg. ID 'test'.
- Attempt to PUT a document via Sync Gateway with ID 'test'.
- Sync Gateway will fail to respond to the PUT request and will panic.