Romain LE JEUNE
91900a7942
feat(GODT-2357): Hide DSN_SENTRY and use single setting point for DSN_SENTRY.
2023-03-06 08:25:24 +00:00
James Houlahan
04a7a81e27
chore(GODT-2444): Bad event info
2023-03-03 13:02:09 +00:00
James Houlahan
53d5619c51
fix(GODT-2447): Don't assume timestamp exists in log filename
2023-03-03 10:27:21 +01:00
Leander Beernaert
8aec11a634
chore: Bump Gluon for GODT-2427, GODT-2419, GODT-2429
...
https://github.com/ProtonMail/gluon/pull/313
https://github.com/ProtonMail/gluon/pull/312
2023-03-02 12:50:22 +00:00
Leander Beernaert
69aa784d32
fix(GODT-2426): Fix crash on user delete
...
Ensure we are always acquiring a write lock when modifying the user's
`updateCh` contents.
2023-03-01 12:02:12 +01:00
Leander Beernaert
9e4310712c
fix(GODT-2419): Use connector.ErrOperationNotAllowed
...
Return this error when we detect operations that we know are not allowed
so that gluon does not report them to sentry.
Includes Gluon update for the connector error
(https://github.com/ProtonMail/gluon/pull/309 )
2023-02-28 17:02:35 +01:00
Leander Beernaert
0b35b275d3
fix(GODT-2333): Do not allow modifications to All Mail label
...
Rather than waiting for API to reply, prevent these operations from
taking place in the first place.
2023-02-28 16:51:23 +01:00
Leander Beernaert
2db5a04e7a
fix(GODT-2417): Gluon update to address ticket issues
...
* GODT-2417: Fixes connector requests for recovered messages.
* GODT-2416: Allow message updates to work if the literal is missing.
2023-02-28 13:41:15 +01:00
Jakub
c6f1f159f3
chore: Bridge Perth Narrows 3.0.18
2023-02-28 06:53:16 +01:00
Xavier Michelon
82af4e01bc
feat(GODT-2364): wait and retry once if the gRPC service config file exists but cannot be opened.
2023-02-28 06:21:36 +01:00
Xavier Michelon
9ad5f74409
feat(GODT-2364): added optional details to C++ exceptions.
2023-02-28 06:21:25 +01:00
Xavier Michelon
10cf153678
fix(GODT-2413): use qEnvironmentVariable() instead of qgetenv().
2023-02-27 15:41:26 +01:00
James Houlahan
5ba07db7e3
chore: Bump Gluon for GODT-2399, GODT-2400 and GODT-2414
...
fix(GODT-2399): Defer updated message deletion
fix(GODT-2400): Allow state updates to be applied if command fails
fix(GODT-2414): Multiple deletion bug in WriteControlledStore
2023-02-27 14:53:37 +01:00
James Houlahan
ad0d4ebd36
fix(GODT-2412): Don't treat context cancellation as BadEvent
2023-02-27 14:34:35 +01:00
James Houlahan
9f3c14ab1e
fix(GODT-2404): Handle unexpected EOF
...
When fetching too many attachment bodies at once, the read can fail with
io.ErrUnexpectedEOF. In that case, we returun an error so the fetch is retried.
2023-02-27 14:33:44 +01:00
Leander Beernaert
74cf5d422b
fix(GODT-2390): Missing changes from pervious commit
...
Always reports error type to sentry.
Add error checks for get event as well.
2023-02-27 14:33:38 +01:00
Leander Beernaert
dcf694588c
fix(GODT-2390): Add reports for uncaught json and net.opErr
...
Report to sentry if we see some uncaught network err, but don't force
the user logout.
If we catch an uncaught json parser error we report the error to sentry
and let the user be logged out later.
Finally this patch also prints the error type in UserBadEvent sentry
report to further help diagnose issues.
2023-02-27 14:33:21 +01:00
Jakub
82c388a0dd
chore: Bridge Perth Narrows 3.0.18
2023-02-23 06:58:54 +01:00
James Houlahan
94ed09b437
feat(GODT-2366): Handle failed message updates as creates
...
This handles the following case:
- event says message was created
- we try to fetch the message but API says the doesn’t exist yet — we skip applying the “message created” update
- event then says message was updated at some point in the future
- we try to handle it but fail because we don’t have the message — we should treat it as a creation
2023-02-21 16:07:27 +01:00
James Houlahan
57962e5757
chore: Bump gluon to create missing messages during MessageUpdated
2023-02-21 16:07:27 +01:00
James Houlahan
8a5c8eaf6e
chore: Use gluon temp/hotfix-perth-narrows branch
2023-02-21 16:07:27 +01:00
Jakub
30029f489e
doc: changelog typo
2023-02-17 13:34:03 +01:00
Jakub
2faeebe9e7
chore: Bridge Perth Narrows 3.0.16/17
2023-02-16 17:46:31 +01:00
James Houlahan
f6727a56d2
fix(GODT-2371): Continue, not return, when handling draft
2023-02-16 17:46:24 +01:00
Jakub
d7fd39503f
chore: Bridge Perth Narrows 3.0.15/16
2023-02-13 15:06:36 +01:00
Jakub
b4b66f94ec
feat(GODT-2355): improve wording and actions on bad event
2023-02-13 14:27:34 +01:00
Jakub
cbd36184bd
feat(GODT-2354): report failed to load users.
2023-02-10 11:53:05 +00:00
Jakub
465f754803
feat(GODT-2353): show popup only after 3.0.16
2023-02-09 17:00:58 +01:00
James Houlahan
2fa7c97f39
fix(GODT-2351): Bump GPA to better handle net.OpError
2023-02-09 12:04:39 +01:00
Jakub
9048b14fdb
chore: Bridge Perth Narrows v3.0.14
2023-02-07 16:36:38 +01:00
Leander Beernaert
43100d11bf
fix(GODT-2323): Fix Expunge not issued for move
...
When moving between system labels the expunge commands were not being
issued.
2023-02-07 15:09:23 +01:00
James Houlahan
4876314cf5
fix(GODT-2341): Handle URL error
2023-02-07 14:31:06 +01:00
Jakub
2f75131710
fix(GODT-2340): improve logging
2023-02-07 14:31:06 +01:00
Romain Le Jeune
1e09fd6662
feat(GODT-2278): improve sentry logs.
2023-02-07 14:31:06 +01:00
James Houlahan
48f2c56caa
fix(GODT-2327): Better sleep (with context)
2023-02-07 14:31:06 +01:00
James Houlahan
20d83dd476
fix(GODT-2327): Loop to retry until sync has complete
2023-02-07 14:31:06 +01:00
James Houlahan
9c6be78b4c
fix(GODT-2327): Don't retry with abortable context because it's canceled
2023-02-07 14:31:06 +01:00
James Houlahan
0a8e71771e
fix(GODT-2327): Fix lint issue
2023-02-07 14:31:06 +01:00
James Houlahan
29d1c7bccd
fix(GODT-2327): Remove unnecessary sync abort call
2023-02-07 14:31:06 +01:00
James Houlahan
ca1996a670
fix(GODT-2327): Properly cancel event stream when handling refresh
2023-02-07 14:31:06 +01:00
James Houlahan
ab1c1c474a
fix(GODT-2327): Clear update channels whenever clearing sync status
2023-02-07 14:31:06 +01:00
Jakub
d7cac8a8f0
fix(GODT-2327): avoid windows delete all deadlock
2023-02-07 14:31:06 +01:00
James Houlahan
63bc87cc86
fix(GODT-2327): Only start processing events once sync is finished
2023-02-07 14:31:06 +01:00
James Houlahan
232875d5cc
fix(GODT-2327): Delay event processing until gluon user exists
...
We don't want to start processing events until those events have
somewhere to be sent to.
Also, to be safe, ensure remove and re-add the gluon user while
clearing its sync status. This shouldn't be necessary.
2023-02-07 14:31:02 +01:00
James Houlahan
5ea53ea5c0
fix(GODT-2318): Remove gluon DB if label sync was incomplete
2023-02-06 16:36:15 +00:00
James Houlahan
367c505444
fix(GODT-1804): Use cherry-picked mail settings in GPA
2023-02-06 15:57:24 +00:00
James Houlahan
3bd39b3ea5
fix(GODT-1804): Only promote content headers if non-empty
...
When attaching public key, we take the root mime part, create a new root,
and put the old root alongside an additional public key mime part.
But when moving the root, we would copy all content headers, even empty ones.
So we’d be left with Content-Disposition: "" which would fail to parse.
2023-02-06 15:57:24 +00:00
James Houlahan
e89dcb2cca
fix(GODT-2343): Only poll after send if sync is complete
2023-02-06 16:33:53 +01:00
James Houlahan
2cb2ca15c7
fix(GODT-2336): Recover from changed address order while bridge is down
2023-02-03 16:05:30 +01:00
James Houlahan
db41645159
test: Add failing test for changing address order while bridge is down
2023-02-03 15:51:18 +01:00