Jakob Borg
29cd156e71
gui, man, authors: Update docs, translations, and contributors
2020-07-15 07:46:14 +02:00
Jakob Borg
aaecf813e2
gui: Add GUI control for versioning cleanup interval (ref #6693 ) ( #6834 )
2020-07-14 17:35:09 +02:00
HansK-p
cd8e1ec738
docker: Support starting as a non-root user ( fixes #6832 ) ( #6835 )
2020-07-14 11:38:59 +02:00
Jakob Borg
aedc2d788f
lib/model, lib/versioner: Drive version cleanup from scanner ( fixes #6313 ) ( #6693 )
...
This change adds a separate config for the cleanup interval, and runs that cleanup from the main folder loop.
2020-07-14 10:48:50 +02:00
dependabot-preview[bot]
245b4b98c4
build(deps): bump github.com/greatroar/blobloom from 0.2.1 to 0.3.0 ( #6830 )
...
Bumps [github.com/greatroar/blobloom](https://github.com/greatroar/blobloom ) from 0.2.1 to 0.3.0.
- [Release notes](https://github.com/greatroar/blobloom/releases )
- [Commits](https://github.com/greatroar/blobloom/compare/v0.2.1...v0.3.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-07-14 08:40:46 +02:00
dependabot-preview[bot]
74ee83cc86
build(deps): bump github.com/lucas-clemente/quic-go ( #6829 )
...
Bumps [github.com/lucas-clemente/quic-go](https://github.com/lucas-clemente/quic-go ) from 0.17.2 to 0.17.3.
- [Release notes](https://github.com/lucas-clemente/quic-go/releases )
- [Changelog](https://github.com/lucas-clemente/quic-go/blob/master/Changelog.md )
- [Commits](https://github.com/lucas-clemente/quic-go/compare/v0.17.2...v0.17.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-07-14 08:29:20 +02:00
Simon Frei
16f4921c50
lib/nat: Make sure nat keeps being disabled ( fixes #6823 ) ( #6824 )
2020-07-14 08:16:08 +02:00
Jakob Borg
91922b6dc8
Merge branch 'release' into main
...
* release:
lib/scanner: Less strict validation (fixes #6827 ) (#6828 )
2020-07-14 08:05:30 +02:00
Jakob Borg
d57694dc04
lib/scanner: Less strict validation ( fixes #6827 ) ( #6828 )
...
This fixes the change in #6674 where the weak hash became a deciding
factor. Now we again just use it to accept a block, but don't take a
negative as meaning the block is bad.
2020-07-11 20:17:41 +02:00
Jakob Borg
fc1dac5196
lib/scanner: Less strict validation ( fixes #6827 ) ( #6828 )
...
This fixes the change in #6674 where the weak hash became a deciding
factor. Now we again just use it to accept a block, but don't take a
negative as meaning the block is bad.
2020-07-11 14:48:45 +02:00
greatroar
9f92f8c609
lib/db: Use SipHash to deal with hash collision in GC ( #6826 )
...
If the GC finds a key k that it wants to keep, it records that in a
Bloom filter. If a key k' can be removed but its hash collides with k,
it will be kept. Since the old Bloom filter code was completely
deterministic, the next run would encounter the same collision, assuming
k must still be kept.
A randomized hash function that uses all the SHA-256 bits solves this
problem: the second run has a non-zero probability of removing k', as
long as the Bloom filter is not completely full.
2020-07-11 09:36:09 +02:00
Jakob Borg
bbda58a29f
lib/db: Add test for GC run
2020-07-11 09:22:15 +02:00
Simon Frei
3d339cc8d3
gui: Improve advanced tab in folder edit modal ( #6822 )
2020-07-09 14:28:45 +01:00
Jack Croft
8cbdf1e1de
gui: Disable file pull order when for send-only ( fixes #6807 ) #6821
2020-07-09 11:57:04 +02:00
Jakob Borg
ff7873fcc1
gui, man, authors: Update docs, translations, and contributors
2020-07-08 07:45:21 +02:00
Simon Frei
8d67235a75
lib/config: Don't cache device map ( fixes #6816 ) ( #6817 )
2020-07-07 23:44:49 +02:00
dependabot-preview[bot]
493de9392a
build(deps): bump github.com/lucas-clemente/quic-go ( #6813 )
...
Bumps [github.com/lucas-clemente/quic-go](https://github.com/lucas-clemente/quic-go ) from 0.17.1 to 0.17.2.
- [Release notes](https://github.com/lucas-clemente/quic-go/releases )
- [Changelog](https://github.com/lucas-clemente/quic-go/blob/master/Changelog.md )
- [Commits](https://github.com/lucas-clemente/quic-go/compare/v0.17.1...v0.17.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-07-06 12:18:10 +01:00
Jakob Borg
0c61c66511
lib/api, lib/model: Improve folder completion API ( fixes #6075 ) ( #6808 )
2020-07-03 08:48:37 +02:00
Jakob Borg
baf21a8fa2
gui, man, authors: Update docs, translations, and contributors
2020-07-01 07:45:21 +02:00
Simon Frei
ebbe1abe28
lib/protocol: Include WeakHash in BlocksHash ( #6799 )
2020-06-29 09:33:07 +02:00
Audrius Butkevicius
9d4a700829
lib/ur: Track new folder feature usage ( #6803 )
2020-06-28 20:35:22 +02:00
Simon Frei
d7fc7008af
lib/protocol: Add BlocksHash to FileInfo string ( #6802 )
2020-06-27 07:44:33 +02:00
Simon Frei
9c45ac381c
lib/model: Consider weak hash on recheckFile ( #6797 )
2020-06-26 16:47:03 +02:00
Jakob Borg
e0c8865a45
build: Consistently use 8 hash digits in git describe
...
This might otherwise differ between builds depending on branches present
in the repository and the Git version in use (?).
2020-06-26 09:02:35 +02:00
Simon Frei
4f06708330
lib/api, lib/model: Fixes around event request tracking ( #6774 )
2020-06-25 21:48:48 +02:00
Simon Frei
80ada1bb6c
lib/protocol: Don't warn when dropping deleted invalid item ( fixes #6795 ) ( #6796 )
2020-06-25 20:24:31 +02:00
Simon Frei
0648fb0626
lib/model: Don't force rescan already changed items ( #6798 )
2020-06-25 20:23:59 +02:00
Simon Frei
90e248615f
lib/scanner: Test weak hash consistency (ref #5556 ) ( #6794 )
...
Relevant much earlier changes:
9b1c592fb7
bd1c29ee32
Make sure vanilla and rolling adler are consistent. And that they match
with scanner.Validate.
2020-06-25 14:47:35 +02:00
Jakob Borg
57f47bcf83
gui, man, authors: Update docs, translations, and contributors
2020-06-24 07:45:25 +02:00
Audrius Butkevicius
bb76311ec6
lib/ur: Zero our the value before unmarshal ( #6790 )
...
* lib/ur: Zero our the value before unmarshal
* Comment
* Complete rewrite
2020-06-23 21:23:32 +01:00
Jakob Borg
78d294f78c
cmd/ursrv: Skip the duplicate complaints with new index name
2020-06-23 14:18:52 +02:00
Audrius Butkevicius
689cf2a5ee
lib/ur: Normalise contract between syncthing and ursrv ( #6770 )
...
* Fix ui, hide report date
* Undo Goland madness
* UR now web scale
* Fix migration
* Fix marshaling, force tick on start
* Fix tests
* Darwin build
* Split "all" build target, add package name as a tag
* Remove pq and sql dep from syncthing, split build targets
* Empty line
* Revert "Empty line"
This reverts commit f74af2b067
.
* Revert "Remove pq and sql dep from syncthing, split build targets"
This reverts commit 8fc295ad00
.
* Revert "Split "all" build target, add package name as a tag"
This reverts commit f4dc889951
.
* Normalise contract types
* Fix build add more logging
2020-06-23 09:47:15 +01:00
Simon Mwepu
72f954dcab
lib/versioner: Create versioning directory recursively ( fixes #6565 ) ( #6678 )
...
Co-authored-by: Jakob Borg <jakob@kastelo.net>
2020-06-23 08:37:29 +02:00
dependabot-preview[bot]
adace320a0
build(deps): bump github.com/go-ldap/ldap/v3 from 3.1.10 to 3.2.0 ( #6783 )
...
Bumps [github.com/go-ldap/ldap/v3](https://github.com/go-ldap/ldap ) from 3.1.10 to 3.2.0.
- [Release notes](https://github.com/go-ldap/ldap/releases )
- [Commits](https://github.com/go-ldap/ldap/compare/v3.1.10...v3.2.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-23 07:34:51 +02:00
dependabot-preview[bot]
96d3117759
build(deps): bump golang.org/x/text from 0.3.2 to 0.3.3 ( #6782 )
...
Bumps [golang.org/x/text](https://github.com/golang/text ) from 0.3.2 to 0.3.3.
- [Release notes](https://github.com/golang/text/releases )
- [Commits](https://github.com/golang/text/compare/v0.3.2...v0.3.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-23 07:34:22 +02:00
Simon Frei
85794933d3
lib/model: Remove double error handling in performFinish ( #6780 )
2020-06-23 07:30:16 +02:00
Simon Frei
4881a6336f
lib/db: Correct need accounting on reset ( fixes #6784 ) ( #6785 )
2020-06-23 07:29:27 +02:00
Audrius Butkevicius
5fb3992275
lib/model: More connection closing ( #6778 )
...
* lib/model: More connection closing
* Revert "lib/model: More connection closing"
This reverts commit 5397c3a55c
.
* Add tests, fix one broken-ness
* Update lib/model/model.go
Co-authored-by: Simon Frei <freisim93@gmail.com>
* Update model.go
* Update model.go
Co-authored-by: Simon Frei <freisim93@gmail.com>
2020-06-22 21:26:26 +01:00
Jakob Borg
b62b7d269e
lib/connections: Correctly fixup port in IPv6 listen URLs ( #6786 )
...
Previously tcp://[fe80::1] would get "fixed" to tcp://[[fe80::1]]:22000
which is not great.
2020-06-22 16:47:15 +01:00
Audrius Butkevicius
cbaef624cf
lib/nat: Make service termination faster ( #6777 )
...
* lib/nat: Make service termination faster
* Newline
2020-06-22 09:01:57 +01:00
Jakob Borg
aee4b10d3a
gui, man, authors: Update docs, translations, and contributors
2020-06-22 06:15:24 +02:00
greatroar
dc145bfad7
lib/protocol: Use sha256.Sum256 in NewDeviceID ( #6775 )
...
This is shorter, skips two allocations, makes the function inlineable
and is safer, since the compiler now check whether
DeviceIDLength == sha256.Size.
2020-06-21 20:38:06 +02:00
greatroar
d985aa9e4b
lib/scanner: Fix Validate docs ( #6776 )
...
Co-authored-by: greatroar <@>
2020-06-21 19:23:06 +01:00
Simon Frei
3d75819cdb
build: Set CGO_ENABLED=0 by default, except on specific platforms ( #6768 )
2020-06-21 17:32:55 +02:00
Jakob Borg
705710b1a1
gui, lib/api: Add more version info to about dialog ( #6773 )
2020-06-21 12:20:19 +02:00
Simon Frei
f66e57947b
lib/model: Use right db snap when scanning recvonly folder ( #6769 )
2020-06-21 09:28:29 +02:00
Jakob Borg
3fcf22ed5d
build: Change version strings to not have plus in them (ref #6758 ) ( #6760 )
...
Currently a random dev version has a version string like this:
v1.7.0-rc.1+23-gef3441bd6
That is, the tag name followed by a plus sign and the git describe
metadata (number of commits and hash) plus -dirty or -branchname in some
cases.
We introduced the plus sign in #473 , where a dev version would
previously be called v0.9.0-42-gwhatever which is considered older than
v0.9.0 and hence caused a downgrade. The problem with the plus is that
per semver everything after the plus is ignored as build metadata, which
means we won't upgrade from v1.7.0-rc.1 to v1.7.0-rc.1+22-g946170f3f.
With this change the we instead either just add a dev suffix (if we're
already on a prerelease version) or we wind the patch version and add a
dev suffix.
v1.7.0-rc.1+23-gef3441bd6 => v1.7.0-rc.1.dev.23.gef3441bd6
v1.6.1+80-gef3441bd6 => v1.6.2-dev.80.gef3441bd6
This should preserve the ordering and keep versions semver-ish.
2020-06-20 08:42:06 +02:00
Simon Frei
2716898cb9
lib/model: Don't ignore stat failure in performFinish ( #6766 )
2020-06-19 23:47:29 +02:00
Audrius Butkevicius
deaccc7f8d
lib/fs: Add support for Windows duplicate extents ( #6764 )
2020-06-18 22:32:26 +01:00
Simon Frei
22f0077262
lib/model: Don't stay scanning forever on fail ( #6761 )
2020-06-18 14:13:46 +01:00