Skip to content

Android app 5.7.0 cannot sync on fresh install breaks xbel file #2085

@c3piio

Description

@c3piio

Which version of floccus are you using?

5.7.0

How many bookmarks do you have, roughly?

2000+

Are you using other means to sync bookmarks in parallel to floccus?

No

Sync method

Google Drive

Which browser are you using? In case you are using the phone App, specify the Android or iOS version and device please.

Edge

Which version of Nextcloud Bookmarks are you using? (if relevant)

No response

Which version of Nextcloud? (if relevant)

No response

What kind of WebDAV server are you using? (if relevant)

No response

Describe the Bug

I use floccus on Edge, syncing to Google Drive, and it works fine. I have two Android devices. Device 1 has had floccus for a long time. It was running version 5.7.0 and was able to sync.

On Device 2 I downloaded floccus 5.7.0 from Google Play. I connected to Google Drive, chose the correct bookmarks.xbel file, and waited for sync. During sync, the app crashed. I started the app back up. Restarted sync, and after a long time, it completed but showed no bookmarks. On Edge, when trying to sync, it warned me other devices are trying to sync. On device 2, repeated syncing yielded no bookmarks. I then uninstalled version 5.7.0 and installed 5.5.6 on device 2. Tried to sync again but it warned that other devices are waiting to sync.

I deleted the xbel file in google drive and re-synced it via Edge (floccus 5.6.0 in Edge). The sync went fine. On devive 2 with floccus 5.5.6 installed, I re-did the connection and synced. Bookmarks now showed up.

Finally, on device 1 I re-installed floccus Android 5.7.0 and tried to sync, since it was now working with 5.5.6 on device 2. However, when device 1 with 5.7.0 connected to the xbel file, the same issue appeared, i.e. sync did not work, app crashed, and now both Edge and device 2 with version 5.5.6 gave a warning that other devices are attempting to sync.

Conclusion: Version 5.7.0 of floccus for Android, when connecting from scratch to Google Drive, somehow corrupts the syncing process, causing all other instances of floccus who are trying to sync the same bookmarks.xbel file, to show the warning that other devices are syncing. Deleting the bookmarks.xbel and using Android app 5.5.6 fixes the problem. If 5.7.0 is allowed to connect to the bookmarks.xbel file on a fresh Android install, it corrupts syncing for all other connected devices.

Expected Behavior

Sync to work

To Reproduce

  • Fresh install Android apk version 5.7.0.
  • On Edge or Chrome v 5.6.0, sync bookmarks to google drive with default settings
  • Connect android app to google drive to sync
  • Watch sync fail
  • Try to sync on Edge, see the warning that sync is in process on other apps
  • Wait 24 hours, sync still didn't work on android v 5.7.0 and warning in Edge app persists

Important point: Accessing with a fresh install of 5.5.6 works and does not break the xbel file. Subsequent updating to 5.7.0 might work since device 1 was running 5.7.0 after updating. I haven't tested this since now it works on 5.5.6. But it is clear that allowing 5.7.0 to connect on a fresh install to the xbel permanently breaks the xbel sync, and the only way to fix it is to delete the bookmarks.xbel, re-sync from Chrome/Edge, and use a fresh install of 5.5.6 APK, sync successfully, and possibly (haven't tested) update later.

Debug log provided

  • I have provided a debug log file

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions