floccusaddon / floccusaddon/floccus

Import does not have sync enables

Open
#2,129 3 comments 2 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
8.5k
Forks
327
Avg merge
3d 14h
Merged PRs (30d)
2

Description

### Which version of floccus are you using?

5.8.0

### How many bookmarks do you have, roughly?

50

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

No

### Sync method

WebDAV

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

Chrome 143.0.7499.42

### 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)

The WebDAV server is a custom local NextCloud server, and the save of the bookmarks.html file is correctly working.

### Describe the Bug

When a profile is exported and then imported, the Auto-sync and time-based sync settings are turned off.

**Before exporting**
Image

**After importing the same exported profile**
Image

### Expected Behavior

I expect that the export and import to keep all the settings as configured, specially Auto-sync and Time-based sync settings.

### To Reproduce

I create a profile with default config, and with Auto-sync and Time-based sync both ENABLED.
Image

I export the profile in its json file that looks like this
```
[
{
"enabled": true,
"localRoot": "1",
"strategy": "default",
"syncInterval": 5,
"nestedSync": true,
"failsafe": true,
"allowNetwork": false,
"label": "test-label",
"errorCount": 0,
"clickCountEnabled": false,
"type": "webdav",
"url": "https://local.drive.lab/remote.php/dav/files/username",
"username": "username",
"password": "password",
"bookmark_file": "bookmarks.html",
"bookmark_file_type": "html",
"includeCredentials": false,
"allowRedirects": false,
"passphrase": "",
"syncIntervalEnabled": true,
"syncing": false,
"scheduled": false,
"error": null,
"lastSync": 1765813698357
}
]
```

When I import the above json file, both the Auto-sync and Time-based sync are toggled off.

Image

### Debug log provided

- [ ] I have provided a debug log file

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the profile export and import using the JSON shown in the issue, then trace the profile import path to see why enabled and syncIntervalEnabled are not retained. The work is done when importing an exported profile preserves Auto-sync and Time-based sync settings, with the behavior verified against the reported WebDAV configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.