305d180a5f
fix(GODT-2774): only check telemetry availability for the current user.
2023-07-06 15:28:24 +02:00
c4f80103b6
fix(GODT-2774): Add external context to telemetry tasks
...
This ensures they get cancelled if the parent context becomes invalid
2023-07-06 15:28:05 +02:00
6579cdfc7f
fix(GODT-2774): Add context to Authorize in gluon.Connector
...
Backported from: https://github.com/ProtonMail/gluon/pull/379
2023-07-06 13:28:58 +02:00
9c389e3007
fix(GODT-2708): fix dimensions event format + handling of ReportClicked event.
2023-07-04 09:59:43 +00:00
7e9a5934c5
feat(GODT-2707): set bridge-gui default log level to 'debug'.
...
(cherry picked from commit cc1d0e803b )
2023-07-04 11:14:40 +02:00
be422001e8
fix(GODT-2756): fix for 'Settings' context menu opening the 'Help' page.
...
(cherry picked from commit b2eb35592f )
2023-07-03 16:36:12 +02:00
26694d3bd8
feat(GODT-2674): Add more logs during update failed.
...
(cherry picked from commit 3afd94c61d )
feat(GODT-2674): add more logs to failed update.
(cherry picked from commit 4902898880 )
2023-07-03 10:02:59 +02:00
6359b8639e
feat(GODT-2750): disable raise on main window when a notification is clicked on Linux.
...
(cherry picked from commit 4e080b59d3 )
2023-07-03 07:33:39 +00:00
ac75410657
feat(GODT-2709): Remove the config status file when user is removed.
2023-06-30 14:48:42 +02:00
72911235c5
feat(GODT-2748): log calls that cause main window to show, with reason.
...
(cherry picked from commit a91d9762db )
# Conflicts:
# internal/frontend/bridge-gui/bridge-gui/QMLBackend.h
2023-06-30 10:37:33 +02:00
60de00c73f
feat(GODT-2705): added log entries for focus service on client and server sides.
...
(cherry picked from commit ae65385c38 )
2023-06-30 08:18:23 +00:00
bac4b90c1d
feat(GODT-2712): Feed config_status with user action while pending.
2023-06-30 07:51:53 +00:00
ea47c9aa1c
feat(GODT-2728): remove the sentry report for gRPC event stream interruptions in bridge-gui.
...
(cherry picked from commit 58b45d8458 )
2023-06-30 09:26:03 +02:00
03cf601921
feat(GODT-2715): Add Unitary test for configStatus event.
2023-06-29 13:26:08 +02:00
c43739a7ef
feat(GODT-2714): Apply PR comments.
2023-06-29 09:54:42 +02:00
720f662afe
feat(GODT-2714): Set Configuration Status to Failure and send Recovery event when issue is solved.
2023-06-29 09:10:28 +02:00
fa4c0ec823
feat(GODT-2713): Send config_progress event once a day if the configuration is stucked in pending for more than a day.
2023-06-28 14:44:20 +02:00
08af1da966
feat(GODT-2711): Send config_abort event on User removal.
2023-06-28 14:40:51 +02:00
ed8475dacf
feat(GODT-2710): Send config success on IMAP/SMTP connection..
2023-06-28 14:39:49 +02:00
e91cdca6f3
feat(GODT-2716): Make Configuration Statistics persistent.
2023-06-28 10:34:01 +00:00
b77512dfd9
feat(GODT-2709): Init Configuration status.
2023-06-27 11:24:28 +02:00
12f9fb03c3
chore: Log errors on failed message Downloads
2023-06-07 16:38:57 +02:00
5c606aee73
chore: Fix linter errors
2023-06-05 13:48:56 +02:00
51315d5d2b
feat(GODT-2653): Log API error details on Message import and send
2023-06-05 13:21:04 +02:00
cde9c19f71
feat(GODT-2655): display internal build time tag in log and GUI.
2023-06-05 07:37:10 +02:00
ade2fd9403
chore: Add error logs when messages fail to build during sync
2023-06-02 13:17:08 +02:00
802f7dbc67
feat(GODT-2673): Use NoClient as UserAgent without any client connected and...
2023-06-01 15:15:37 +00:00
c4dc829e6d
fix(GODT-2669): Display sentry ID in bridge init log.
2023-05-31 14:28:26 +02:00
0eab1c0c2b
fix(GODT-2672): fix context cancelled when IMAP/SMTP parameters change is in progress.
2023-05-31 08:10:59 +02:00
0cef181432
fix(GODT-2437): Fix lint.
2023-05-25 09:25:25 +02:00
262c4c5d95
fix(GODT-2437): Fix test + bump Gluon with silenced report.
2023-05-25 09:12:15 +02:00
84a771d9fe
fix(GODT-2437): Silence harmless report to sentry.
2023-05-24 17:18:56 +02:00
bc5de2b884
fix(GODT-2638): Validate messages before import.
...
Ensure messages have required header fields and adhere to the rfc5322
spec before import.
2023-05-24 06:38:13 +00:00
7d54e6907d
chore: disable building of bridgepp-test app in build script.
...
Also enabled verbose cmake output for easier debugging.
2023-05-23 16:06:08 +02:00
4b52d998db
chore: merge release/Rialto into devel
2023-05-23 15:53:29 +02:00
aa72fd641d
feat(GODT-2631): Bump go to 1.20.
2023-05-23 13:37:12 +00:00
9c25f56fe6
test: fix flaky tests.
2023-05-22 11:16:56 +00:00
bb99695e68
feat(GODT-2639): Enhance sentry init log.
2023-05-22 09:30:51 +00:00
35f0e081a5
fix(GODT-2628): Attempt to fix closed channel panic on logout
...
It should not be possible to reach this state on purpose. But due to
scheduling and synchronization variances, it is possible in theory that
a UserDeathEvent can occur at the same time as the bridge is closing,
causing a call to `User.Close()` to be executed 2 times.
To avoid this in the future we just clear the map after all the channels
have been closed.
2023-05-17 11:54:02 +00:00
40dc17aea5
feat(GODT-2161): auto-submit 2FA.
2023-05-17 10:10:42 +00:00
5fee2f707b
fix(GODT-2627): Properly handle recording of message with Bcc fields
...
Ensure the SMTP send recorder properly handles the recording of messages
which may have the same body hash but have different recipients. E.g.:
send the same message twice to 2 different users via Bcc.
The send recorder now maintains a list of send requests and waiting for
a message to be sent is done one the oldest of the messages.
2023-05-17 11:01:30 +02:00
d6304b087a
fix(GODT-2627): Fix crash on closed channel
...
See `TestSendHasher_DualAddDoesNotCauseCrash`'s comment for more
details.
2023-05-17 11:01:30 +02:00
9fc9f5ad9f
fix(GODT-2635): Ensure Bridge can be compiled with GCC 13
...
Requires updating vcpkg to include the port fixes.
2023-05-16 11:38:58 +02:00
d8ccc6c05d
fix(GODT-2626): Handle rare crash due to missing address update ch
...
Ensure that we can handle the rare case that can cause a crash if for
whichever reason we end up with an Address Delete and Message
Create/Update in the same event object.
2023-05-16 10:41:36 +02:00
4e3ad4f7fa
fix(GODT-2626): Server Events should not be merged.
...
d18e5932b28f83b201709a04fb7b8c6f74003574
Includes GPA bump: https://github.com/ProtonMail/go-proton-api/pull/80
2023-05-16 09:53:41 +02:00
0ef9c9c9c9
fix(GODT-2606): Improve Vault concurrency scopes
...
Rewrite the vault to have one RWlock rather then two separate locks for
data and reference counts.
In certain circumstance, it could be possible that that different
requests could end up in undefined states if a user got deleted
successfully while at he same time another goroutine/thread is loading
the given user.
While I have not been able to reproduce this in a test, restricting the
access scope to one lock rather than two, should avoid corner cases
where logic code is executing outside of the lock scope.
2023-05-15 13:28:00 +02:00
faf3780eee
test: Fix TestBridge_Report
2023-05-12 15:37:33 +02:00
98031d296e
Revert "fix(GODT-2588): Always perma-delete from Drafts/Trash"
...
This reverts commit f9a0c35daa .
2023-05-12 10:19:56 +02:00
6adb440b84
fix(GODT-2623): log IMAP/SMTP login failure as error.
2023-05-12 07:28:41 +00:00
a3e07428b5
chore: Improve CPC code
...
* Remove distinction between values with and without reply.
* Hide types that don't need to be public.
* Don't allow direct access to the request's internal types.
2023-05-12 09:06:54 +02:00