Jakub
7d0af7624c
Other: Bump linter
2021-04-07 10:54:09 +02:00
Michal Horejsek
4761bc935a
GODT-948 Embedded messages
2021-03-01 09:22:08 +00:00
James Houlahan
28f46deef9
Other: only choose pass if usable
2021-02-18 13:23:38 +01:00
James Houlahan
1f25aeab31
GODT-980: placeholder for user agent
2021-02-17 13:49:51 +01:00
Michal Horejsek
8b436186a4
GODT-1034 More tolerant connection speed detection
2021-02-17 06:13:15 +00:00
Michal Horejsek
e055acb8eb
Use lenient version parser to properly parse version provided by Mac
2021-02-05 09:33:26 +00:00
Michal Horejsek
50d167a983
Sending: do not send empty objects to API
2021-02-01 14:44:37 +01:00
James Houlahan
0069eb9a0c
feat: remove dependency on go-apple-mobileconfig
2021-02-01 11:06:10 +01:00
James Houlahan
0159f24f17
fix(GODT-1010): strip angle brackets from ExternalID
2021-02-01 08:57:33 +00:00
James Houlahan
4ffa62f6ca
fix: set contentID if present and not explicitly attachment
2021-01-29 15:07:48 +01:00
James Houlahan
0c458f709f
fix: use correct (historical) macOS keychain name
2021-01-29 15:07:48 +01:00
Michal Horejsek
76dda10572
Importing to sent and inbox
2021-01-28 09:11:02 +00:00
Jakub
0cde1ab801
hasher with logs and deterministic delimiter
2021-01-27 12:49:27 +00:00
James Houlahan
adcf0827ee
feat: report corrupt update files
2021-01-25 15:45:12 +01:00
James Houlahan
cb839ff149
fix: check deprecated API statuscode first to better determine API error
2021-01-25 10:32:07 +00:00
Michal Horejsek
6ef2bb254d
Tests and final touches
2021-01-22 11:33:49 +01:00
Jakub
8ab852277c
Cache body structure in order to reduce network traffic
2021-01-22 10:54:36 +01:00
Michal Horejsek
516ca018d3
Mitigate Apple Mail re-sync (both bodies and meta info)
2021-01-22 10:54:35 +01:00
Michal Horejsek
5117672388
Turning off IMAP server while no connection
2021-01-22 10:54:35 +01:00
Michal Horejsek
3e9c4ba614
Fix move to local folder and back - remove deleted flag
2021-01-22 08:45:28 +00:00
Michal Horejsek
8cd17addbe
Apply 1 suggestion(s) to 1 file(s)
2021-01-22 08:10:40 +00:00
Michal Horejsek
2feaba8888
Fix invalid input report
2021-01-22 08:10:40 +00:00
James Houlahan
d5277454c6
fix: use pass by default on linux
2021-01-15 13:22:56 +00:00
James Houlahan
67a7d556ec
test: add test using fake helper
2021-01-15 13:22:56 +00:00
James Houlahan
5ad338e835
Apply 1 suggestion(s) to 1 file(s)
2021-01-15 13:22:56 +00:00
James Houlahan
e442c47eed
feat: default keychain helper
2021-01-15 13:22:56 +00:00
James Houlahan
5380edeeb9
feat: only delete if the secret is present in the keychain
2021-01-15 13:22:56 +00:00
James Houlahan
e50d1d01da
fix: address review comments
2021-01-15 13:22:56 +00:00
James Houlahan
082a803e47
feat: switchable keychain
2021-01-15 13:22:56 +00:00
James Houlahan
07d9bc0831
Happy New Year (silent updates)
2021-01-15 13:22:56 +00:00
James Houlahan
7b4204591c
fix: add missing OS to x-pm-appversion
2021-01-15 13:22:55 +00:00
James Houlahan
d2066173f0
feat: early access
2021-01-15 13:22:55 +00:00
James Houlahan
eccad4bbfd
feat: verify by checksum and remove if invalid
2021-01-15 13:22:55 +00:00
James Houlahan
dc3f61acee
Launcher, app/base, sentry, update service
2021-01-15 13:22:55 +00:00
James Houlahan
014c8af560
fix: panic when no multipart/alternative children
2021-01-14 11:52:31 +01:00
James Houlahan
175f0977f9
chore: bump go-imap dependency and remove go-imap-specialuse dependency
2021-01-11 12:25:06 +00:00
Michal Horejsek
9fe3718d3f
Fix empty label name
2021-01-07 09:26:54 +01:00
Michal Horejsek
a2cf1b6022
Fix parsing messages with long lines in header and long header split to multiple lines
2021-01-06 13:52:38 +01:00
Jakub
a89dfc4524
Happy New Year
2021-01-04 11:55:15 +01:00
James Houlahan
25c1014ab0
fix: only set ContentID for inline attachments
2020-12-30 06:36:54 +00:00
Michal Horejsek
7b112fc448
Prefer From header instead of MAIL FROM address
2020-12-22 12:46:01 +00:00
Michal Horejsek
2a0052dda6
Fix listener locking
2020-12-18 15:10:32 +00:00
Michal Horejsek
e3332d1cb6
Windows needs txt suffix
2020-12-14 16:04:24 +00:00
Michal Horejsek
f59f68f894
Fix Windows license path
2020-12-14 16:04:24 +00:00
Michal Horejsek
9c881a02d6
Fix license path for arch
2020-12-14 16:04:24 +00:00
Michal Horejsek
f295d03641
License button to open LICENSE file
2020-12-09 15:58:41 +00:00
James Houlahan
38eb9fdac7
feat(GODT-906): support rfc2047-encoded content transfer encodings
2020-12-07 13:03:49 +01:00
Michal Horejsek
33dfc5ce09
Use function to determine which functions to skip
2020-12-02 12:31:18 +00:00
Michal Horejsek
2100e2ff7c
Enhanced sentry reporting
2020-12-02 12:31:18 +00:00
Michal Horejsek
64206e69bd
Fix of all known flaky tests
2020-11-30 16:15:53 +01:00
Michal Horejsek
ca962ce5ad
Import encrypted messages as is
2020-11-27 09:09:11 +01:00
Jakub
072ce54fe1
Bridge 1.5.2 Golden Gate
...
Release Notes
* Improved package creation logic
* Refactor of sending functions to simplify code maintenance
* Added tests for package creation
Fixed
* Bridge crashes related to labels handling
* GUI popup related to TLS connection error
* An issue where a random session key is included in the data payload
* Error handling (including improved detection)
2020-11-24 10:38:36 +01:00
Pavel Škoda
7b44f12ab1
Update sentry client
2020-11-20 14:44:42 +00:00
Jakub
874882b554
Logic change to follow old code.
2020-11-20 13:39:13 +00:00
Jakub
945bdf4c60
Custom types for flags and encrypted outside test
2020-11-20 13:39:13 +00:00
Jakub
6e1e5a2afe
re-organise test definitions
2020-11-20 13:39:13 +00:00
Jakub
b709b51790
Simplify test cases
2020-11-20 13:39:13 +00:00
Jakub
d380485bb6
Fixing lint and integration tests, changelog, GODT-880, and typos
2020-11-20 13:39:13 +00:00
Jakub
87c8228cd0
rename
2020-11-20 13:39:13 +00:00
Jakub
152046bf97
refactor smtp sending
...
* [x] move package creation logic to `pmapi.SendMessageReq`
* [ ] write test of package creation logic
* [x] internal
* [x] plain
* [x] external encrypted
* [ ] signature ???
* [x] attachments
2020-11-20 13:39:13 +00:00
Pavel Škoda
9d50a8cef2
Add OS to app version
2020-11-18 09:46:01 +00:00
James Houlahan
e04196f8a0
feat: switch to public go-rfc5322 parser
2020-11-10 09:27:07 +00:00
Michal Horejsek
b9740e1b7d
Close connection before deleting labels to prevent panics accessing deleted bucket
2020-11-10 07:50:29 +00:00
Jakub
a62fa132e6
rename build tag
2020-11-06 16:02:30 +01:00
James Houlahan
052395f917
test: add benchmarks for rfc5322 address/date parser
2020-11-04 15:00:18 +01:00
Michal Horejsek
f1d70361c9
Do not include conversation ID in references
2020-11-04 09:12:16 +00:00
James Houlahan
3496599723
feat: custom address/date parser based on rfc5322 abnf
2020-11-03 16:21:06 +01:00
James Houlahan
9e0635a6a4
fix: don't check tls fingerprints when checking connectivity
2020-11-02 13:38:39 +00:00
Jakub
f9d58f4f9c
Merge branch 'release/forth' into release/danube
2020-10-21 09:07:27 +02:00
Jakub
a21bb130e1
Append duplicate of emails with References
2020-10-14 10:11:49 +02:00
James Houlahan
12403785af
fix: replace, don't add, transfer encoding when making body 7-bit clean
2020-10-09 13:55:37 +02:00
James Houlahan
7874183052
fix(GODT-770): handle extraneous end-of-mail
2020-10-01 16:16:15 +02:00
Michal Horejsek
ec73170e9b
Use label.Path instead of Name
2020-09-30 09:38:35 +02:00
Jakub Cuth
51c8bceed8
Changelog and use pmmime
2020-09-24 18:19:35 +02:00
Michal Horejsek
e02c7c7f06
Parsing message with empty address as '<>'
2020-09-24 15:37:21 +02:00
James Houlahan
15c1d7bc24
fix: duplicate charset param
2020-09-24 14:26:45 +02:00
Michal Horejsek
a89a3f6612
Convert to UTF-8 any message part which specifies charset
2020-09-24 13:58:15 +02:00
Michal Horejsek
d956b04062
Parsing non-utf8 multipart/alternative message
2020-09-24 13:17:38 +02:00
Michal Horejsek
ef1671d4ab
Parsing message with empty CC
2020-09-24 12:23:31 +02:00
James Houlahan
b3ed8d51a7
fix: version check for catalina
2020-09-17 11:35:05 +00:00
Michal Horejsek
3606a0ab9f
QA build with option to change API URL by ENV variable
2020-09-17 08:30:31 +00:00
James Houlahan
41ac61bbe8
fix: less spammy go-message logs
2020-09-15 09:37:29 +00:00
James Houlahan
4b7c234e78
feat: strip comments from addresses
2020-09-14 14:46:44 +02:00
James Houlahan
5bca6fc3cf
chore: tidy up before merge
2020-09-14 14:19:35 +02:00
James Houlahan
9b3cc9dc34
feat: convert content type in html meta tags
2020-09-11 11:41:03 +02:00
James Houlahan
3e8e3c912b
fix: don't doubly apply 822 texwrapper
2020-09-11 11:41:03 +02:00
James Houlahan
5d0e3f36b4
fix: unhandled charset in header
2020-09-11 11:41:03 +02:00
James Houlahan
da751a38e3
fix: public key names and content types
2020-09-11 11:41:03 +02:00
James Houlahan
f9af17dd9b
fix: allow unknown encodings during initial parse
2020-09-11 11:41:03 +02:00
James Houlahan
f622ecf678
feat: logging throughout parser
2020-09-11 11:41:03 +02:00
James Houlahan
475e673b87
feat: add logging for encoding detection
2020-09-11 11:41:03 +02:00
James Houlahan
ef2ace0afe
fix: always check charset before utf8 validity
2020-09-11 11:41:03 +02:00
James Houlahan
d872d77cf5
fix: draft mime type instead of composermode
2020-09-11 11:41:03 +02:00
James Houlahan
1f17628399
fix: unequal number of rich/plain parts
2020-09-11 11:41:03 +02:00
James Houlahan
4ab8f7d6b5
fix: pubkey should not be collected as attachment
2020-09-11 11:41:03 +02:00
James Houlahan
fa5f4acdac
docs: add docstring for buildBodies
2020-09-11 11:41:03 +02:00
James Houlahan
642666fa59
docs: add docstrings for walker/visitor handlers/rules
2020-09-11 11:41:03 +02:00
James Houlahan
a2cf5374b9
feat: more efficient regexp use in parser
2020-09-11 11:41:03 +02:00
James Houlahan
6a7a77fc51
refactor: tidier encoding detection
2020-09-11 11:41:03 +02:00
James Houlahan
f4dfadce52
feat: attach public key
2020-09-11 11:41:03 +02:00
James Houlahan
9ba08e5edb
refactor: remove dead code
2020-09-11 11:41:03 +02:00
James Houlahan
9821b5bbc2
feat: recreate message with parser's writer
2020-09-11 11:41:03 +02:00
James Houlahan
5343a6fc0f
fix: fallback to detecting charset if cannot handle specified one
2020-09-11 11:41:03 +02:00
James Houlahan
180c6699e0
fix: don't select multipart/alternative if length is 0
2020-09-11 11:41:03 +02:00
James Houlahan
65d8b382d0
fix: panic when no params available
2020-09-11 11:41:02 +02:00
James Houlahan
0e7e13211b
refactor: don't reconstruct mimeBody
2020-09-11 11:41:02 +02:00
James Houlahan
7e1af9ff4e
fix: linter issues
2020-09-11 11:41:02 +02:00
James Houlahan
37186846db
feat: wrap attachment lines as per rfc822
2020-09-11 11:41:02 +02:00
James Houlahan
a5a61c9428
feat: set attachment headers
2020-09-11 11:41:02 +02:00
James Houlahan
ea01c155da
feat: handle foreign encodings
2020-09-11 11:41:02 +02:00
James Houlahan
f4374a02da
refactor: tidy a bit
2020-09-11 11:41:02 +02:00
James Houlahan
0d4d95360f
feat: set header
2020-09-11 11:41:02 +02:00
James Houlahan
f88071b2ca
feat: parse date
2020-09-11 11:41:02 +02:00
James Houlahan
e01a523ae3
feat: pull out most things as attachments
2020-09-11 11:41:02 +02:00
James Houlahan
c6b18b45b5
feat: better handling of multipart messages
2020-09-11 11:41:02 +02:00
James Houlahan
a7da66ccbc
feat: enter and exit handlers
2020-09-11 11:41:02 +02:00
James Houlahan
8bd74c5edc
feat: set mime type
2020-09-11 11:41:02 +02:00
James Houlahan
2b36d3ab7b
feat: attach public key
2020-09-11 11:41:02 +02:00
James Houlahan
45b863f931
feat: parse most header values
2020-09-11 11:41:02 +02:00
James Houlahan
953150cfdb
feat: add part getter
2020-09-11 11:41:02 +02:00
James Houlahan
6ea3fc1963
feat: initial parser exposing walker/writer
2020-09-11 11:41:02 +02:00
Michal Horejsek
de58c7a905
Cookies for Import-Export
2020-09-09 09:09:35 +02:00
Pavel Škoda
2e439e17cf
Remove unused scope methods
2020-09-09 06:21:02 +00:00
Pavel Škoda
f73aeec97f
Update changelog
2020-09-08 08:43:05 +00:00
Pavel Škoda
8a7b4bb919
Improve user agent
2020-09-08 08:43:05 +00:00
Jakub
78fd73ee2a
Merge branch 'release/congo' into devel
2020-09-08 09:37:05 +02:00
Michal Horejsek
9218598140
Update routes to API v4
2020-08-31 07:42:20 +00:00
Michal Horejsek
84147a2cb0
Fix flaky tests
2020-08-25 10:20:49 +02:00
Michal Horejsek
658ead9fb3
Import/Export final touches
2020-08-24 10:11:51 +02:00
Pavel Škoda
7e5e3d3dd4
Import/Export GUI
2020-08-24 10:11:51 +02:00
Michal Horejsek
1c10cc5065
Import/Export backend
2020-08-24 10:11:51 +02:00
Jakub
49316a935c
Shared GUI for Bridge and Import/Export
2020-08-24 10:11:50 +02:00
Michal Horejsek
b598779c0f
Import/Export backend prep
2020-08-24 10:11:50 +02:00
James Houlahan
77c6ba381e
fix: mime type
2020-08-18 09:14:46 +00:00
James Houlahan
61a841ced7
refactor: builder pattern for generateSendingInfo
2020-08-18 09:14:46 +00:00
Jakub
5411b29d17
Merge branch 'release/v1.3.X' into devel
2020-08-17 09:58:39 +02:00
Michal Horejsek
6c93f1f1ec
Fix integration tests - compiting message flags
2020-08-17 09:10:03 +02:00
James Houlahan
9f24c666b9
docs: add docstrings
2020-08-12 15:46:19 +02:00
James Houlahan
3101fc5543
fix: add missing license
2020-08-12 15:05:14 +02:00
James Houlahan
e333ccd29e
feat: persistent cookies
2020-08-12 14:55:24 +02:00
James Houlahan
7e6d09a247
test: generate tls cert/key in test
2020-08-03 09:24:39 +02:00
Michal Horejsek
da381130a3
Check log file size more often to prevent huge log files
2020-07-31 13:24:25 +02:00
James Houlahan
dfbd86c7bc
fix: add missing option to modify system keychain
2020-07-27 17:23:59 +02:00
James Houlahan
e3ab829ad3
fix: missing command in exec call
2020-07-27 13:05:46 +02:00
James Houlahan
b12ef1327c
refactor: better confirmer result locking
2020-07-24 13:04:29 +00:00
James Houlahan
d66bcc4b63
fix: bad ID in frontend
2020-07-24 13:04:29 +00:00
James Houlahan
5ad307868e
feat: add expiry
2020-07-24 13:04:29 +00:00
James Houlahan
369c6ebf85
fix: clean up after setting result
2020-07-24 13:04:29 +00:00
James Houlahan
c988d739a1
docs: add docstrings for confirmer
2020-07-24 13:04:29 +00:00
James Houlahan
36ef9f20ae
feat: use confirmer in smtp
2020-07-24 13:04:29 +00:00
James Houlahan
c8f118a26b
feat: implement confirmer
2020-07-24 13:04:29 +00:00
James Houlahan
be20714842
feat: better way to add trusted cert in macOS
2020-07-24 14:51:30 +02:00
James Houlahan
bf0945eaef
fix: race condition in AuthRefresh that could cause user to be logged out
2020-07-16 10:19:50 +02:00
James Houlahan
fc4e77604f
fix: don't panic if not given tls connection in pin checker
2020-07-09 13:19:32 +02:00
James Houlahan
d89d627349
test: increase minimum listener event receive time
2020-07-06 16:11:53 +02:00
James Houlahan
b25baa2524
test: set sent label properly
2020-07-03 07:45:16 +00:00
James Houlahan
10e384f4df
test: add tests for parsing mime message with bad 2231 filename
2020-07-03 09:19:18 +02:00
Jakub
35ae2011b6
Merge branch master into devel
2020-07-02 10:16:08 +02:00
James Houlahan
1e8cb35fcb
test: add test for multiline
2020-06-30 16:33:29 +02:00
James Houlahan
0b0991d682
fix: infinite loop when decoding invalid 2231 charset
2020-06-29 15:40:46 +02:00
James Houlahan
7301e5571c
fix: return error if parsing header fails GODT-502
2020-06-26 11:35:07 +02:00
James Houlahan
7ec4309ae1
fix: correctly handle failure to unlock single key
2020-06-24 14:22:26 +02:00
James Houlahan
ec224a962f
fix: hang when reloading keys
2020-06-22 10:19:13 +02:00
James Houlahan
02804d067c
fix: ensure doh connections are closed when it is disabled
2020-06-17 10:57:12 +02:00
James Houlahan
9241a9bdbf
feat: add reloadkeys method
2020-06-16 12:51:28 +02:00
James Houlahan
f3e6af5571
feat: clear keys after unmarshaling
2020-06-16 10:23:21 +02:00
James Houlahan
c19bb0fa97
feat: migrate to gopenpgp v2
2020-06-16 07:34:46 +00:00
James Houlahan
928fa93765
fix: don't remove log dir on startup
2020-06-05 10:48:34 +02:00
James Houlahan
45e99caa23
fix: handle double charset everywhere by using our ParseMediaType
2020-06-03 12:51:31 +00:00
James Houlahan
80b2bfc2a5
fix: crash in message.combineParts when copying a nil slice
2020-06-03 12:41:51 +00:00
James Houlahan
6070a3b7cc
fix: crash if fail to find necessary html element
2020-06-03 14:05:20 +02:00
James Houlahan
9e633400b0
feat: [GODT-360] detect charset embedded in html and xml
2020-06-02 09:44:50 +02:00
James Houlahan
e43033b42b
feat: revert back to quoted-printable
2020-05-29 12:21:48 +00:00
James Houlahan
e5d63edb62
test: add message.Parse tests
2020-05-29 12:21:48 +00:00
Jakub
579e962980
check license
2020-05-29 14:01:10 +02:00
James Houlahan
cc14b523cb
fix: correct doh timeouts
2020-05-27 07:32:26 +00:00
James Houlahan
ad877431de
fix: check doh permission
2020-05-27 07:32:26 +00:00
James Houlahan
7ac4c9aecf
fix: don't logout user if auth refresh fails because internet dropped
2020-05-25 15:21:20 +00:00
James Houlahan
cb8a15a9fd
fix: crash when removing account while messages are being returned
2020-05-25 08:29:42 +00:00
James Houlahan
a78b1ca00f
refactor: remove dead code
2020-05-20 11:33:22 +02:00
James Houlahan
bbf1364e30
feat: tls report cache
2020-05-14 14:12:41 +02:00
Michal Horejsek
6147c214c3
Better error message when request is canceled
2020-05-12 10:49:04 +00:00
James Houlahan
f87ca36ffd
refactor: tidy up DecodeCharset
2020-05-12 10:12:19 +00:00
Michal Horejsek
37f4e46bdc
feat: fallback to latin1 if charset not specified and not utf8
2020-05-12 10:12:19 +00:00
Pavel Škoda
4090c490b1
Apply suggestion to pkg/pmapi/messages.go
2020-05-11 14:48:12 +00:00
Pavel Škoda
d33d7237bd
Apply suggestion to pkg/pmapi/messages.go
2020-05-11 14:48:12 +00:00
Pavel Škoda
9ed778f2b3
Apply suggestion to pkg/pmapi/messages.go
2020-05-11 14:48:12 +00:00
Pavel Škoda
70fca64a36
Pop-out messageID format into constants
2020-05-11 14:48:12 +00:00
Pavel Škoda
30425d5fcd
Fix few typos
2020-05-11 14:48:12 +00:00
James Houlahan
833fce8702
chore: bump linter
2020-05-07 16:24:10 +00:00
James Houlahan
4b2977041a
fix: missing messages after changing primary address
2020-05-07 16:19:06 +02:00
James Houlahan
2d200f6f8c
test: add test with changing address order
2020-05-07 16:19:06 +02:00
Jakub
c61e8bdc71
Merge remote-tracking branch 'origin/master' into devel
2020-05-07 15:30:08 +02:00
Michal Horejsek
ea0f3115a3
usage of latest upstream go-imap
2020-05-05 11:47:47 +00:00
Michal Horejsek
984b28e8f9
User Agent do not contain bridge version, only client in format
2020-05-05 11:00:18 +00:00
James Houlahan
99aabf07b3
Apply suggestion to pkg/config/pmapi_prod.go
2020-05-04 07:53:55 +00:00
James Houlahan
6e537db5ff
Apply suggestion to pkg/pmapi/client.go
2020-05-04 07:53:55 +00:00
James Houlahan
668fc7f039
feat: MinSpeed -> MinBytesPerSecond, check every 3 seconds
2020-05-04 07:53:55 +00:00
James Houlahan
284a097d4f
fix: lower min speed
2020-05-04 07:53:55 +00:00
James Houlahan
e5944518ca
chore: improve logging
2020-05-04 07:37:51 +00:00
James Houlahan
df3a9ea19e
test: add comment for why tests are disabled
2020-05-04 07:37:51 +00:00
James Houlahan
2db1b113e0
fix: correct timeouts according to spec
2020-05-04 07:37:51 +00:00
James Houlahan
68d2591c73
test: fix tls tests
2020-05-04 07:37:51 +00:00
James Houlahan
e9735c6110
refactor: set app version when enabling remote tls issue reporting
2020-05-04 07:37:51 +00:00
James Houlahan
0fd5ca3a24
feat: dialer refactor to support modular dialing/checking/proxying
2020-05-04 07:37:51 +00:00
James Houlahan
23f492705b
fix: better draft detection for parentID
2020-04-30 09:20:03 +00:00
Jakub Cuth
b15d22c8cc
Reduce number of synchronizations GODT-313
...
* [x] expononential cooldown of retries
* [x] do not trigger sync by counts
* [x] randomization of event poll interval
2020-04-28 14:20:37 +00:00
James Houlahan
522cadb8b1
refactor: dedicated constants package, no explicit bridge version
2020-04-28 12:39:05 +00:00
James Houlahan
7d30459417
test: empty auth update channel in tests
2020-04-28 12:21:54 +00:00
James Houlahan
8f15041d8f
fix: race condition when updating user auth
2020-04-28 12:21:54 +00:00
Jakub
51846efed5
Merge branch 'release/v1.2.7' into devel
2020-04-27 15:54:02 +02:00
James Houlahan
76b480298a
fix: better error messages for 422
2020-04-23 08:34:38 +00:00
James Houlahan
1457005f86
fix: address review comments
2020-04-21 13:29:26 +02:00
James Houlahan
d4482994ec
fix: missing and incorrect comments
2020-04-21 08:36:39 +00:00
James Houlahan
99635cd56d
feat: max retries of 5 for client logout
2020-04-21 08:36:39 +00:00
James Houlahan
38f0425670
refactor: make sentry report its own package
2020-04-21 08:36:39 +00:00
James Houlahan
4809d97cb1
feat: clientmanager has checkconnection
2020-04-21 08:36:39 +00:00
James Houlahan
3f32fd95e0
feat: refresh expired access tokens in one goroutine
2020-04-21 08:36:39 +00:00
James Houlahan
40e96b9d1e
feat: retry client auth delete while api is unreachable
2020-04-21 08:36:39 +00:00
Jakub
80f4e1e346
Fixing unit tests for client manager.
...
* [x] pmapi: refresh auth uid won't change
* [x] bridge tests:
* update mocks
* delete auth when FinishLogin fails
* check for mailbox password
* add `gomock.InOrder` for better test control
* [x] fix linter issues except TODOs
* [x] make rootScheme unexported
* [x] store tests: update mocks
2020-04-21 08:36:39 +00:00
James Houlahan
debd374d75
fix: don't delete uid of anonymous clients
2020-04-21 08:36:39 +00:00
James Houlahan
ed8595fa5b
test: some work on integration tests (fake)
2020-04-21 08:36:39 +00:00
James Houlahan
bafd4e714e
refactor: remove unnecessary getters
2020-04-21 08:36:39 +00:00
James Houlahan
d787d8b223
fix: use clientsLocker mutex
2020-04-21 08:36:39 +00:00
James Houlahan
abca7284dd
refactor: make getHost and getScheme private
2020-04-21 08:36:39 +00:00
James Houlahan
db02eb694d
refactor: no more pmapifactory
2020-04-21 08:36:39 +00:00
James Houlahan
5bf4d9c6f5
refactor: prefer anonymous clients
2020-04-21 08:36:39 +00:00
James Houlahan
b01be382fc
refactor: GetBridgeAuthChannel --> GetAuthUpdateChannel
2020-04-21 08:36:38 +00:00
James Houlahan
042c340881
feat: make store use ClientManager
2020-04-21 08:36:38 +00:00
James Houlahan
f269be4291
refactor: make pmapi.Client the interface
2020-04-21 08:36:38 +00:00
James Houlahan
6e38a65bd8
feat: improve login flow
2020-04-21 08:36:38 +00:00
James Houlahan
941e09079c
feat: implement token expiration watcher
2020-04-21 08:36:38 +00:00
James Houlahan
ce29d4d74e
feat: switch to proxy when need be
2020-04-21 08:36:38 +00:00
James Houlahan
f239e8f3bf
feat: central auth channel for clients
2020-04-21 08:36:38 +00:00
James Houlahan
0a55fac29a
feat: simple client manager
2020-04-21 08:36:38 +00:00
James Houlahan
8f8fbc745d
fix: correctly install tls certs with osascript
2020-04-17 16:51:32 +02:00
James Houlahan
c6f32192b9
refactor: return ErrNoSuchAPIID any time we get 422
2020-04-17 12:12:44 +02:00
James Houlahan
341a6501e6
fix: don't return error when event data is nil
2020-04-17 09:19:39 +00:00
James Houlahan
e1ecc11f38
feat: add ErrNoSuchMessage to pmapi
2020-04-17 09:19:39 +00:00
Jakub
17f4d6097a
We build too many walls and not enough bridges
2020-04-08 12:59:16 +02:00