Tom Hacohen
3c74cb1575
Optimise imports.
5 years ago
Tom Hacohen
c8a81862ea
Import: fix import of contacts.
5 years ago
Tom Hacohen
9018b6cdd0
Import: make it easy to report import issues to devs.
5 years ago
Tom Hacohen
687f973725
Fix formatting.
5 years ago
Tom Hacohen
1cfdc59b17
Change journal: make it possible to revert an item to a past state.
...
Fixes #83
5 years ago
Tom Hacohen
6031bd2699
Events: automatically transform EMAIL event reminders to DISPLAY ones.
...
iCal support EMAIL event reminders which EteSync doesn't and can't support
due to end-to-end encryption. This commit therefore modifies the event reminders
DISPLAY so reminders are actually shown on the phone.
Fixes #63
5 years ago
Tom Hacohen
8e457c5ec7
Import contacts: fix wrong import account.
5 years ago
Tom Hacohen
cac34e6785
Import: verify activity is not null when finishing import.
...
This is really just an ugly workaround for a crash. This whole thing needs to
be redone. It's currently quite broken when it comes to lifecycle handling and
a source for many issues.
5 years ago
Tom Hacohen
84ab0cb16f
Import: check if successfully acquired the provider before trying to import.
5 years ago
Tom Hacohen
1f9e7fa6a6
Revert: Import: always import, don't try to find duplicates based on UID
...
This is somehow a revert of 536bef9815
.
It was initially implemented as a workaround for #24 , but having
improved all the clients to deal with weird UIDs and matured a lot since
then, I believe this is no longer an issue.
Would have to keep a close eye for regressions.
5 years ago
Tom Hacohen
bbd40e0255
LocalGroup: implement updateAsDirty.
5 years ago
Tom Hacohen
cc83e2c5d9
Tasks: implement update as dirty.
5 years ago
Tom Hacohen
101e7e2559
Settings: cleanup the code to open the app's notification settings
5 years ago
Tom Hacohen
cdc5afba61
Fix debug log for failed login attempts.
...
Before this fix a failed loging attempt wouldn't include any debug
information on why it failed. This commit fixes that.
5 years ago
Tom Hacohen
16efe446c0
WebActivity: gracefully handle unsupported link types.
5 years ago
Tom Hacohen
7cfba6dc34
Acra: don't include email prefix.
...
We've recently started getting exceptions such as:
"java.lang.ClassCastException: java.lang.String cannot be cast to java.util.ArrayList"
I suspect it may be related to using the new email body prefix which is
probably not as well tested upstream as the rest of the code. Removing
it to see if this fixes things.
5 years ago
Tom Hacohen
1a7ef1b78e
Sync: log broken entries on processing failure.
...
This change prints the content of broken entries (ones that fail parsing)
to the log so it's easier to debug issues.
5 years ago
Tom Hacohen
7932610c87
Webview: add missing call to super's save instance state.
5 years ago
Tom Hacohen
58b54f9d66
Account list: workaround rare crash when listing accounts.
5 years ago
Tom Hacohen
d358ac0ba4
Import: implement importing tasks from file.
...
Fixes #74 .
5 years ago
Tom Hacohen
bfe68b9684
LocalTask: add a function to save tasks as dirty.
5 years ago
Tom Hacohen
f4ce548310
Import: replace size check with isEmpty().
5 years ago
Tom Hacohen
6381617f2c
Import: only dismiss import dialog if already showing.
...
This should fix a crash when the os kills the activity before import is done.
5 years ago
Tom Hacohen
e4b29832f5
Import: mark progressDialog as non-null.
5 years ago
Tom Hacohen
2615fbd9ce
Unify all of the sync adapter exception handling.
...
The exception handling was duplicated across every sync backend.
It was redundant and made it easy to not handle all of the exceptions correctly
everywhere.
5 years ago
Tom Hacohen
6250cacd30
Add missing exception handling to contacts sync.
...
It wasn't handling IgnorableException.
5 years ago
Tom Hacohen
1d5bcc6a3d
Add a separate exception for HttpConflict.
5 years ago
Tom Hacohen
fe980f937e
Fix potential crash when opening and stopping the app very quickly.
5 years ago
Tom Hacohen
9c8daf1ebd
More optimise imports.
5 years ago
Tom Hacohen
c484d29a42
Optimise imports.
5 years ago
Tom Hacohen
3b0bfbb054
Don't rely on the ACCOUNTS_CHANGED broadcast receiver
...
I've seen some crashes there. This change brings it inline with
DAVDroid, and looks cleaner regardless.
Based on 1f7298f947a4878e86fcba0c6722e34b03cb63c6 from DAVDroid
5 years ago
Tom Hacohen
f629d23c38
Fix access to uninitialized properties in account update service.
5 years ago
Tom Hacohen
2e2841cea4
Fix encryption password change not to crash.
...
It was a regression from the custom cert manager update.
5 years ago
Tom Hacohen
41c7239a8c
Members list: fix crash and handle correct lifecycle.
5 years ago
Tom Hacohen
7010967a31
Import: fix crash when import finishes while the activity is dead.
5 years ago
Tom Hacohen
f41c7cd4c9
Contacts sync manager: remove unnecessary not-null assertion.
5 years ago
Tom Hacohen
eef861614e
Contacts sync manager: only init one resource downloader per sync.
...
Before this we were doing it per sync entry which could be slow.
5 years ago
Tom Hacohen
487d330a7a
Contacts Sync Manager: remove redundant address book init.
...
Fixes #73
5 years ago
Tom Hacohen
3637fc95db
Sync: catch and report SSLHandshakeExceptions.
...
They were not being reported as part of the general code
because SSLException inherits from IOException which is
handled differently.
5 years ago
Tom Hacohen
6ac83beb47
Debug activity: fix crash when getting sync errors.
...
Sync phase was passed as an Int but expected as a String.
5 years ago
Tom Hacohen
a702a4e794
Crash email: include a body with requests for more information.
5 years ago
Tom Hacohen
409f586835
Add tutanota to the list of email clients not supporting attachments.
...
This list is the clients that don't support attachments when called from
an intent. We want to include debug info inline for those.
5 years ago
Tom Hacohen
0a2a3b2d99
Rename queryCapabilites to prepareFetch
5 years ago
Tom Hacohen
44c516a868
Sync: fix the sync to also do the initial preparation in chunks
...
This fixes issues with Android killing the sync when making massive
syncs such as importing 10,000 events.
Fixes #69
5 years ago
Tom Hacohen
dcc3ec6f88
Fix crash when removing journal members
5 years ago
Tom Hacohen
d04d0f902f
Fix closing of the HttpClient when syncing.
5 years ago
Tom Hacohen
bc829d0d1e
Improve logging in syncmanager and import.
5 years ago
Tom Hacohen
5090a3206e
Only show the custom certificate popup when using EteSync interactively
...
With this change, we make it so using a self-signed certificate will
have to be authorised on the first login rather than checked every time
on the background.
This was causing annoying issues with networks that mitm SSL
connections, and anyhow, we shouldn't be asking users to trust bad certs
when in 99.9% of the cases it would either be an attack or a broken
network.
Fixes #36
5 years ago
Tom Hacohen
ee2dad4d19
Set certmanager foreground/background state.
5 years ago
Tom Hacohen
4134f78da4
Upgrade cert4android and refactor httpclient based on upstream
5 years ago
Tom Hacohen
75020c1841
Settings: add a link to the notification settings.
5 years ago
Tom Hacohen
d147728acd
Add a setting to control log verbosity.
5 years ago
Tom Hacohen
705df2a536
Overhaul the notification system and add notification channels.
5 years ago
Tom Hacohen
64f8c5e1d2
Move the sync notification helper under syncadapter and rename it.
5 years ago
Tom Hacohen
ac22ece30d
Don't use a separate :sync process anymore so prefs don't need IPC.
...
Fixes #67
5 years ago
Tom Hacohen
1cdad6232e
Log to file: move to use normal preferences.
5 years ago
Tom Hacohen
df315a48ab
Fix logging to file.
5 years ago
Tom Hacohen
17b6e69c86
Move everything to use the new Logger
5 years ago
Tom Hacohen
216b51d138
Create a logger object to take care of all the logging.
5 years ago
Tom Hacohen
14abc6400d
Rename the logger's name to etesync.
5 years ago
Tom Hacohen
a7aed85a4c
Import latest logger code from davdroid.
5 years ago
Tom Hacohen
b382b8515c
Request sync after encryption password change.
...
This is because we need the journals to be up to date with the newly
added key, or otherwise there could be issues when editing them.
5 years ago
Tom Hacohen
a605c2ae49
Fix adding journal members following an encryption password change.
...
See previous commit for more details about this issue.
5 years ago
Tom Hacohen
9f0b492c42
Fix collection editing following an encryption password change.
...
A lot of the code dealing with collections assumes that the editing is
done by the owner (true assumption, for now), and therefore the encryption
key is derived from the master key (not true anymore, as it could be a
stored version of the old key). This commit removes this wrong assumption.
5 years ago
Tom Hacohen
6f453faf06
Import: cleanup code a bit.
...
This should make it easier to debug null errors.
5 years ago
Tom Hacohen
77d89f3b4b
Import: Rename poorly named class.
5 years ago
Tom Hacohen
c4ee03b733
Fix null warning
5 years ago
Tom Hacohen
cf8afd541c
ACRA: switch to notification alerts on crashes.
...
On some devices users weren't able to send stack traces because
EteSync would restart and then hide/cancel the email app chooser.
5 years ago
Tom Hacohen
332caf1631
View Collection: add checks if we successfully managed to acquire the provider.
5 years ago
Tom Hacohen
356017a541
Entry sync: also generate UUIDs for first synced deleted entries
...
This fixes a bug with deleting entries that were never synced before. To
reproduce:
1. Turn off wifi + data (to ensure nothing is synced).
2. Add an entry (event/task/contact).
3. Delete that entry.
4. Turn wifi + data back on
5. Hit sync
5 years ago
Tom Hacohen
f64960699b
LocalTask: remove a potentiall bad logging message.
5 years ago
Tom Hacohen
e1573ef7ab
Tasks journal view: show the number of tasks in the journal.
5 years ago
Tom Hacohen
7eee04f458
Remove wrong not-null assertion.
5 years ago
Tom Hacohen
db8667e84a
Fix issue with OpenTasks causing a lot of syncs in some rare cases.
...
We weren't setting a default sync interval which meant that in some
cases it was just syncing every 10 seconds.
This fix also fixes #66 .
5 years ago
Tom Hacohen
c6472fe220
Unify the sync interval settings across journal types.
5 years ago
Tom Hacohen
b765f177c7
Migrate to AndroidX.
5 years ago
Tom Hacohen
130cea18ce
Tasks: move the opentasks install button to the menu.
...
It was quite ugly having it there.
5 years ago
Tom Hacohen
4cc664ee6c
Fix misleading logging message.
5 years ago
Tom Hacohen
1b15aaab19
Import: minor code cleanups.
5 years ago
Tom Hacohen
858378b107
Revert "Event invites: Warn about clients that don't support email attachments"
...
We can't trigger a toast from a service, revert this for now.
This reverts commit 0cda396d20
.
5 years ago
Tom Hacohen
b64b95e204
Import from file: fix issues with sometimes importing from file.
5 years ago
Tom Hacohen
4fb49cf5f4
Import from file: dismiss dialog and print an error in a missed error case.
5 years ago
Tom Hacohen
98ca5fa318
Fix the setting controlling change notifications.
5 years ago
Tom Hacohen
cb570978e5
Account activity: don't hide collection headers even if empty.
...
This was an annoying remanent from DAVDroid. Maybe it makes sense for
DAV, but it defo doesn't make sense for us where we can just create
collections (and anyhow always have existing defaults!).
5 years ago
Tom Hacohen
1aed0106cd
Add a button for installing OpenTasks if not already installed.
5 years ago
Tom Hacohen
bbbfbffe59
Add a helper function for checking if a package is installed.
5 years ago
Tom Hacohen
0cda396d20
Event invites: Warn about clients that don't support email attachments
5 years ago
Tom Hacohen
09ee9a2bd1
Rename and move the function checking if email attachments are supported.
5 years ago
Tom Hacohen
4d661117e5
Don't pop up notifications on bad gatewary errors as most likely a server restart.
...
The server is and should be monitored for misconfigurations, we don't want to annoy
users with temporary issues.
5 years ago
Tom Hacohen
ea0add8f45
Gracefully handle getting non json responses when expecting json.
5 years ago
Tom Hacohen
143092ecf3
Don't pop up notifications when server is under maintenance.
5 years ago
Tom Hacohen
5e8bb06b03
Add an exception for a bad gateway error.
5 years ago
Tom Hacohen
79ddd1d7c9
Fix bug with resetting contact deleted state.
5 years ago
Tom Hacohen
cabea0c3ec
Revert changes when changing read only journals.
5 years ago
Tom Hacohen
7216a177c5
Member list: indicate if a member is read only or not.
5 years ago
Tom Hacohen
e44c4a394c
Add the UI to invite read only members to journals.
5 years ago
Tom Hacohen
a43d0fceb8
Fix journal readOnly json to use the correct field name.
5 years ago
Tom Hacohen
e7186df6b8
Fix compilation warning.
5 years ago
Tom Hacohen
b6453718f4
Import fragment: move the null assertions around a bit
...
Better this way. Easier to know what's going on.
5 years ago
Tom Hacohen
69bf028481
Apply group memberships: be more defensive with potentially missing members.
...
This should never happen, but it has:
kotlin.TypeCastException: null cannot be cast to non-null type com.etesync.syncadapter.resource.LocalContact
at com.etesync.syncadapter.resource.LocalGroup$Companion.applyPendingMemberships(LocalGroup.kt:66)
at com.etesync.syncadapter.syncadapter.ContactsSyncManager.postProcess(ContactsSyncManager.kt:122)
at com.etesync.syncadapter.syncadapter.SyncManager.performSync(SyncManager.kt:169)
at com.etesync.syncadapter.syncadapter.ContactsSyncAdapterService$ContactsSyncAdapter.onPerformSync(ContactsSyncAdapterService.kt:59)
at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:259)
We call it at post process exactly because we want to make sure that all
the members already exist.
I guess a deletion on a misbehaving client (maybe even the web client?)
can cause this. Potentially also with some DAV clients.
Anyhow, it's better to be more defensive here.
5 years ago