Jakob Borg
0e79b532cf
build: Update to patched github.com/gobwas/glob ( fixes #8386 ) ( #8387 )
...
The glob package has seen very little activity the last few years so I'm
not holding my breath on getting this merged.
2022-06-15 21:49:15 +02:00
Jakob Borg
520ca4bcb0
script, gui: Exclude bots from the in-GUI authors list
2022-05-06 08:00:22 +02:00
Jakob Borg
f8c51d801a
lib/discover: Filter locally announced addresses ( fixes #7289 ) ( #8302 )
2022-05-04 18:43:00 +02:00
Jakob Borg
16c0c2f7a7
Merge branch 'release'
...
* release:
lib/connections: Correct race on loop variable (fixes #8320 ) (#8321 )
2022-05-04 18:25:58 +02:00
Jakob Borg
2145b3701d
lib/connections: Correct race on loop variable ( fixes #8320 ) ( #8321 )
2022-05-04 18:17:03 +02:00
Jakob Borg
ce0ded7c78
lib/connections: Correct race on loop variable ( fixes #8320 ) ( #8321 )
2022-05-04 18:16:36 +02:00
Jakob Borg
334a78f185
cmd/strelaysrv, cmd/strelaypoolsrv: Sanitize query strings ( fixes #8314 ) ( #8315 )
...
Use the proper encoding function in the relay server when constructing
the URL. In the pool server, parse and re-encode the query values to
sanitize whatever the client sent.
2022-05-02 10:38:49 +02:00
Jakob Borg
623ec03dad
lib/model: Correct type of event data ( fixes #8294 ) ( #8295 )
...
These things are fragile, every event should use an ${eventType}Data struct or something instead.
2022-04-21 15:45:31 +02:00
Jakob Borg
c0de42e3df
gui: Use neutral color for zero out of zero listeners ( #8281 )
2022-04-20 14:43:11 +02:00
Jakob Borg
61dffabf97
cmd/syncthing, lib/logger: Add date to default log format ( fixes #8272 ) ( #8273 )
...
This changes the default log format to include the date.
2022-04-15 07:46:14 +04:00
Jakob Borg
9b09bcc5f1
lib/connections: Always run a simple connection test ( #7866 )
2022-04-10 20:54:42 +02:00
Jakob Borg
a3a4da6e3e
gui: Use versioned link to documentation in bottom bar ( #8204 )
2022-03-08 07:56:42 +01:00
Jakob Borg
f890fe6fd3
lib/config: Improve clarity of free space errors ( fixes #8180 ) ( #8191 )
2022-02-24 17:07:51 +01:00
Jakob Borg
013c757a84
github: Provide Git history when checking out for actions
2022-02-21 14:57:21 +01:00
Jakob Borg
479712cdc5
cmd/stdiscosrv: Don't start replication listener without peers ( fixes #8143 ) ( #8144 )
...
The intention was that if no peers are given, we shouldn't start the
listener. We did that anyway, because:
- splitting an empty string on comma returns a slice with one empty
string in it
- parsing the empty string as a device ID returns the empty device ID
so we end up with a valid replication peer which is the empty device ID.
2022-01-27 09:36:54 +01:00
Jakob Borg
b6d1e16b4e
lib/protocol: Switch to a newer lz4 package ( #8122 )
2022-01-17 18:52:43 +01:00
Jakob Borg
1242ac74ab
github: Make docs commits as release bot
2022-01-12 21:56:21 +01:00
Jakob Borg
4fb7e04686
github: Use specific token to override branch protection
2022-01-10 14:45:47 +01:00
Jakob Borg
dc0dbed96e
github: Add docs update workflow ( #8105 )
2022-01-10 14:28:39 +01:00
Jakob Borg
bc3d306dd7
cmd/syncthing: Error capitalization
2022-01-07 11:50:19 +01:00
Jakob Borg
7c3b267645
meta: Add test for deprecated package ioutil ( #8053 )
2021-11-22 10:11:00 +01:00
Jakob Borg
1754c93370
lib/config, lib/ignore: Write Windows line endings ( fixes #7115 ) ( #8052 )
2021-11-22 09:38:24 +01:00
Jakob Borg
4b750b6dc3
all: Remove usage of deprecated io/ioutil ( #7971 )
...
As of Go 1.16 io/ioutil is deprecated. This replaces usage with the
corresponding functions in package os and package io.
2021-11-22 08:59:47 +01:00
Jakob Borg
e2288fe441
lib/relay: Send SNI when the address is a host name ( fixes #8014 ) ( #8015 )
2021-11-22 08:31:03 +01:00
Jakob Borg
12fb7f2a0a
lib/model: Correct "reverting folder" log entry
2021-11-17 12:52:10 +01:00
Jakob Borg
f1bf4d899a
lib/model: Correct handling of fakefs cache
...
We looked under one cache key, then stored under another...
2021-11-17 12:52:10 +01:00
Jakob Borg
36c044562c
gui, man, authors: Update docs, translations, and contributors
2021-10-20 07:45:29 +02:00
Jakob Borg
f760ef15b0
gui, man, authors: Update docs, translations, and contributors
2021-10-13 07:45:24 +02:00
Jakob Borg
4e513b8393
gui, man, authors: Update docs, translations, and contributors
2021-10-06 07:45:42 +02:00
Jakob Borg
92eaf52c21
lib/protocol: Test to lock down encryption key derivation
...
So that we don't inadvertently change how these things work.
2021-10-04 14:36:28 +02:00
Jakob Borg
b0460079c1
gui, man, authors: Update docs, translations, and contributors
2021-09-29 07:45:32 +02:00
Jakob Borg
c5ec6cd7ef
build: Fix deepsource test & exclude patterns ( #7969 )
2021-09-26 12:08:59 +02:00
Jakob Borg
73c5184518
build: Update all dependencies ( #7968 )
...
Also add a script step for how to do this, as frankly I forget each time
what the canonical way is.
`go run build.go update-deps`
2021-09-26 12:08:23 +02:00
Jakob Borg
fa05a1ba8c
gui, man, authors: Update docs, translations, and contributors
2021-09-22 07:45:31 +02:00
Jakob Borg
30e5243f5e
build: Update go-ole for Windows/arm
2021-09-17 17:10:32 +02:00
Jakob Borg
3c66d93aba
gui, man, authors: Update docs, translations, and contributors
2021-09-15 07:45:29 +02:00
Jakob Borg
4868d347db
gui, man, authors: Update docs, translations, and contributors
2021-09-08 07:45:36 +02:00
Jakob Borg
96f5a11fd5
gui, man, authors: Update docs, translations, and contributors
2021-09-01 07:45:32 +02:00
Jakob Borg
2816780b52
lib/api: Set "Secure" on session cookies served over HTTPS (ref #7399 ) ( #7907 )
...
So that it does not unnecessarily leak over clear text connections.
2021-08-27 17:56:54 +02:00
Jakob Borg
c76bd7dcc4
gui, man, authors: Update docs, translations, and contributors
2021-08-25 07:45:41 +02:00
Jakob Borg
ca908270ec
gui, man, authors: Update docs, translations, and contributors
2021-08-18 07:45:38 +02:00
Jakob Borg
d47745a86b
all: Update build constraints to Go 1.17 style ( #7894 )
2021-08-17 10:10:41 +02:00
Jakob Borg
8c94ce8d14
build: Simplify gem command in Debian Docker image
2021-08-17 09:38:42 +02:00
Jakob Borg
a615f868a5
gui, man, authors: Update docs, translations, and contributors
2021-08-11 07:45:33 +02:00
Jakob Borg
6d0816e85a
gui, man, authors: Update docs, translations, and contributors
2021-08-04 07:45:31 +02:00
Jakob Borg
b197b698a4
gui, man, authors: Update docs, translations, and contributors
2021-07-28 07:45:33 +02:00
Jakob Borg
eb6cad7f93
gui, man, authors: Update docs, translations, and contributors
2021-07-21 07:45:25 +02:00
Jakob Borg
eab268f5f8
gui, man, authors: Update docs, translations, and contributors
2021-07-14 07:45:27 +02:00
Jakob Borg
a56f70ab94
gui, man, authors: Update docs, translations, and contributors
2021-07-07 07:45:25 +02:00
Jakob Borg
82741ad207
gui, man, authors: Update docs, translations, and contributors
2021-06-30 07:45:30 +02:00
Jakob Borg
993a3ebe73
lib/api: Always include usage reporting data in support bundle ( #7786 )
2021-06-24 22:00:14 +04:00
Jakob Borg
8040502599
gui, man, authors: Update docs, translations, and contributors
2021-06-23 07:45:27 +02:00
Jakob Borg
adb7763f87
gui, man, authors: Update docs, translations, and contributors
2021-06-16 07:45:27 +02:00
Jakob Borg
18a608a6ff
gui, man, authors: Update docs, translations, and contributors
2021-06-09 07:45:34 +02:00
Jakob Borg
ce65aea0ab
lib/db: Use a more concurrent GC ( fixes #7722 ) ( #7750 )
...
This changes the GC mechanism so that the first pass (which reads all
FileInfos to populate bloom filters with block & version hashes) can
happen concurrently with normal database operations.
The big gcMut still exists, and we grab it temporarily to block all
other modifications while we set up the bloom filters. We then release
the lock and let other things happen, with those other things also
updating the bloom filters as required. Once the first phase is done we
again grab the gcMut, knowing that we are the sole modifier of the
database, and do the cleanup.
I also removed the final compaction step.
2021-06-07 10:52:06 +02:00
Jakob Borg
1e212a8dc6
cmd/syncthing: Wording on error return in "cli debug file"
2021-06-05 11:45:29 +02:00
Jakob Borg
0e9d2a13af
cmd/syncthing: Improve "cli debug file" handling
...
Proper URL encoding, and return a sensible error when it's not found.
2021-06-05 11:19:02 +02:00
Jakob Borg
accaf23aa3
gui, man, authors: Update docs, translations, and contributors
2021-06-02 07:45:38 +02:00
Jakob Borg
fbaf696821
readme: Remove drama ( #7711 )
2021-05-26 14:59:49 +02:00
Jakob Borg
abe3483a8f
gui, man, authors: Update docs, translations, and contributors
2021-05-26 07:45:29 +02:00
Jakob Borg
ab2729ab79
gui, man, authors: Update docs, translations, and contributors
2021-05-19 07:45:35 +02:00
Jakob Borg
97437cad64
lib/fs: Ignore normalization differences in case insensitive lookup ( fixes #7677 ) ( #7678 )
2021-05-17 12:35:03 +02:00
Jakob Borg
c9ea773a22
gui, man, authors: Update docs, translations, and contributors
2021-05-12 07:45:34 +02:00
Jakob Borg
7bbca12ff8
Merge branch 'release'
...
* release:
build: Ignore error from pkill on apt upgrade (fixes #7628 ) (#7629 )
2021-05-06 13:23:02 +02:00
Jakob Borg
2b2d24fe20
gui, man, authors: Update docs, translations, and contributors
2021-05-05 07:45:35 +02:00
Jakob Borg
ed9cb923fb
build: Update most dependencies (fixes: all the dependabot PRs) ( #7622 )
2021-04-30 09:11:11 +02:00
Jakob Borg
f23fd683a9
gui, man, authors: Update docs, translations, and contributors
2021-04-28 07:45:43 +02:00
Jakob Borg
755ed6f69f
Merge branch 'release'
...
* release:
lib/model: Handle invalid needed items on send-only (ref #7476 ) (#7596 )
gui: Handle empty path in validation (ref #7379 ) (#7595 )
cmd/syncthing: Don't fail early on api setup error (fixes 7558) (#7591 )
2021-04-27 07:59:51 +02:00
Jakob Borg
74823e81e9
all: Deprecate TLS 1.2 on sync connections ( fixes #7594 ) ( #7598 )
...
This makes us use TLS 1.3+ on sync connections by default. A new option
`insecureAllowOldTLSVersions` exists to allow communication with TLS
1.2-only clients (roughly Syncthing 1.2.2 and older). Even with that
option set you get a slightly simplified setup, with the cipher suite
order fixed instead of auto detected.
2021-04-26 10:04:35 +02:00
Jakob Borg
59bdcdabba
gui, man, authors: Update docs, translations, and contributors
2021-04-21 07:45:43 +02:00
Jakob Borg
e4c995a321
lib/model: Don't remove non-empty .stfolder ( #7578 )
2021-04-15 18:13:35 +02:00
Jakob Borg
e893ca1c9a
gui, man, authors: Update docs, translations, and contributors
2021-04-14 07:45:37 +02:00
Jakob Borg
1658afc883
gui, man, authors: Update docs, translations, and contributors
2021-04-07 07:45:38 +02:00
Jakob Borg
67aaeef537
Merge branch 'release'
...
* release:
cmd/syncthing: Rename --conf back to --config
lib/db: Fix comparison of pending folder timestamps (fixes #7532 ) (#7535 )
2021-04-06 10:47:00 +02:00
Jakob Borg
13679284ac
cmd/syncthing: Rename --conf back to --config
...
This was inadvertently changed in the flag migration.
2021-04-06 10:42:29 +02:00
Jakob Borg
a514b65d81
cmd/syncthing: Rename --conf back to --config ( fixes #7549 ) ( #7550 )
2021-04-06 10:40:52 +02:00
Jakob Borg
4fc3446f24
Merge branch 'release'
...
* release:
Merge pull request from GHSA-x462-89pf-6r5h
2021-04-06 08:05:57 +02:00
Jakob Borg
fb4fdaf4c0
Merge pull request from GHSA-x462-89pf-6r5h
2021-04-06 08:03:22 +02:00
Jakob Borg
8e38ecdeb2
Merge pull request from GHSA-x462-89pf-6r5h
2021-04-06 08:00:00 +02:00
Jakob Borg
7778f50b50
gui, man, authors: Update docs, translations, and contributors
2021-03-31 07:45:27 +02:00
Jakob Borg
70b9654671
gui, man, authors: Update docs, translations, and contributors
2021-03-24 07:45:32 +01:00
Jakob Borg
ebcd22b02b
lib/osutil: Fix raising max FDs on macOS ( #7507 )
...
There was a logic mistake, so the limit in question wasn't used. On my
macOS this doesn't seem to matter, the hard limit returned is 2^63-1 and
setting the soft limit to that works. However I'm assuming that's not
the case for older macOSes since it was so nicely documented, so we
should still have this working. (10240 FDs should be enough for
anybody.)
2021-03-20 16:32:36 +01:00
Jakob Borg
fdd823d2cb
lib/osutil: Remove unused code
2021-03-17 23:18:07 +01:00
Jakob Borg
8ef504f745
all: Simplify some method calls ( #7499 )
...
strings.Replace(a, b, c, -1) -> strings.ReplaceAll(a, b, c)
(Go 1.12) and who knows what was up with that dialQueue.Sort() thing.
2021-03-17 23:12:26 +01:00
Jakob Borg
960e850a78
cmd/uraggregate: Ignore errors harder ( #7498 )
...
We were already ignoring them, it just didn't look like it.
2021-03-17 22:55:43 +01:00
Jakob Borg
ea701a4e9e
cmd/syncthing: Error handling on upgrade ( #7497 )
...
dat innocuous little colon
2021-03-17 22:52:43 +01:00
Jakob Borg
3ac858b150
all: Remove miscellaneous vestigial code ( #7495 )
2021-03-17 22:23:12 +01:00
Jakob Borg
f4372710bf
all: Remove crypto/md5 ( #7493 )
...
This is a mostly pointless change to make security scanners and static
analysis tools happy, as they all hate seeing md5. None of our md5 uses
were security relevant, but still. Only visible effect of this change is
that our temp file names for very long file names become slightly longer
than they were previously...
2021-03-17 22:22:49 +01:00
Jakob Borg
f39477bbd5
lib/api: Missing error handling in API delete-device ( #7494 )
2021-03-17 22:08:44 +01:00
Jakob Borg
6e5514419d
lib/db: Fix some omitted error checks, unused variable ( #7489 )
2021-03-17 21:41:07 +01:00
Jakob Borg
81484699db
lib/model: Actually break puller loop on context cancel ( #7492 )
...
Current break does nothing (breaks the select).
2021-03-17 21:34:52 +01:00
Jakob Borg
6d93d9c488
deepsource: Test patterns
2021-03-17 21:12:51 +01:00
Jakob Borg
e321bd3941
lib/*/auto: Add noassets files ( #7490 )
...
This adds a couple of dummy asset files protected by the "noassets"
build tag. The purpose is that it should be possible for, for example,
CI tools and static analysis things to compile and analyze the source
tree without our custom asset generation step. Also makes `go test -tags
noassets ./...` work without building assets first.
2021-03-17 21:03:35 +01:00
Jakob Borg
21e6849f2d
Add DeepSource for static analysis
2021-03-17 20:05:20 +01:00
Jakob Borg
1814f4693d
gui, man, authors: Update docs, translations, and contributors
2021-03-17 07:45:40 +01:00
Jakob Borg
e0dd737822
gui: Fix validation and help texts in versioning editor ( fixes #7481 ) ( #7482 )
2021-03-16 09:30:07 +01:00
Jakob Borg
4d979a1ce9
all: Truncate some timestamps ( fixes #7457 ) ( #7459 )
...
This truncates times meant for API consumption to second precision,
where fractions won't typically matter or add any value. Exception to
this is timestamps on logs and events, and of course I'm not touching
things like file metadata.
I'm not 100% certain this is an exhaustive change, but it's the things I
found by grepping and following the breadcrumbs from lib/api...
I also considered general-but-ugly solutions, like having the API
serializer itself do reflection magic or even regexps on returned
objects, but decided against it because aurgh...
2021-03-12 10:35:10 +01:00
Jakob Borg
cdef503db6
all: Make config.Wrapper an actual suture.Service ( fixes #7451 ) ( #7452 )
2021-03-11 14:51:00 +01:00
Jakob Borg
df08984a58
lib/api: Sanitize names used in certificates ( fixes #7434 ) ( #7435 )
2021-03-11 13:15:03 +01:00
Jakob Borg
5548a8eb7a
gui, man, authors: Update docs, translations, and contributors
2021-03-10 07:45:45 +01:00