Losing _attachment when pushing an updated doc to SG

Description

Here is the scenario:

  1. Create a doc with a blob and save into a db.

  2. Push to SG.

  3. Get the same doc from db and update the doc with a key and string value (without changing blob).

  4. Push to SG again.

In step 4, the rev body doesn't include the _attachments as the result from the Wireshark here:

The problem of this behavior is that when pulling the doc back (e.g. to another database), the doc cannot be pulled. There is an error on SG side as follows:

Testing Platforms:
CBL-iOS 3.0.0 RC2
SG 2.8.3(12;e54a627) or SG 3.0.0(541;46803d1)

Activity

Show:

Thuan Nguyen September 6, 2022 at 8:51 PM

Verified on Android build 3.1.0-335 on weekly run. I don't see this issue.

Sridevi Saragadam June 7, 2022 at 6:46 PM

, added action item on mobile, . Once this CM ticket is done, you can close this ticket

Jay Vavachan February 23, 2022 at 7:08 AM

Assigning to , could you please close once the functional test is added / verified. 

Jay Vavachan February 23, 2022 at 7:02 AM

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Labels

Story Points

Components

Sprint

Fix versions

Affects versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created February 17, 2022 at 2:37 AM
Updated August 31, 2024 at 10:55 AM
Resolved February 23, 2022 at 7:03 AM
Instabug