Broken sync when Data/Login is null #959

Closed
opened 2025-11-26 22:35:25 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @champtar on GitHub (Mar 21, 2020).

Describe the Bug

Using bitwarden_rs server, Firefox/Chrome extensions, Android mobile app.
My wife created a new entry that somehow ended up with null login/pass, everything continued to work except the Mobile app that was failing to sync.

Steps To Reproduce

I don't know how to reproduce it, but here is an extract of the response to /api/sync that the mobile app was getting:

{
  "Ciphers": [
...
    {
      "Attachments": [],
      "CollectionIds": [],
      "Data": null,
      "Edit": true,
      "Favorite": false,
      "Fields": null,
      "FolderId": null,
      "Id": "e3c473c5-a001-48d6-b8a6-b9225a604725",
      "Login": null,
      "Name": "<redacted / encrypted>",
      "Notes": null,
      "Object": "cipher",
      "OrganizationId": null,
      "OrganizationUseTotp": true,
      "PasswordHistory": null,
      "RevisionDate": "2020-03-13T17:05:42.535886Z",
      "Type": 1
    },
...

And here the same item when using the webui json export

{
  "folders": [
...
  ],
  "items": [
...
    {
      "id": "e3c473c5-a001-48d6-b8a6-b9225a604725",
      "organizationId": null,
      "folderId": null,
      "type": 1,
      "name": "<redacted>",
      "notes": null,
      "favorite": false,
      "login": {
        "username": null,
        "password": null,
        "totp": null
      },
      "collectionIds": null
    },
...

The broken entry was created using the Firefox extension.

Expected Result

Mobile App sync work

Actual Result

I could login, get a response from the server, but then the Android app was just saying "Syncing failed", with nothing in adb logcat :(
Removing this item fixed the sync issue.
This was the only item with "Data": null and "Login": null

Screenshots or Videos

None

Environment

  • Device: Pixel 3
  • Operating system: Android 10
  • Build Version: 2.3.1 (2257)
  • Is this a Beta release? N

Additional Context

I understand that bitwarden_rs is not the official server, but I see multiple report of broken sync, if this can fix it it's worth sharing

Originally created by @champtar on GitHub (Mar 21, 2020). ## Describe the Bug Using bitwarden_rs server, Firefox/Chrome extensions, Android mobile app. My wife created a new entry that somehow ended up with null login/pass, everything continued to work except the Mobile app that was failing to sync. ## Steps To Reproduce I don't know how to reproduce it, but here is an extract of the response to `/api/sync` that the mobile app was getting: ``` { "Ciphers": [ ... { "Attachments": [], "CollectionIds": [], "Data": null, "Edit": true, "Favorite": false, "Fields": null, "FolderId": null, "Id": "e3c473c5-a001-48d6-b8a6-b9225a604725", "Login": null, "Name": "<redacted / encrypted>", "Notes": null, "Object": "cipher", "OrganizationId": null, "OrganizationUseTotp": true, "PasswordHistory": null, "RevisionDate": "2020-03-13T17:05:42.535886Z", "Type": 1 }, ... ``` And here the same item when using the webui json export ``` { "folders": [ ... ], "items": [ ... { "id": "e3c473c5-a001-48d6-b8a6-b9225a604725", "organizationId": null, "folderId": null, "type": 1, "name": "<redacted>", "notes": null, "favorite": false, "login": { "username": null, "password": null, "totp": null }, "collectionIds": null }, ... ``` The broken entry was created using the Firefox extension. ## Expected Result Mobile App sync work ## Actual Result I could login, get a response from the server, but then the Android app was just saying "Syncing failed", with nothing in adb logcat :( Removing this item fixed the sync issue. This was the only item with `"Data": null` and `"Login": null` ## Screenshots or Videos None ## Environment - Device: Pixel 3 - Operating system: Android 10 - Build Version: 2.3.1 (2257) - Is this a Beta release? N ## Additional Context I understand that bitwarden_rs is not the official server, but I see multiple report of broken sync, if this can fix it it's worth sharing
Author
Owner

@kspearrin commented on GitHub (Mar 22, 2020):

Data should not be null. I would bring this up with the bitwarden_rs people.

@kspearrin commented on GitHub (Mar 22, 2020): Data should not be null. I would bring this up with the bitwarden_rs people.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/android#959