You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Folder defaults are not applied consistently on config migrations / new folders #6748
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
lib/config: Apply defaults to folders/devices on config load (ref syn…
lib/config: Apply defaults to folders/devices on config load (ref syn…
imsodin commentedon Dec 19, 2020
Relevant information on configuration, mostly but not only defaults: https://github.com/syncthing/syncthing/wiki/Configuration