Commit Graph

1560 Commits

Author SHA1 Message Date
Xavier Michelon 1abda7555d GODT-2131: if refresh token is revoked, user gets signed out. 2022-11-22 07:23:07 +00:00
Romain LE JEUNE 520361f7f3
GODT-2111: properly name bridge-gui lock 2022-11-21 20:33:00 +01:00
Xavier Michelon c8c9e911f6 Other: chores: removed comments in bridge-gui that were used for the transition Go -> C++ of the Qt code. 2022-11-21 17:31:22 +00:00
James Houlahan eb62056755 GODT-2119: Only show supported label IDs to clients 2022-11-21 17:15:51 +00:00
James Houlahan 294d1edfee GODT-2120: Encrypt gluon store with gzip 2022-11-21 17:37:56 +01:00
James Houlahan febab47124 Other: Don't show corrupt vault as "no keychain" error 2022-11-21 17:15:28 +01:00
Leander Beernaert 8160fe5448 Other: Update liteapi to v0.43.0 2022-11-21 13:16:50 +01:00
Romain LE JEUNE 9169499087
Other: bridge Tacoma v2.5.11 2022-11-21 13:06:44 +01:00
Romain LE JEUNE 81facfd05f
GODT-2111: Give the child process its own group ID 2022-11-21 11:32:26 +01:00
Romain LE JEUNE 054d9b3f09
GODT-2111: Properly reset crash counter + remove additional Quit call. 2022-11-21 11:32:25 +01:00
Xavier Michelon a95eb759ca GODT-1910: use a single view for IMAP & SMTP SSL options. 2022-11-21 10:22:03 +00:00
James Houlahan d1f140ebcb Other: More descriptive event poll name 2022-11-21 10:20:28 +00:00
James Houlahan 721cd9f319 GODT-2002: Wait for API events to be applied after send
When we send a message, the send recorder records the sent message.
When the client then appends an identical message to the sent folder,
the deduplication works and instead returns the message ID of the
existing proton message, rather than creating a new message. Gluon is
expected to notice that it already has this message ID and perform
some deduplication stuff internally.

However, it can happen that gluon doesn't yet have this message ID,
because we haven't yet received the "Message Created" event from the
API. To prevent this, we poll the events after send and wait for all
new events to be applied.

There's still a chance that the event wasn't generated yet on the API
side. Not sure what we can do about this.
2022-11-21 10:20:28 +00:00
James Houlahan e6a780ebd4 Other: Don't encrypt vault version 2022-11-21 09:58:56 +00:00
James Houlahan 9868fae735 GODT-2105: Ensure ClientVersion is set in bug report request 2022-11-21 09:57:09 +00:00
James Houlahan c22037462e Other: Only update event ID in vault once all gluon updates were applied 2022-11-21 09:12:52 +00:00
Xavier Michelon 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
James Houlahan 46c0463e43 GODT-2107: Update user list after session revoke 2022-11-21 09:05:59 +00:00
James Houlahan 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
James Houlahan 48dfdabaf4 GODT-1975: Migrate keychain secrets 2022-11-21 09:00:51 +00:00
James Houlahan 7ed8d76d84 GODT-1976: Migrate app settings from prefs.json 2022-11-21 09:00:51 +00:00
James Houlahan 9e6cbcb35e GODT-2040: Bump UID validity when clearing sync status 2022-11-20 21:48:22 +01:00
James Houlahan 8c2096e813 Other: Bump liteapi to fix update merging algorithm 2022-11-20 12:10:48 +01:00
James Houlahan 2972e1273f GODT-2045: Timeouts should be considered network issues 2022-11-20 10:07:33 +00:00
James Houlahan 0ce0e4765b GODT-2122: Handle check for updates failure 2022-11-20 10:04:16 +00:00
Romain LE JEUNE 1517dd81e6
Other: set proc.info logs verbosity lower in Launcher 2022-11-20 09:44:31 +01:00
James Houlahan b517e3cd5b Other(test): Set log level in feature tests 2022-11-19 16:16:54 +01:00
James Houlahan a240c4531a Other: Bump max update and batch size to 256 MiB / 256 respectively 2022-11-19 16:06:25 +01:00
James Houlahan 7d84ab37f6 GODT-2100: Load users in parallel at startup 2022-11-19 12:13:33 +01:00
James Houlahan 6bdcdf7fd2 GODT-2033: Only set user agent from IMAP ID if not empty 2022-11-18 19:55:23 +01:00
Romain LE JEUNE 5e8e92b765
Other: fix build on other OS than linux... Ooops 2022-11-18 19:27:58 +01:00
Romain LE JEUNE 2006984b47
Other: Bridge Tacoma v2.5.10 2022-11-18 19:18:55 +01:00
Romain LE JEUNE aaa8a35ea8
Other: set gui logs with other logs in user data directory. 2022-11-18 18:45:45 +01:00
Xavier Michelon 204e320df4 GODT-2108: implement C++ Focus gRPC service client in bridge-gui. 2022-11-18 17:13:39 +00:00
James Houlahan 24a0ed41b9 Other(test): Disable broken test
Bumping liteapi version made the test server stricter (more conformant
with the real server). As a result, one of the tests broke; fix should
be in GODT-1989, which is not ready yet.
2022-11-18 17:43:27 +01:00
James Houlahan 3a08c1cdb6 Other: Update docstrings for locations 2022-11-18 17:32:15 +01:00
Leander Beernaert 2ff5731b39 GODT-2059: Attempt to fix log crash
Don't store the logrus entry as it might be possible that the standard
logrus logger can get changed in between resulting in stale pointers
inside the `Logrus.Entry` instance.
2022-11-18 17:08:29 +01:00
James Houlahan eb2423b0ed Other: Move sending logic to smtp.go 2022-11-18 17:05:20 +01:00
James Houlahan e60bbaa60f Other: Add more user-level logs 2022-11-18 13:30:45 +00:00
James Houlahan 65cc1d5ccf GODT-2110: Force attachment disposition if content ID is missing
We now set disposition during attachment upload. However, this presents
a problem: some clients use inline disposition but don't provide a
content ID. Our API doesn't support this. To mitigate the issue, we just
fall back to attachment disposition in this case.
2022-11-18 12:52:43 +01:00
James Houlahan f17b630b12 Other: Fix wrongly installed version
When manually installing an update, we want to manually install the
latest compatible version (`target`), not the absolute latest version
(`latest`). This is obviously a bug in the code because the mutex lock
being locked was `targetLock` but we were wrongly trying to install
`latest`.
2022-11-18 10:08:26 +00:00
Romain LE JEUNE 50da1e4704
GODT-2081: if keychain cannot be loaded do not wipe Vault and use a temp one. 2022-11-18 08:25:52 +01:00
Romain LE JEUNE 515a8689e9
Other: Bridge Tacoma v 2.5.9 2022-11-18 08:01:22 +01:00
Romain LE JEUNE 04b30fd694
GODT-2103: Trigger the version changed event. 2022-11-17 18:01:22 +01:00
James Houlahan e5095b2154 Other: Add API debug option in QA builds 2022-11-17 13:20:31 +00:00
James Houlahan 1e48ab4b9c GODT-2047: Clear last event ID when clearing sync status 2022-11-17 13:18:47 +00:00
James Houlahan fe5e8ce7f7 Other: Tidy up app.go a bit 2022-11-17 13:32:13 +01:00
James Houlahan 319d51cb80 Other: Bump gluon version to prevent crash on log failure 2022-11-17 12:52:23 +01:00
Xavier Michelon 14cad02b5a
GODT-2109: removed log message "Parent process XXX is still alive". 2022-11-17 11:18:47 +01:00
Romain LE JEUNE bc30a9db68
Other: Bridge Tacoma v2.5.8. 2022-11-17 08:09:25 +01:00