Jakob Borg and GitHub
1e69997ecd
lib/db: Fix iterating sequence index ( fixes #5340 ) ( #5462 )
...
There was a problem in iterating the sequence index that could result
in missing updates. The issue is that while the index was (correctly)
iterated in a snapshot, the actual file infos were read dirty outside of
the snapshot. This fixes this by doing the reads inside the snapshot,
and also updates a couple of other places that did the same thing more
or less harmfully (I didn't investigate).
To avoid similar issues in the future I did some renaming of the
getFile* methods - the ones in a transaction are just getFile, while the
ones directly on the database are variants of getFileDirty to highlight
what's going on.
2019-01-18 11:34:18 +01:00
Jakob Borg and GitHub
76af0cf07b
lib/protocol: Remove support for v0.13 hello messages ( #5461 )
2019-01-17 20:48:43 +01:00
Jakob Borg
c2cc1dadea
gui, man, authors: Update docs, translations, and contributors
2019-01-16 07:45:23 +01:00
Jakob Borg and GitHub
f4bf18c1b4
cmd/syncthing, gui: Settings dialog upgrades/reporting for candidates ( fixes #4216 ) ( #5457 )
...
This adds booleans to the /system/version response to advice the GUI
whether the running version is a candidate release or not. (We could
parse it from the version string, but why duplicate the logic.)
Additionally the settings dialog locks down the upgrade and usage
reporting options on candidate releases. This matches the current
behavior, it just makes it obvious what actually *can* be chosen.
2019-01-15 08:44:46 +01:00
Jakob Borg and GitHub
b01edca420
all: Update protobuf package 1.0.0 -> 1.2.0 ( #5452 )
...
Also adds a few file global options to keep the generated code similar
to what we already had.
2019-01-14 11:53:36 +01:00
Simon Frei and Jakob Borg
c87411851d
lib/protocol: Fix potential deadlock when closing connection (ref #5440 ) ( #5442 )
2019-01-14 08:32:37 +01:00
Simon Frei and Jakob Borg
51f65bd23a
lib/model: Reset pull errors when succeeding ( fix #5450 ) ( #5451 )
2019-01-14 08:30:52 +01:00
Audrius Butkevicius and GitHub
801e9b57eb
Update config ( #5444 )
...
* gui: Update config from remote after saving (fixes #5354 )
* Refresh is async :(
2019-01-13 23:28:17 +00:00
Jakob Borg
93ae9a1c2e
lib/logger: Clean up LOGGER_DISCARD handing to unbreak tests
...
When using newLogger() with an io.Writer, that writer should in fact be
used...
2019-01-13 10:22:01 +01:00
Audrius Butkevicius and GitHub
d4f0544d9e
build: Add -cc argument that is not used by build.go ( #5447 )
2019-01-11 23:07:53 +00:00
Simon Frei and Audrius Butkevicius
0b03b6a9ec
lib/model: Improve filesystem operations during tests ( fixes #5422 )
...
* lib/fs, lib/model: Improve filesystem operations during tests (fixes #5422 )
Introduces MustFilesystem that panics on errors and should be used for operations
during testing which must never fail.
Create temporary directories outside of testdata.
* don't do a filesystem, just a wrapper around os for testing
* fix copyright
2019-01-11 12:56:05 +00:00
Simon Frei and Jakob Borg
24ffd8be99
all: Send Close BEP msg on intentional disconnect ( #5440 )
...
This avoids waiting until next ping and timeout until the connection is actually
closed both by notifying the peer of the disconnect and by immediately closing
the local end of the connection after that. As a nice side effect, info level
logging about dropped connections now have the actual reason in it, not a generic
timeout error which looks like a real problem with the connection.
2019-01-09 17:31:09 +01:00
Jakob Borg
d924bd7bd9
gui, man, authors: Update docs, translations, and contributors
2019-01-09 07:45:23 +01:00
Jakob Borg and GitHub
1e71b00936
lib/model: Sanitize paths used for auto accepted folders ( fixes #5411 ) ( #5435 )
2019-01-05 18:10:02 +01:00
Jakob Borg
f3630a69f1
gui: Fix bar chart icon ( fixes #5389 )
2019-01-05 11:36:25 +01:00
Jakob Borg and GitHub
5503175854
lib/logger: Strip control characters from log output ( fixes #5428 ) ( #5434 )
2019-01-05 11:31:02 +01:00
Audrius Butkevicius and Jakob Borg
ad30192dca
vendor: Update minio/sha256-simd ( #5433 )
...
* vendor: Update minio/sha256-simd
* Add go module stuff
2019-01-05 10:21:42 +01:00
Simon Frei and Jakob Borg
158559023e
lib/db: Fix sequence updating for remote invalid items ( #5420 )
...
* lib/db: Fix sequence updating for remote invalid items
* fix for the unit test introduced in the previous commit
* lib/db: Polish blockmap
2019-01-04 20:19:10 +01:00
Jakob Borg and GitHub
04070b4848
lib/logger: Add test for stack level ( #5430 )
2019-01-04 17:51:58 +01:00
Jakob Borg
597cee67d3
cmd/ur*: Updates for 1.0
2019-01-03 21:46:02 +01:00
Jakob Borg
78ccedfeec
gui, man, authors: Update docs, translations, and contributors
2019-01-02 07:45:22 +01:00
Ben S and Jakob Borg
69fe471dfa
gui: Make sync status accessible by screen readers ( fixes #2697 ) ( #5381 )
2019-01-01 10:18:08 +01:00
Simon Frei and Jakob Borg
47e08797cb
lib/model: Don't pull if ignores failed to load and cleanup ( #5418 )
2019-01-01 10:17:14 +01:00
Jakob Borg
48dab8f201
Merge branch 'release'
...
* release:
cmd/syncthing: Updated code name
2019-01-01 09:38:30 +01:00
Simon Frei and Jakob Borg
643cfe2e98
lib/config: Revert #5415 ( #5417 )
...
This reverts commit 9d075781ad :
"cmd/syncthing: Improve messages when free space is running out (#5415 )"
2018-12-30 21:57:41 +01:00
Simon Frei and Jakob Borg
8bb9878f26
lib/model: Check folder context before setting error state ( #5416 )
2018-12-30 21:56:16 +01:00
Maurizio Tomasi and Jakob Borg
9d075781ad
cmd/syncthing: Improve messages when free space is running out ( #5415 )
2018-12-29 20:48:20 +01:00
Hugo Locurcio and Jakob Borg
2ad40734f8
gui: Use a modern font stack inspired by Bootstrap 4 ( #5407 )
...
See https://github.com/twbs/bootstrap/pull/19098 for more information.
2018-12-26 23:05:20 +01:00
Jakob Borg
952ab7db1c
cmd/syncthing: Updated code name
2018-12-26 17:23:05 +01:00
Jakob Borg
84ca86f095
gui, man, authors: Update docs, translations, and contributors
2018-12-26 07:45:23 +01:00
Jakob Borg
0ac6ea6f1e
gui: Reformat HTML & JS for consistent white space
...
(white space only change)
2018-12-25 14:26:46 +01:00
Jakob Borg
41469c5393
lib/rc: Remove dead lock ( fixes #5403 )
2018-12-23 09:11:15 +01:00
Simon Frei and Jakob Borg
4783294a09
lib/model: Don't pass nil *Matcher to performFinish ( fixes #5401 ) ( #5402 )
2018-12-22 21:58:17 +01:00
Jakob Borg and Audrius Butkevicius
c8123bda28
cmd/syncthing: Don't rewrite config on startup unless necessary ( #5399 )
2018-12-21 14:26:36 +00:00
Simon Frei and Jakob Borg
99c9d65ddf
lib/scanner: Check ignore patterns before reporting error ( fixes #5397 ) ( #5398 )
2018-12-21 12:08:15 +01:00
Simon Frei and Jakob Borg
fc81e2b3d7
lib/model: Do folder watch operations under lock ( fixes #5392 ) ( #5395 )
2018-12-21 12:06:21 +01:00
Simon Frei and Jakob Borg
c3b3e02f21
test: Update configs and revert changes during testing ( #5393 )
2018-12-21 11:50:28 +01:00
Simon Frei and Jakob Borg
2626143fc5
lib/rc: Fix hangups when Syncthing process ends unexpectedly ( #5383 )
2018-12-21 11:49:04 +01:00
Stefan Tatschner and Jakob Borg
ae0dfcd7ca
build: Allow specifying the go command ( #5396 )
2018-12-20 15:24:35 +01:00
Jakob Borg
58f3e56729
gui, man, authors: Update docs, translations, and contributors
2018-12-19 07:45:22 +01:00
Jakob Borg and GitHub
944ddcf768
all: Become a Go module ( fixes #5148 ) ( #5384 )
...
* go mod init; rm -rf vendor
* tweak proto files and generation
* go mod vendor
* clean up build.go
* protobuf literals in tests
* downgrade gogo/protobuf
2018-12-18 12:36:38 +01:00
Simon Frei and Jakob Borg
3cc8918eb4
lib/db: Defer unlock to avoid hangup on panic ( #5388 )
2018-12-17 14:59:09 +01:00
Simon Frei and GitHub
c40c9a8d6a
lib/scanner: Don't report error on missing items ( fixes #5385 ) ( #5387 )
2018-12-17 14:52:15 +01:00
Jakob Borg and GitHub
abb3fb8a31
lib/events: Become a service ( fixes #5372 ) ( #5373 )
...
Here the event Logger is rewritten as a service with a main loop instead
of mutexes. This loop has a select with essentially two legs: incoming
events, and subscription changes. When both are possible select will
chose one randomly, thus ensuring that in practice unsubscribes will
happen timely and not block the system.
2018-12-13 13:42:28 +01:00
Jakob Borg and Simon Frei
fc860df514
lib/watchaggregator: Properly unsubscribe from events when stopping (ref #5372 ) ( #5374 )
2018-12-13 08:11:51 +01:00
Simon Frei and Jakob Borg
c934918347
lib/scanner: Fix empty path on normalization error ( fixes #5369 ) ( #5370 )
2018-12-12 12:09:39 +01:00
Jakob Borg
c98a34a5d4
gui, man, authors: Update docs, translations, and contributors
2018-12-12 07:45:23 +01:00
Jörg Thalheim and Jakob Borg
bdcffe703b
build: Don't use go build -i ( #5367 )
2018-12-11 13:37:46 +01:00
Simon Frei and Jakob Borg
a09079ed25
all: Display list of locally changed items in UI ( fixes #5336 ) ( #5337 )
2018-12-11 09:59:04 +01:00
Jakob Borg and GitHub
1b59960ff9
lib/model: Attempt to unflake Deregister tests ( fixes #5362 ) ( #5366 )
2018-12-11 09:42:03 +01:00