ebeec056cd
Other(test): Add test that we skip and report bad messages during sync
2022-12-07 12:10:02 +01:00
6c30a04ac0
Merge branch 'release/perth_narrows' into devel
2022-12-07 09:26:59 +01:00
58d04f9693
GODT-2187: Skip messages during sync that fail to build/parse
2022-12-06 14:07:13 +00:00
04881b9b78
GODT-2178: Bump go-proton-api to fix drafts
2022-12-05 15:14:30 +01:00
990b8cda96
GODT-2180: Allow login with FIDO2
...
The API docs didn't specify what the "integer" meant. Turns out it's a
bitfield; we can't compare with equality.
2022-12-05 14:22:38 +01:00
4003e0a2ab
GODT-2042: fix setup guide not always showing on first login.
2022-12-02 11:36:31 +01:00
6ac8a4c0bc
GODT-2160: Ensure we can safely move cache file
...
It's currently impossible to wait until all SQLite write finish to disk.
This is not guaranteed when closing the ent DB client.
The existing code to move the cache handles the case where the
new location is on a new drive. However, due to the above issue this can
now lead to database corruption.
To avoid database corruption we now use the `os.Rename` function and
prevent moving the cache between drives until a better solution can be
implemented.
2022-11-29 16:33:53 +01:00
0827d81617
Other: Bump gluon version to drop non-UTF-8 commands
2022-11-29 16:20:16 +01:00
e71e56f7fe
Other: Ensure context is string in sentry reports
2022-11-29 14:58:29 +00:00
9f64e8a6fa
Other: Wipe vault properly on factory reset
...
Deleting the file isn't enough because it's still held in memory
and is written back to disk on the next write (SetLastVersion during
bridge teardown).
2022-11-29 09:59:30 +01:00
1c374b59d3
GODT-2160: Prevent double closing of bridge if restart fails
...
Set imapServer instance to nil once the server is no longer running to
prevent multiple calls to close on shutdown.
2022-11-29 08:38:21 +01:00
ae7ae2886f
GODT-2041: Crash after factory reset
...
I forgot to remove the user from the users map during factory reset.
This meant the (deleted) would attempt to be closed during teardown.
2022-11-28 19:58:10 +01:00
e601245f01
Other(chore): Bump major version to v3
2022-11-23 16:08:27 +01:00
ad1fb47b0d
Other: Switch from liteapi to go-proton-api
2022-11-23 15:17:56 +01:00
57e9310510
Other: Use API call rather than server-specific method in test code
2022-11-22 16:01:01 +01:00
b81fa5ed39
GODT-2139: Validate key pass during login
2022-11-22 14:51:31 +00:00
0df4f41269
Other: Remove unused SyncBuffers setting
2022-11-22 13:59:06 +01:00
1abda7555d
GODT-2131: if refresh token is revoked, user gets signed out.
2022-11-22 07:23:07 +00:00
294d1edfee
GODT-2120: Encrypt gluon store with gzip
2022-11-21 17:37:56 +01:00
9868fae735
GODT-2105: Ensure ClientVersion is set in bug report request
2022-11-21 09:57:09 +00:00
1f0312573a
GODT-1846: remove restart cues, implement restart-less behaviour.
...
Other: fixed case issue in SSL member function names.
Other: removed 'restart' mention in SMTP and IMAP SSL settings.
GODT-1846: modified gRPC server to introduce ConnectionMode settings.
GODT-1846: implemented connection mode handling in bridge-gui.
GODT-1846: implemented error reporting in bridge-gui for connection mode.
Other: gathered all IMAP/SMTP server settings.
GODT-1846: wired IMAP/SMTP port change errors.
Other: Renamed some error events and signals.
Other: Fixed crash in IMAP restart when not started.
Other: dismiss port error notifications before changing ports.
Other: misc. fixes.
2022-11-21 09:08:52 +00:00
e05b99a0f1
Other(test): Remove unneeded reporter expectations
...
Gluon used to have a bug where it would unnecessarily call the
reporter's ReportMessageWithContext method whenever an IMAP client would
drop unexpectedly. After fixing the bug, we can remove these gomock
EXPECT.AnyTimes() calls.
2022-11-21 09:05:11 +00:00
9e6cbcb35e
GODT-2040: Bump UID validity when clearing sync status
2022-11-20 21:48:22 +01:00
2972e1273f
GODT-2045: Timeouts should be considered network issues
2022-11-20 10:07:33 +00:00
0ce0e4765b
GODT-2122: Handle check for updates failure
2022-11-20 10:04:16 +00:00
7d84ab37f6
GODT-2100: Load users in parallel at startup
2022-11-19 12:13:33 +01:00
6bdcdf7fd2
GODT-2033: Only set user agent from IMAP ID if not empty
2022-11-18 19:55:23 +01:00
e60bbaa60f
Other: Add more user-level logs
2022-11-18 13:30:45 +00:00
e5095b2154
Other: Add API debug option in QA builds
2022-11-17 13:20:31 +00:00
e087a7972e
GODT-2003: introduces 3 phases user state (SignedOut/Locked/Connected)
...
WIP: introduced UserState enum in GUI and implemented logic.
2022-11-16 16:24:55 +01:00
49b3c18903
GODT-2039: bridge monitors bridge-gui via its PID (port from v2.4)
2022-11-16 15:21:33 +01:00
ae87d7b236
GODT-1913: pass reporter to gluon, limit restarts, add crash handlers.
2022-11-16 13:48:31 +01:00
31fb878bbd
GODT-2070: Implement SASL login for SMTP
...
go-smtp now comes with out of the box support for SASL PLAIN but it
still requires manual implementation of SASL LOGIN (deprecated).
2022-11-16 13:48:31 +01:00
59278913ca
GODT-2037: Handle and log API refresh event
2022-11-16 13:48:31 +01:00
2023df3ef8
Other: Log mailbox message counts at startup
2022-11-16 13:48:31 +01:00
223b14e556
Other: Configure attachment pool size in vault
2022-11-16 13:48:31 +01:00
04f2dd1a0b
GODT-2021: Remove gluon data when deleting user
2022-11-16 13:48:31 +01:00
bbbc18b959
GODT-1977: revert the pre-release changes.
2022-11-16 13:48:30 +01:00
c08d0eff7a
GODT-1977: fix launcher for v2 to v3 updates.
2022-11-16 13:48:30 +01:00
4c4c592f31
GODT-2008: Add unit test asserting that primary address is listed first
2022-11-16 13:48:30 +01:00
d74873be31
GODT-1978: Don't install the same update twice
2022-11-16 13:48:30 +01:00
78fc5ec458
Other: Simple gRPC client/server under test
2022-11-16 13:48:30 +01:00
d093488522
GODT-1978: Auto-updates
2022-11-16 13:48:30 +01:00
c548ba85fe
Other: Add more extensive logging
2022-11-16 13:48:30 +01:00
bc7912e8fb
GODT-2022: Fix change between address modes
2022-11-16 13:48:30 +01:00
af542a2fc1
Other: Ensure logout works when offline
2022-11-16 13:48:30 +01:00
943d95a725
Other: Add UserLoading/UserLoadFail events
2022-11-16 13:48:30 +01:00
924a423488
Other: Add some more debug logs
2022-11-16 13:48:30 +01:00
b72de5e3a4
Other: Fix goroutine leak in OnStatusDown
...
We should spawn the goroutine as a bridge async task rather than as a
normal goroutine
2022-11-16 13:48:30 +01:00
93d9ae32fc
Other: Only listen on localhost and add send test
...
We should only listen on constants.Host when serving IMAP and SMTP.
This change fixes that. It also adds a test that we can send over SMTP
and receive over IMAP.
2022-11-16 13:48:30 +01:00