Simon Frei and GitHub
240ae0c14f
lib/model: Unflake TestRequestReceiveEncryptedLocalNoSend ( #7167 )
2020-11-27 20:53:03 +01:00
Simon Frei and GitHub
a9764fc16c
lib: Skip deleted, locally changed on recv-enc folders ( fixes #7153 ) ( #7154 )
2020-11-27 11:26:36 +01:00
Simon Frei and GitHub
bf7d03d029
lib/model: Fix enc file size when pulling ( fixes #7152 ) ( #7155 )
2020-11-25 22:57:25 +01:00
Simon Frei and GitHub
54b50e3d52
lib/fs, lib/model: Cover more windowsyness sanitizing paths ( fixes #7075 ) ( #7158 )
2020-11-25 22:52:46 +01:00
André Colomb and GitHub
e6595c1ab9
lib/model: Simplify access to Folder and Device configuration. ( #7151 )
...
Use the accessor methods with a device argument instead of looking up
in a temporary map of the same data.
2020-11-24 22:20:50 +01:00
Simon Frei and GitHub
100ef10d84
lib/model: Don't send locally changed on recv-enc ( fixes #7137 ) ( #7147 )
2020-11-24 21:49:45 +01:00
Simon Frei and GitHub
db1f20603a
lib/model: Retain index info for new folders/devs (ref #7100 ) ( #7133 )
2020-11-20 15:53:13 +01:00
Simon Frei and GitHub
24af89c8e2
all: Refactor preparing configuration ( #7127 )
2020-11-20 14:21:54 +01:00
Simon Frei and GitHub
b43eccf2fe
lib/model: Never send unpaused folder without index info ( #7134 )
2020-11-20 14:13:50 +01:00
Simon Frei and GitHub
e11b309379
lib/model, lib/util: Replace IsComplete with NoRestartErr (ref #6947 ) ( #7126 )
2020-11-18 13:43:57 +01:00
Simon Frei and GitHub
2d3a535ced
lib/model: Handle cluster-config before folder start ( fixes #7122 ) ( #7123 )
2020-11-17 15:30:21 +01:00
Simon Frei and GitHub
9524b51708
all: Implement suture v4-api ( #6947 )
2020-11-17 13:19:04 +01:00
Simon Frei and GitHub
b8051fb37e
lib/model: Prevent test deadlock ( #7110 )
2020-11-10 12:32:07 +01:00
Simon Frei and GitHub
31559e908b
all: Add untrusted folders behind feature flag (ref #62 ) ( #7055 )
2020-11-09 15:33:32 +01:00
Simon Frei and GitHub
54643e86b5
lib/model: Fix locking when resending cluster-configs ( #7107 )
2020-11-09 14:05:21 +01:00
Simon Frei and GitHub
1f1729ba43
lib/model: Add done chan to track folder-lifetime ( fixes #6664 ) ( #7094 )
2020-11-09 09:05:48 +01:00
Simon Frei and GitHub
d4ce0dfd84
lib/model: Send indexes for newly shared folder ( fixes #7098 ) ( #7100 )
2020-11-09 08:58:46 +01:00
Simon Frei and GitHub
cc9ea9db89
lib/folder: Clear pull errors when nothing is needed anymore ( #7093 )
2020-11-06 14:22:20 +01:00
Simon Frei and GitHub
1c2be84e4e
lib/model: Pass device infos as struct ( fixes #7051 ) ( #7052 )
2020-10-22 13:05:31 +02:00
Simon Frei and GitHub
5c91723ef2
lib/model: Handle index sender lifetime ( fixes #7034 ) ( #7038 )
2020-10-21 11:51:53 +02:00
Simon Frei and GitHub
27c91c57d5
lib/db: Remove need for the right dev removing globals ( fixes #7036 ) ( #7044 )
2020-10-21 08:26:10 +02:00
Simon Frei and GitHub
1a8c10a8d0
lib/model: Use winning version instead of merge on conflict ( #6995 )
2020-10-19 08:53:19 +02:00
Simon Frei and GitHub
9d09fd6af3
all: Add failure reporting ( fixes #7028 ) ( #6925 )
2020-10-07 10:05:13 +02:00
Simon Frei and GitHub
42de53c6c9
lib/model: Fix race in GlobalDirectory tests ( fixes #7021 ) ( #7022 )
2020-10-03 20:46:17 +02:00
Simon Frei and GitHub
48da6f0f22
lib: Use uint64 for disk stats (ref #3930 ) ( #7019 )
2020-10-02 15:22:28 +02:00
Simon Frei and GitHub
a20c6ca868
lib/model, lib/protocol: Send ClusterConfig on config change ( fixes #7020 ) ( #7018 )
2020-10-02 11:49:51 +02:00
Audrius Butkevicius and GitHub
e027175446
all: Move remaining protos to use the vanity plugin ( #7009 )
2020-10-02 08:07:05 +02:00
Simon Frei and GitHub
1b1d38183d
lib: Remove HelloResult type, same as Hello ( #7015 )
2020-09-29 12:17:38 +01:00
Jakob Borg and GitHub
9e0b924d57
lib/fs: Be more clear about invalid file names (ref #7010 ) ( #7011 )
...
Add specific errors for the failures, resulting in this rather than just
the generic "invalid filename":
[MRIW7] 08:50:50 INFO: Puller (folder default, item "NUL"): syncing: filename is invalid: name is reserved
[MRIW7] 08:50:50 INFO: Puller (folder default, item "fail."): syncing: filename is invalid: name ends with space or period
[MRIW7] 08:50:50 INFO: Puller (folder default, item "sup:yo"): syncing: filename is invalid: name contains reserved character
[MRIW7] 08:50:50 INFO: default: Failed to sync 3 items
2020-09-28 10:22:50 +02:00
Simon Frei and GitHub
8452fd2ab4
lib/model, lib/scanner: Prevent races aborting scans ( fixes #6994 ) ( #6997 )
2020-09-25 11:27:44 +02:00
Simon Frei and GitHub
8210466b03
lib/model: Consider case conflicts when checking to be deleted items ( #6986 )
2020-09-12 07:45:50 +02:00
Simon Frei and GitHub
08bebbe59b
lib/db, lib/syncthing: Don't repair DB on upgrade, but on error ( fixes #6917 ) ( #6971 )
2020-09-10 10:54:41 +02:00
Simon Frei and GitHub
c5c23ed10f
lib/model: Consider existing file when handling symlink on windows ( #6977 )
2020-09-10 10:52:38 +02:00
Simon Frei and GitHub
286698ccb1
lib/model: Handle symlink deletion on windows ( fixes #6972 ) ( #6976 )
2020-09-10 08:25:44 +02:00
Simon Frei and GitHub
56d48d341f
lib/model: Fix case-only renames on pull ( #6978 )
2020-09-10 08:23:54 +02:00
Simon Frei and GitHub
e3cd9219b8
lib/model: Don't fail over case-conflict on tempfile ( fixes #6973 ) ( #6975 )
2020-09-09 11:47:14 +02:00
674fca3868
lib/db, lib/protocol: Never need empty-version entries ( fixes #6961 ) ( #6962 )
...
Avoid havoc when discovering locally-deleted-upgraded files during repair / need calculation...
Co-authored-by: Simon Frei <freisim93@gmail.com >
2020-09-07 20:18:25 +02:00
Simon Frei and GitHub
e19728d8cc
lib/model: Correct completion perc. when globalBytes is 0 ( #6963 )
2020-09-07 20:03:18 +02:00
Simon Frei and GitHub
3dd13c3994
test, lib/model: Various integration test updates & improvements ( #6956 )
2020-09-07 09:35:37 +02:00
Simon Frei and GitHub
6365e6108f
lib/model: Don't acquire I/O token for send-only pull ( #6951 )
2020-09-03 13:59:45 +02:00
Simon Frei and GitHub
540518a7b7
lib/model: Add missing lock on download-state ( fixes #6880 ) ( #6945 )
2020-08-30 08:03:10 +02:00
Jakob Borg and GitHub
3ffbe45a6d
lib/db, lib/model: Avoid accounting mishap on folder restart ( fixes #6938 ) ( #6939 )
...
We created a new fileset before stopping the folder during restart. When
we create that fileset it loads the current metadata and sequence
numbers from the database. But the folder may have time to update those
before stopping, leaving the new fileset with bad data.
This would cause wrong accounting (forgotten files) and potentially
sequence reuse causing files not sent to other devices.
This change reuses the fileset on restart, skipping the issue entirely.
It also moves the creation of the fileset back under the lock so there
should be no chance of concurrency issues here.
2020-08-27 18:33:27 +02:00
Jakob Borg and GitHub
3393db1f69
lib/model: Save config after auto accepting folders ( fixes #6922 ) ( #6937 )
2020-08-27 16:28:19 +02:00
Jakob Borg
145d87ce70
lib/model: Fixup spelling of protocol.FileIntf in test (ref #6463 )
2020-08-27 16:21:04 +02:00
Simon Frei and GitHub
06ac631351
lib/model: Reduce fmut locking in ClusterConfig ( #6913 )
...
The FileSet.Drop operation in there needs to potentially update a whole lot of global lists, which can take a while (longer than the deadlock interval apparently)
2020-08-27 16:01:46 +02:00
1fc2dbdeeb
lib/model: Add test for recv-only changes undone by remote ( #6463 )
...
Co-authored-by: Audrius Butkevicius <audrius.butkevicius@gmail.com >
2020-08-27 15:54:00 +02:00
Audrius Butkevicius and GitHub
d507d932b8
all: Use protobuf to generate config structs ( fixes #6734 ) ( #6900 )
2020-08-25 08:11:14 +02:00
Simon Frei and GitHub
a65b46debd
lib/model: Don't mark globally deleted items as recv-only ( fixes #6910 ) ( #6911 )
2020-08-21 12:34:22 +02:00
Simon Frei and GitHub
b628460930
lib/model: Prevent localflag flipflopping on del. item (ref #6865 ) ( #6919 )
2020-08-21 10:09:48 +02:00
Simon Frei and GitHub
cc1f6e4d4a
lib/db, lib/model: Cover exec-paths with debug logging ( #6918 )
2020-08-20 16:11:20 +02:00