Skip to content

Folder defaults are not applied consistently on config migrations / new folders #6748

Open

Description

@calmh

We set some defaults in the FolderConfiguration struct definition. These are effectively only used for the initial "Sync" folder, because we only call SetDefaults in NewConfig and not when deserializing. The defaults for new folders are set in syncthingController.js. Defaults for new config options are never applied to existing folders.

Suggested cleanup:

  • Some hack to make sure we apply defaults on unmarshalling a config from XML/JSON.
  • A new REST API call .../folder-defaults that returns the default values to use to the GUI. Currently this can be just the compiled in defaults, but in the future one could imagine this being the result of compiled in defaults + user changeable ones...

Activity

  1. added
    bug
    needs-triage
    on Jun 16, 2020
  2. removed
    needs-triage
    on Aug 31, 2020
  3. imsodin commented on Dec 19, 2020

    @imsodin
    Member
  4. added theissue type on May 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions