Jakob Borg
d7d5687faa
lib/protocol: Warnln should have been Warnf
2016-12-21 10:43:12 +01:00
Jakob Borg
21eb098dd2
vendor: Update github.com/minio/sha256-simd, CPU detection (Linux)
2016-12-20 09:20:28 +01:00
Jakob Borg
2f770f8bfb
lib/config, lib/protocol: Improve folder description with empty label
2016-12-19 10:12:06 +01:00
Jakob Borg
f09698d845
gui: Add missing strings to lang-en.json
2016-12-18 22:29:43 +01:00
Jakob Borg
3fbcb024a7
gui: Update link to send only documentation page
2016-12-18 22:29:43 +01:00
Jakob Borg and Audrius Butkevicius
b8c1c0e048
cmd/syncthing: Enable better crypto, print negotiated cipher suite
...
This adds support for AES_256_GCM_SHA384 (in there since Go 1.5, a bit
of a shame we missed it) and ChaCha20-Poly1305 (if built with Go 1.8;
ignored on older Gos).
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3822
2016-12-18 21:07:44 +00:00
Jakob Borg
2d47242d54
jenkins: Don't clean out when building with old Go (nukes coverage data)
2016-12-18 19:58:46 +01:00
Jakob Borg
66a7829eee
jenkins: Also try build with old Go version, if available
2016-12-18 19:25:27 +01:00
Jakob Borg and Audrius Butkevicius
9c67bd2550
lib/connections: Fix port fixup in Go 1.8 ( fixes #3817 )
...
The test for the error string is fragile, and the error string changed
in Go 1.8 so the relevant part is no longer a prefix. This covers it
with a test though, so it should be fine in the future as well.
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3818
2016-12-18 11:28:18 +00:00
Jakob Borg and Audrius Butkevicius
f67c5a2fd6
lib/model: Don't send symlinks to old devices that can't handle them ( fixes #3802 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3811
2016-12-17 19:48:33 +00:00
Jakob Borg
263402f80a
cmd/stcli: Add copyright headers to satisfy check
2016-12-17 12:28:59 +01:00
Jakob Borg
920a83ec7a
cmd/stcli: Fix metalint ineffasign complaint
2016-12-17 10:51:48 +01:00
Jakob Borg
3c2ac3522c
cmd/stcli: Update for new folder type
2016-12-17 01:44:18 +01:00
Jakob Borg
9fdaa637a8
vendor: Add github.com/AudriusButkevicius/cli
2016-12-17 01:33:17 +01:00
Jakob Borg
81a9d7f2b9
cmd/stcli: Make it build again
2016-12-17 01:33:17 +01:00
Jakob Borg
653be136ee
gui: Update lang-en.json
2016-12-17 00:59:25 +01:00
Jakob Borg
abb8a1914a
lib/model: Accept scan requests of paths ending in slash ( fixes #3804 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3805
2016-12-16 11:21:22 +00:00
Jakob Borg
163d335078
gui: Update lang-en.json
2016-12-16 09:42:13 +01:00
Jakob Borg
bb15776ae6
gui: Avoid pause between event polls (ref #3527 )
...
We lose important events due to the frequency of ItemStarted /
ItemFinished events.
2016-12-14 10:31:16 +01:00
Jakob Borg
dde9d4c9eb
lib/rc: Remove pause to aggregate events (ref #3527 )
2016-12-14 10:24:36 +01:00
Jakob Borg
1ef75be1c6
gui, man: Update docs & translations
2016-12-13 11:29:40 +01:00
Jakob Borg
3582783972
lib/model, lib/osutil: Verify target directory before pulling / requesting
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3798
2016-12-13 10:24:10 +00:00
Jakob Borg
5070d52f2f
lib/model: Add benchmark for model.Request()
2016-12-09 23:14:56 +01:00
Jakob Borg and Audrius Butkevicius
7b07ed6580
lib/model, lib/protocol, lib/scanner: Include symlink target in index, pull symlinks synchronously
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3792
2016-12-09 18:02:18 +00:00
Jakob Borg
a9b03de99a
gui, lib/db: Correct space accounting of symlinks, for "out of sync" status
2016-12-09 10:38:36 +01:00
Jakob Borg
a7f7058636
vendor: Update github.com/gobwas/glob (bugfix)
2016-12-07 09:25:58 +01:00
Jakob Borg
2fd1dca905
lib/connections: Fix odd logging, forgot to call function
2016-12-02 12:56:14 +01:00
Jakob Borg and Audrius Butkevicius
e3cf718998
lib/ignore: Add central check for internal files, used in scanning, pulling and requests
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3779
2016-12-01 14:00:11 +00:00
Jakob Borg
3266aae1c3
lib/protocol: Apply input filtering on file names
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3775
2016-12-01 12:35:32 +00:00
Jakob Borg
63194a37f6
lib/model: Double check results in filepath.Join where needed
...
Wherever we have untrusted relative paths, make sure they are not
escaping their folder root.
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3776
2016-12-01 12:35:11 +00:00
Jakob Borg
48a229a0cd
lib/model: Temp names from all platforms should be recognized as such
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3777
LGTM: AudriusButkevicius
2016-11-30 21:23:24 +00:00
Jakob Borg
e4db86836b
lib/model: Locking in the request test
2016-11-30 13:11:06 +01:00
Jakob Borg
913a85c571
lib/model: Add simple file syncing test
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3772
2016-11-30 09:32:28 +00:00
Jakob Borg
ed4f6fc4b3
lib/connections, lib/model: Connection service should expose a single interface
...
Makes testing easier, which we'll need
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3771
2016-11-30 07:54:20 +00:00
Jakob Borg
9da422f1c5
gui, man: Update docs & translations
2016-11-29 11:56:02 +01:00
Jakob Borg and Audrius Butkevicius
fc1430aa92
lib/fs: The interface and basicfs
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3748
2016-11-24 12:07:14 +00:00
Jakob Borg
3cde608eda
lib/db: Fix ineffassign lint issue
2016-11-24 12:08:44 +01:00
Jakob Borg
2898552f4b
build: Setup should insteall deadcode metalinter
2016-11-24 12:05:04 +01:00
Jakob Borg
911c148c71
build: Improve setup, add metalint ineffasign
2016-11-24 11:33:43 +01:00
Jakob Borg
91568a173a
lib/model: Remove ineffectual assignment in test
2016-11-24 11:33:27 +01:00
Jakob Borg
e57f5499a1
lib/sync: Remove unused struct field
2016-11-24 11:30:55 +01:00
Jakob Borg
9abb7b71a9
lib/osutil: Fix lint warning on error formatting ( fixes #3760 )
2016-11-24 11:20:51 +01:00
Jakob Borg
724c354d62
cmd/stdiscosrv: Fix lint warning on Context keys ( fixes #3760 )
2016-11-24 11:20:51 +01:00
Jakob Borg
c44779094d
build: Setup should download latest version of linters etc
2016-11-24 11:20:51 +01:00
Jakob Borg and Audrius Butkevicius
8559e20237
lib/osutil: Don't chmod in atomic file creation ( fixes #2472 )
...
Instead, trust (and test) that the temp file has appropriate permissions
from the start. The only place where this changes our behavior is for
ignores which go from 0644 to 0600. I'm OK with that.
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3756
2016-11-23 14:06:08 +00:00
Jakob Borg
26730eb083
lib/model: Fix test that relies on ignore reloading
2016-11-23 14:42:29 +01:00
Jakob Borg
2dbeea21c4
lib/ignore: Don't slow down tests by sleeping
2016-11-22 22:44:04 +01:00
Jakob Borg and Audrius Butkevicius
a2b8485a89
lib/ignore: Fast reload of unchanged ignores ( fixes #3394 )
...
This changes the "seen" map that we're anyway keeping around to track
the modtimes of loaded files instead. When doing a Load() we check that
1) the file we are loading is in the modtime set, and 2) that none of
the files in the modtime set have changed modtimes. If that's the case
we do a quick return without parsing anything or clearing the cache.
This required adding two one seconds sleeps in the tests to make sure
the modtimes were updated when we expect cache reloads, because I'm on a
crappy filesystem with one second timestamp granularity. That also
proves it works...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3754
2016-11-22 21:30:45 +00:00
Jakob Borg
5bb74ee61c
gui, man: Update docs & translations
2016-11-22 09:32:57 +01:00
Jakob Borg and Audrius Butkevicius
462fde5e7d
cmd/syncthing: Make the default folder default again
...
The current way is quite confusing for new users - we create a default
folder, but it's not usable with the default folder created somewhere
else. Instead, when setting up for the first time with two devices, the
default folder must be removed and recreated on one of them. This comes
up on IRC and the forum now and then.
I think this matches expectactions better.
Another alternative would be to remove it entirely (not create a default
folder), but then we should also add some guidance in the UI on how to
proceed.
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3751
2016-11-22 08:18:43 +00:00
Jakob Borg
cc9a9fb390
lib/model, lib/protocol: Add Folder.Description() for logging (ref #3741 )
2016-11-22 08:36:14 +01:00
Jakob Borg
8fbcceb742
authors: Add further Unrud address
2016-11-22 08:14:22 +01:00
Jakob Borg
be80b26c18
authors: Add zaynetro
2016-11-21 20:08:31 +01:00
Jakob Borg
51e10e344d
Add Unrud
2016-11-21 17:59:44 +01:00
Jakob Borg
1392589d36
authors: Add kwhite17
2016-11-21 09:12:03 +01:00
Jakob Borg and Audrius Butkevicius
548a324256
lib/connections: Slow down failing listeners
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3745
2016-11-19 12:37:14 +00:00
Jakob Borg and Audrius Butkevicius
a8a0bc356a
lib/model: Minor cleanup to not fondle cfg.Raw things in handleDeintroductions
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3739
2016-11-17 08:56:55 +00:00
Jakob Borg and Audrius Butkevicius
faee1d5a8d
lib/model: Fix locking around introduction handling ( fixes #3737 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3738
2016-11-17 08:50:24 +00:00
Jakob Borg
3088dac33b
lib/model: Clean up generateClusterConfig, fix spurious test failure by sorting
2016-11-17 07:45:45 +01:00
Jakob Borg
2641062c17
gui, man: Update docs & translations
2016-11-15 07:23:48 +01:00
Jakob Borg
95c738ea28
lib/protocol: Serialize the all zeroes device ID to the empty string
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3734
2016-11-15 06:22:36 +00:00
Jakob Borg
562d2f67a6
snapcraft: Point home and config dir towards non-versioned snap home ( fixes #3730 )
2016-11-14 19:06:05 +01:00
Jakob Borg
bfb48b5dde
jenkins: Clean should remove old snaps
2016-11-12 10:08:13 +01:00
Jakob Borg
2860813a8e
build: Set snap grade to "stable" for releases
2016-11-12 09:47:57 +01:00
Jakob Borg
72538e350d
build: Snap versions should not have initial "v"
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3728
2016-11-12 08:36:19 +00:00
Jakob Borg
59f3d1445f
Revert "lib/model: Introducer can remove stuff it introduced ( fixes #1015 )"
...
This reverts commit 0b88cf1d03 .
2016-11-12 08:38:29 +01:00
Jakob Borg
6ec9b84674
test: Fix test config
2016-11-09 09:02:55 +08:00
Jakob Borg
ae4cc94a9d
lib/model: Fix locking order in Availability() ( fixes #3634 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3714
2016-11-08 06:38:50 +00:00
Jakob Borg
3f9b75b7b3
Revert "lib/model: Introducer can remove stuff it introduced ( fixes #1015 )"
...
This reverts commit ec2b097313 .
2016-11-08 14:27:32 +08:00
Jakob Borg
b7e21984a1
gui, man: Update docs & translations
2016-11-01 11:26:25 +01:00
Jakob Borg and Audrius Butkevicius
0296c23685
lib/protocol: Use DeviceID in protocol messages, with custom marshalling
...
This makes the device ID a real type that can be used in the protobuf
schema. That avoids the juggling back and forth from []byte in a bunch
of places and simplifies the code.
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3695
2016-10-29 21:56:24 +00:00
Jakob Borg
1cdfef4d6a
script: Missed a newline in the commit-msg hook output
2016-10-27 21:47:14 +02:00
Jakob Borg
cead20ec91
script: Add commit message check hook
2016-10-27 21:42:05 +02:00
Jakob Borg
5473285010
gui: Add help link for sync protocol listen addresses
2016-10-26 21:16:53 +02:00
Jakob Borg
4b3adfa21c
vendor: Update gobwas/glob to fix question mark handling
2016-10-23 15:47:31 +02:00
Jakob Borg
d9040f8038
authors: Add imsodin
2016-10-21 15:23:17 +08:00
Jakob Borg
f41606c0b0
jenkins: Build snap
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3678
2016-10-20 09:31:07 +00:00
Jakob Borg
173fb97832
authors: Add elopio
2016-10-20 16:38:14 +08:00
Jakob Borg
6152eb6d6d
gui: Hide "Failed Items" unless there is an actual failure ( fixes #3647 )
...
Since delta indexes it's perfectly normal for us to need files that are
currently unavailable due to devices being disconnected. This doesn't
imply a failure, so we should not show the "Failed Items" line and
corresponding eternal spinner (since it would never be filled in, since
there is no failure).
We still show state "Out of Sync" (correct) and the list of files we
need (correct).
2016-10-17 23:57:58 +02:00
Jakob Borg
ff0ebc196c
gui: Improve display of local size, ignore pattern status ( fixes #3623 )
...
The discrepancy between global and local sizes is fine and expected in
the presence of ignores. This just moves the "we have ignore patterns"
indication to the actual local size metric, as an explanation of why it
may differ from the global size...
2016-10-17 23:57:58 +02:00
Jakob Borg
4e8c8d7e2c
cmd/syncthing, lib/db, lib/model: Track more detailed file/dirs/links/deleted counts
2016-10-17 23:57:43 +02:00
Jakob Borg
b8a90b7eaa
lib/model: Remove chatty delta index confirmation
...
This had its moment when making sure it worked initially, but nowadays
there is not point discussing the obvious on every folder on every
connect.
2016-10-17 09:21:58 +02:00
Jakob Borg
60e7ca4a4c
gui, man: Update docs & translations
2016-10-17 09:12:16 +02:00
Jakob Borg
d203dd4770
cmd/syncthing: go fmt traceback.go
2016-10-12 20:37:26 +02:00
Jakob Borg
29ccf10d0b
cmd/syncthing: Only SetTraceback on Go 1.7+ ( fixes #3664 )
2016-10-10 17:16:18 +02:00
Jakob Borg
b49df09fec
build: Trivial perf improvement of shouldRebuildAssets
2016-10-09 14:28:20 +02:00
Jakob Borg
215503b4f7
cmd/syncthing: Delay browser start until the GUI is ready ( fixes #3619 )
2016-10-07 12:10:26 +09:00
Jakob Borg
54d4010f1a
gui, man: Update docs and translations
2016-10-07 11:09:19 +09:00
Jakob Borg
cb1b53cfb5
gui: Update English base strings ( fixes #3638 )
2016-10-07 11:07:12 +09:00
Jakob Borg
2a2177e7fa
authors: Add timhowes
2016-10-04 08:11:57 +09:00
Jakob Borg
d1d565e58b
cmd/syncthing: Localhost header comparison should be case insensitive
2016-10-03 17:34:13 +09:00
Jakob Borg
d5a0f91cb4
cmd/syncthing: Restore useful levels of traceback on panic
2016-09-26 21:14:17 +02:00
Jakob Borg
467c1b26fb
cmd/syncthing, lib/config: Log errors replacing or saving config (ref #3567 )
2016-09-24 09:59:09 +02:00
Jakob Borg and Audrius Butkevicius
3cabecda04
lib/upnp: Correct the result deduplication mechanism ( fixes #3578 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3618
2016-09-24 07:33:56 +00:00
Jakob Borg
6d3160b0ab
gui: Folder is out of sync when it needs deletes, too ( fixes #3588 )
2016-09-24 09:11:38 +02:00
Jakob Borg and Audrius Butkevicius
d328e0fb75
cmd/syncthing: Add selectable sha256 package ( fixes #3613 , fixes #3614 )
...
This adds autodetection of the fastest hashing library on startup, thus
handling the performance regression. It also adds an environment
variable to control the selection, STHASHING=standard (Go standard
library version, avoids SIGILL crash when the minio library has bugs on
odd CPUs), STHASHING=minio (to force using the minio version) or unset
for the default autodetection.
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3617
2016-09-23 19:33:54 +00:00
Jakob Borg
5f01afb7ea
build: No need for outdated go2xunit
2016-09-18 21:02:42 +02:00
Jakob Borg
b371b1fe34
lib/versioner: Test both spaces and parens in ext versioner paths
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3610
2016-09-18 12:24:55 +00:00
Jakob Borg
90c0a39df8
lib/versioner: Test for external versioner
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3609
2016-09-17 20:34:50 +00:00
Jakob Borg and Audrius Butkevicius
da0b7cc7f2
lib/model: Correct lock taking order in ConnectionStats ( fixes #3596 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3597
2016-09-14 19:38:55 +00:00