Daniel Gultsch
c039ffcf35
clean up logging
2019-08-14 18:44:57 +02:00
Daniel Gultsch
ed95dd64ad
create empty disco result on error to fire advance stream features event
2019-08-13 21:18:32 +02:00
Daniel Gultsch
8ac042418b
fixes #3514
2019-08-11 16:54:00 +02:00
Daniel Gultsch
98c4e9056f
use helper method to close socket
2019-07-04 10:12:08 +02:00
Daniel Gultsch
e467fe341e
implement client support for muc push
...
Staying connected to a MUC room hosted on a remote server can be challenging.
If a server reboots it will usually send a shut down notification to all
participants. However even if a client knows that a server was shut down it
doesn’t know when it comes up again. In some corner cases that shut down
notification might not even be delivered successfully leaving the client in a
state where it thinks it is connected but it really isn’t.
The possible work around implemented in this commit is to register the clients
full JID (user@domain.tld/Conversations.r4nd) as an App Server according to
XEP-0357 with the room. (Conversations checks for the push:0 namespace on the
room.)
After cycling through a reboot the first message send to a room will trigger
pubsub notifications to each registered full JID. This event will be used to
trigger a XEP-0410 ping and if necessary a subsequent rejoin of the MUC.
If the resource has become unavailable during down time of the MUC server the
user’s server will respond with an IQ error which in turn leads to the MUC
server disabling that push target.
Leaving a MUC will send a `disable` command. If sending that disable command
failed for some reason (network outage) and the client receives a pubsub
notification for a room it is no longer joined in it will respond with an
item-not-found IQ error which also disables subsequent pushes from the server.
Note: We 0410-ping before a join to avoid unnecessary full joins which can be
quite costly. Further client side optimazations will also surpress pings when
a ping is already in flight to further save traffic.
2019-06-24 18:16:06 +02:00
Daniel Gultsch
6862b60c3f
self ping (xep-0410) after receiving invite to muc
2019-06-18 13:20:24 +02:00
Daniel Gultsch
782d889cc5
disallow subsequent session-accept
2019-06-17 09:51:49 +02:00
Daniel Gultsch
9fc1ead74f
use ibb if other party doesn’t annouce s5b feature
2019-06-16 22:57:10 +02:00
Daniel Gultsch
fe6c981ae2
accept direct ibb jingle offers
2019-06-16 21:23:18 +02:00
Daniel Gultsch
c965049605
handle invalid canditates in jingle
2019-05-22 17:30:51 +02:00
Daniel Gultsch
61604dedea
jingle: send canditate error before fallback
2019-04-30 11:23:15 +02:00
af8a524db1
137d48810d
Make use of Namespace.REGISTER constant ( #3446 )
2019-04-29 07:51:46 +00:00
Daniel Gultsch
bebce313b2
print available stream features / mechanisms on incompat server
2019-02-09 20:21:29 +01:00
Daniel Gultsch
18807305c1
do not require starttls when connecting over to .onion domain
2019-01-25 08:48:46 +01:00
Daniel Gultsch
83c3258dd7
properly jump out of connection loop on state changing errors
2019-01-19 11:47:21 +01:00
Daniel Gultsch
a53774bc6d
resend presence to muc avatar update. fixes #3175
2019-01-17 17:55:47 +01:00
Daniel Gultsch
e9bf2b464c
explicitly set type=images for all media with an image mime type
...
this is in preperation to be able to query the database for all images
2019-01-12 09:01:35 +01:00
Daniel Gultsch
96e3546904
put images into MessageStyle notifications
2019-01-09 12:47:09 +01:00
Daniel Gultsch
6b75c819d8
log number of unhandled iq callbacks after resume
2018-12-22 13:00:40 +01:00
Daniel Gultsch
9659f46136
log policy violation stream error message to logcat
2018-12-18 11:02:25 +01:00
Daniel Gultsch
7219f42ad2
check mam preference for mam:2 namespace and purge offline only if set
2018-12-05 19:11:40 +01:00
Daniel Gultsch
1de385dcb9
set access model to open when publishing avatar. fixes #3291
2018-11-25 20:58:48 +01:00
Daniel Gultsch
5f8184fe8e
only store non hardcoded resolver result in db
2018-10-16 12:23:27 +02:00
Daniel Gultsch
57fe153ef1
make 'cancelled' work for jingle ft
2018-10-08 10:31:41 +02:00
Daniel Gultsch
390175e5b3
use short read timeout when waiting for first stream open. disable read timeout aftwards
2018-10-04 11:20:02 +02:00
Daniel Gultsch
f608fb349a
refactored file encryption to give access to inner stream
...
Conscrypt on some plattforms doesn’t like when we close the CipherInputStream. Therefor we refactor the api to give us access to the inner stream so we can close that independently.
2018-10-03 18:14:45 +02:00
Daniel Gultsch
9ca636589c
remove more legacy otr decryption code
2018-10-03 12:50:54 +02:00
Daniel Gultsch
db2107c093
clean up connection code. unify domain = ip and extended connection settings into fake resolver
2018-10-01 17:07:37 +02:00
Daniel Gultsch
8270adf703
use sni and alpn for start tls as well. apperently google requires it
2018-10-01 11:34:27 +02:00
Daniel Gultsch
1cbb60d7ed
removed unused code (otr jingle encrypted file transfer)
2018-09-30 13:48:11 +02:00
Daniel Gultsch
9816261569
introduced error code for server not opening stream after auth or starttls
2018-09-27 17:39:49 +02:00
Daniel Gultsch
d737ea296e
code cleanup
2018-09-27 09:59:05 +02:00
Daniel Gultsch
681ce91ab8
do not run through connection loop after thread was interrupted and resolver returned 0 results
2018-09-26 14:39:04 +02:00
Daniel Gultsch
2d206122a5
use conscrypt api to set sni and alpn
2018-09-23 11:20:23 +02:00
Daniel Gultsch
b759cf902d
fixed regression that didn’t enable SNI
2018-09-22 13:32:46 +02:00
Daniel Gultsch
6637d7056e
use conscrypt as security provider to provide tls 1.3 and modern cyphers on old androids
2018-09-21 16:33:07 +02:00
Daniel Gultsch
be4c6bc2ca
speed up DNS
...
run queries in parallel
decrease timeout
do not fall back to google
2018-09-08 11:30:20 +02:00
Daniel Gultsch
6d6bbc0a5d
removed synchronized in favor of another interrupted check in startXmpp()
2018-09-01 10:07:40 +02:00
Daniel Gultsch
658caec342
use volatile for thread object in xmppconnection
2018-08-28 17:51:18 +02:00
Daniel Gultsch
25aa6bed1e
upgrade babbler version
2018-08-18 18:13:18 +02:00
Daniel Gultsch
dc5e7e5d95
store bookmarks in pep if conversion xep is running
2018-08-18 16:27:50 +02:00
Daniel Gultsch
2cc601ee36
do not call listeners while being synchronized on stanza queue
2018-07-16 20:42:17 +02:00
Daniel Gultsch
48e366e410
support mam:1
2018-07-07 11:20:39 +02:00
ChaosKid42
42b1e56cd9
improve identification of muc service ( #3094 )
2018-06-24 15:42:54 +02:00
Daniel Gultsch
b9bdb3df55
use Tor on http upload is account uses onion domain. fixes #3075
2018-06-16 18:31:55 +02:00
Daniel Gultsch
4019593181
report unparsable limit as http upload available
2018-06-05 16:18:18 +02:00
Daniel Gultsch
1854e37e7a
reintroduce support for old http upload
2018-05-26 21:43:50 +02:00
Daniel Gultsch
70d95c7903
upload files using p1s3 - sending part
2018-05-25 12:24:23 +02:00
Daniel Gultsch
5b41906328
do not include body in simple status updates to not trigger fts update
2018-05-10 10:47:28 +02:00
Daniel Gultsch
e84a65bc86
do not load conversations with null jid
2018-05-09 11:09:01 +02:00
Daniel Gultsch
d0c88e6293
check if jid was valid before parsing muc status or event msgs
2018-04-29 09:33:20 +02:00
Daniel Gultsch
effeb7b585
convert empty resources in messages to bare jid
2018-04-28 21:30:30 +02:00
Daniel Gultsch
6dbaece149
Merge tag '2.1.3'
2018-04-28 16:33:32 +02:00
Daniel Gultsch
322463bab7
return InvalidJid object instead of null if Jid can not be parsed
2018-04-28 16:26:40 +02:00
Daniel Gultsch
35020702fb
very much unoptimized search functionality
2018-04-26 13:22:31 +02:00
Daniel Gultsch
2a9413e64d
fixed caps hash generation for empty form values
2018-04-22 11:07:00 +02:00
Daniel Gultsch
4a706aad03
catch dead object exceptions when acquiring wake locks
2018-04-15 18:31:58 +02:00
Daniel Gultsch
f0cfbb4681
fixed muc detection for rare cases where muc is hosted on primary domain
2018-03-31 22:01:17 +02:00
Daniel Gultsch
bd3799fe02
messages coming from known muc server are treated as muc when creating conversation
2018-03-22 12:43:08 +01:00
Daniel Gultsch
5514958e93
presist http upload availibility
2018-03-18 10:30:15 +01:00
Daniel Gultsch
1bfc0b8da6
trim to original resource if server added something
2018-03-15 08:53:19 +01:00
Daniel Gultsch
72388e37f5
fixed some issues with jid escaping
2018-03-11 18:32:16 +01:00
Daniel Gultsch
c1135ad592
use escaped form of jid where approriate
2018-03-11 14:14:56 +01:00
Daniel Gultsch
4bb45996c5
return contact and account.getServer() as String
2018-03-11 12:13:56 +01:00
Daniel Gultsch
1accf9d961
migrate to xmpp-addr
2018-03-07 22:30:36 +01:00
Daniel Gultsch
b393f54a03
get rid of customizable resources
2018-03-07 22:30:35 +01:00
Daniel Gultsch
bf6b54a7aa
get rid of OTR
2018-03-07 22:30:34 +01:00
Daniel Gultsch
de0272fd1a
integrate trust manager into conversations
2018-03-07 22:30:33 +01:00
Daniel Gultsch
63cd8e5981
added config param to use a random resource at every bind
2018-02-24 20:47:02 +01:00
Daniel Gultsch
f81e5e471e
request disco items before disco#info on first connect
...
should make initial connect faster because code is not waiting for omemo code to run
2018-02-20 17:36:07 +01:00
Daniel Gultsch
e7094af9d5
warn when attempting to write stanza to an unbound stream
2018-02-20 17:03:44 +01:00
Daniel Gultsch
014cf66c87
do not allow insecure bind
2018-02-18 21:54:03 +01:00
Marc Schink
17c6d8827c
Make use of Namespace.DATA constant
2018-02-16 16:12:53 +01:00
Daniel Gultsch
012653f7ed
SM saftey checks
2018-02-02 16:52:40 +01:00
Daniel Gultsch
78c5c508b3
permanently cache last resolver result
2018-01-21 20:41:30 +01:00
Daniel Gultsch
f2bbb6087c
remove wakelocks in XmlReader
2018-01-21 12:30:31 +01:00
Daniel Gultsch
6458351f6c
use countdownlatch to check if TagWriter has finished
2018-01-20 23:13:36 +01:00
Daniel Gultsch
3a8855a672
fixed interupt handling
2018-01-20 21:57:09 +01:00
Daniel Gultsch
2b39acf352
postpone notification actions (mark as read, reply) until after messages are loaded
2018-01-20 20:05:39 +01:00
Daniel Gultsch
6009b8ebf0
disable offline messages. postpone prekey handling until after mam catchup
2018-01-19 18:17:13 +01:00
Daniel Gultsch
036dd82698
properly handle key transport messages. use prekeyparsing only when that attribute is set
2018-01-18 20:58:55 +01:00
Daniel Gultsch
127557df56
show pep as available if omemo_all_access has been installed on server
2017-12-18 13:47:53 +01:00
Daniel Gultsch
1b0cd77c57
XmppConnection: refactor registration code. 'Open Website' on PAYMENT_REQUIRED failure
2017-12-08 14:23:38 +01:00
Daniel Gultsch
05b6fdb9f1
use empty wake lock tag
2017-11-21 13:25:18 +01:00
Daniel Gultsch
2d42646893
JingleConnection: fixed rare npe when canceling jingle
2017-11-16 12:49:15 +01:00
Daniel Gultsch
c52492ada0
apperently some servers will ommit the from even for stanzas not going to them
2017-11-16 12:48:26 +01:00
Daniel Gultsch
bc9da1fbf4
remove prosody push from blacklist
2017-11-12 19:22:39 +01:00
Daniel Gultsch
435d1ef5bd
SASL: don't prefer PLAIN auth over DIGEST-MD5 for nimbuzz.com
2017-11-05 16:21:59 +01:00
Daniel Gultsch
962add97f9
XmppConnection: throw bind failure when server tries to reassign domain
2017-10-27 18:26:06 +02:00
Daniel Gultsch
6f802b88d2
XmppConnection: do not count stanzas before smacks session has started
2017-10-27 11:35:55 +02:00
Daniel Gultsch
396ad3361f
Jingle: create output stream on demand
2017-10-26 18:42:10 +02:00
Daniel Gultsch
d348780dfc
wait up to 2s to let server close socket before force closing
2017-08-23 12:33:40 +02:00
Daniel Gultsch
6afa5653cb
fixed jingle state machine being thrown off by iq-result coming after session-accept
...
fixes #2587
2017-08-18 14:33:56 +02:00
Daniel Gultsch
b925f436fd
add more logging to http download connection and reset file params after setting expected size
2017-08-04 11:58:12 +02:00
Daniel Gultsch
225cca4566
provide extra 'network is unreachable' account state
2017-08-02 18:58:51 +02:00
Daniel Gultsch
e11277c70f
use base64 instead of base36 when creating random strings
2017-07-30 11:39:47 +02:00
Daniel Gultsch
2fc216bfc4
skip initial socket closing if thread was already interrupted
2017-07-21 08:30:16 +02:00
Daniel Gultsch
9a57673130
use publish-options instead of always pushing node configuration
2017-07-18 12:51:15 +02:00
Daniel Gultsch
2a198793b1
fixed otr jingle file size reporting
2017-07-18 12:43:53 +02:00
Daniel Gultsch
febee9863f
catch IllegalArgumentException caused by invalid custom hostname
2017-07-16 21:02:56 +02:00
Daniel Gultsch
3d0b127a8f
verify with hostname in direct tls connections
2017-07-13 19:27:43 +02:00
Daniel Gultsch
edb28ccb31
throw state changing exception on failed tls only if no more connection options left
2017-07-11 23:25:59 +02:00
Daniel Gultsch
da00a58902
work around idn short comings in minidns
2017-07-10 08:50:01 +02:00
Daniel Gultsch
5cac4397dd
catch state changing error when sending timeout to iq callbacks
2017-07-03 19:44:01 +02:00
Daniel Gultsch
4a2e222b34
deduplicate disco items before disco#info
2017-06-30 08:45:16 +02:00
Daniel Gultsch
cbbf6f439b
add publish-options helper class
2017-06-27 22:50:39 +02:00
Daniel Gultsch
3c90dbe723
fixed ip reporting for dns look ups
2017-06-22 00:09:59 +02:00
Daniel Gultsch
2ed71df01a
also check for hostname in in certs if hostname is from trusted source
2017-06-21 23:40:01 +02:00
Daniel Gultsch
2e380ed792
upgrade minidns. refactored dns utils
2017-06-21 23:28:01 +02:00
Daniel Gultsch
5d9d725446
offer to open website if ibb offers oob redirect. fixes #2503
2017-06-19 20:02:41 +02:00
Daniel Gultsch
3ece613a5d
rename resource on bind conflict
2017-05-25 14:40:59 +02:00
Daniel Gultsch
51d1223198
invoke statusChanged callback after syncronization
2017-05-19 15:28:25 +02:00
Daniel Gultsch
7cd4ed78b2
synchronize on dedicated lock for catchup instead of account
2017-05-19 13:30:57 +02:00
Daniel Gultsch
9fd6539534
clean up client cert selection code
2017-05-18 11:31:31 +02:00
Daniel Gultsch
5056a28553
differentiate starttls failure and sasl failure
2017-05-13 08:08:05 +02:00
Daniel Gultsch
91db2023d3
use mam reference instead of timestamp
2017-05-07 21:05:35 +02:00
Daniel Gultsch
9a7d925b97
do not synchronize startXmpp() and sendPacket() on the same object as this can block the ui
2017-05-06 15:37:22 +02:00
Daniel Gultsch
be371ac5df
reset resource after bind failure
2017-05-05 09:38:58 +02:00
Daniel Gultsch
7b6d49f329
unified all account state exceptions
2017-05-05 09:33:05 +02:00
Daniel Gultsch
f47cf7ae67
make jingle implementation send file hash when using ft5
2017-05-03 11:03:04 +02:00
Daniel Gultsch
5cadc81de4
support for jingle ft:5. fixes #2458
2017-04-30 16:21:13 +02:00
Daniel Gultsch
84baa3ae68
avoid race conditions when downloading files or decrypting pgp messages and waiting for sm catchup
2017-04-30 16:19:39 +02:00
Daniel Gultsch
c837e0616a
make sure tag writer thread shuts down
2017-04-22 10:08:51 +02:00
Daniel Gultsch
0904ba42f8
use async message loading only when called from UI
2017-04-13 00:12:23 +02:00
cijo-saju
3467a67e75
Removed unused imports from entire project.
2017-04-12 20:24:36 +05:30
cijo-saju
b4318996ac
Fixed typo in comment
2017-03-26 22:07:39 +05:30
Daniel Gultsch
010b341251
do not pipeline first SM request because that might fail when resume fails
2017-03-21 18:08:20 +01:00
Daniel Gultsch
c97c5def2c
experimental: wait for SM catchup before triggering notifications
...
wait for a first SM ACK before calculating if we need to trigger any notifications
might have to be changed to an XEP-0199 ping later on. for now sending <r/> after resume seems to work outfine
2017-03-21 17:58:08 +01:00
Daniel Gultsch
c740386297
rename the Xmlns class to Namespace
2017-03-01 13:01:46 +01:00
Daniel Gultsch
c7ec82679f
Merge branch 'master' of github.com:siacs/Conversations
2017-02-24 20:00:54 +01:00
Daniel Gultsch
0c0ff882a9
make x509 verification node world readable
2017-02-24 19:58:46 +01:00
Daniel Gultsch
a28116753a
Merge pull request #2315 from licaon-kter/lecagy-typo
...
Fix a typo in legacy
2017-02-19 18:43:21 +01:00
licaon-kter
d3dd80eec9
Fix a typo in legacy
2017-02-19 15:47:57 +02:00
Daniel Gultsch
0d00ff0c15
migrate domain and host exemption into seperate class
2017-02-19 13:05:40 +01:00
Daniel Gultsch
c69ad8f52c
npe checks
2017-02-17 10:26:42 +01:00
Daniel Gultsch
caa16a8517
experimental mam legacy compat layer
2017-02-15 16:42:35 +01:00
Daniel Gultsch
b90a1fe1db
bump mam namespace
2017-02-14 17:19:45 +01:00
Daniel Gultsch
c8f97be68e
only force close tagwriter before creating a new one
2017-02-13 13:01:00 +01:00
Daniel Gultsch
c9e6d05fa0
use base64 encoding for file names uploaded with http
2017-01-26 18:39:25 +01:00
Daniel Gultsch
b72d7ec8d0
make sure to properly stop tagwriter
2017-01-22 12:54:39 +01:00
Daniel Gultsch
780d1daf7e
fixed some issues around ibb
2017-01-20 22:37:50 +01:00
Sam Whited
bfc2cffc2f
Add SCRAM-SHA-2 support
2017-01-15 23:43:44 -06:00
Daniel Gultsch
1876b444fa
refactor getServerIdentity() to parse disco result directly
2017-01-12 23:17:52 +01:00
Daniel Gultsch
b050ff2576
only call UI thread from downloading thread every 250ms
2017-01-12 16:02:09 +01:00
Daniel Gultsch
cbc9c1fb20
add support for RFC7711 to MTM
2016-12-05 21:52:44 +01:00
Daniel Gultsch
5d4aa04e5d
support for jid escapting when displaying localpart only
2016-12-01 20:49:18 +01:00
Daniel Gultsch
8132480b82
close socket after failed stream open
2016-11-19 12:20:31 +01:00
Daniel Gultsch
3bf2876e09
check if thread was interrupted before doing operations on socket
2016-11-19 10:44:40 +01:00
Daniel Gultsch
d68b7cfcfc
issue ping after network change
2016-11-18 14:00:05 +01:00
Daniel Gultsch
1ed2445c1d
don't reset last connect time on network change
2016-11-18 13:55:02 +01:00
Daniel Gultsch
20ddba2aa9
fixed npe when jingle partner is using unknown candidate
2016-11-01 10:27:01 +01:00
Daniel Gultsch
07a71d312a
extracting stanza-id where by=account
2016-10-31 12:07:08 +01:00
Daniel Gultsch
8557120ef8
add error message to failed messages. accessible via context menu
2016-10-26 12:26:04 +02:00
Daniel Gultsch
44ce5df359
write prepped string to db. use display version everywhere else
2016-10-20 17:31:46 +02:00
Daniel Gultsch
f6cfa27741
synchronize access to json key storage in account model
2016-10-13 11:27:26 +02:00
Daniel Gultsch
9efef24a04
reset sending to waiting on every error
2016-10-07 14:54:35 +02:00
Daniel Gultsch
26e33de79a
create new instances of key manager every time it's used
2016-10-07 10:04:36 +02:00
Daniel Gultsch
8d8cb92e43
try to fix messages stuck at sending
2016-10-06 17:23:35 +02:00
Daniel Gultsch
401759cdc7
don't wait for disco when not having stream managment
2016-09-21 12:55:40 +02:00
Daniel Gultsch
7eac903277
add support for XEP-0377: Spam Reporting
2016-09-18 23:21:05 +02:00
Daniel Gultsch
4359afacb4
store jid if it was changed during bind
2016-09-14 12:26:38 +02:00
Daniel Gultsch
7b52e6984c
Merge pull request #2018 from SamWhited/sasl_anonymous
...
SASL ANONYMOUS (no UI)
2016-09-14 09:34:20 +02:00
Daniel Gultsch
d3dfecae8a
don't use display version of jids
2016-09-12 22:48:51 +02:00
Sam Whited
1a0b538166
Use JID returned by the server during bind
...
Not just the resourcepart
2016-09-12 11:33:36 -05:00
Sam Whited
805717673c
Support ANONYMOUS SASL
2016-09-12 11:30:03 -05:00
licaon-kter
59b2e281a3
Fix typo
2016-09-10 22:16:14 +03:00
Daniel Gultsch
416481bb65
be a bit more careful when deleting and deactivating accounts
2016-09-07 14:34:58 +02:00
Daniel Gultsch
7917c19d18
broader exception catchers
2016-08-30 13:15:00 +02:00
Daniel Gultsch
caafd03130
don't automatically download files and avatars when datasaver is on
2016-08-27 13:35:52 +02:00
Daniel Gultsch
e98ab37c9d
made payment required error standard compliant
2016-08-25 23:42:42 +02:00
Daniel Gultsch
0b9d38cf32
send register IQs without full from
2016-08-25 13:50:54 +02:00
Daniel Gultsch
285d86b375
display error status for missing internet permission
2016-08-19 21:47:08 +02:00
Daniel Gultsch
b5d3859b22
add payment required error
2016-08-16 10:39:59 +02:00
Daniel Gultsch
08725ba2bb
use direct ssl when port was manually set to 5223
...
this should create a work around for the oracle xmpp server
2016-08-10 12:34:05 +02:00
Daniel Gultsch
a51de9fcd9
explictly set account status to offline when waiting for push
2016-08-09 17:25:45 +02:00
Daniel Gultsch
3409399ef1
display specific error message when password is too weak on registration
2016-07-25 15:57:47 +02:00
Daniel Gultsch
1db85e582e
add more error states for stream errors
2016-07-14 17:05:43 +02:00
Daniel Gultsch
58d5d2a1be
don't time out disco request but just send bind request
2016-07-13 00:20:57 +02:00
Daniel Gultsch
ac8aa63916
do not crash on jingle connection when contact doesn't use disco
2016-07-04 19:29:46 +02:00
Daniel Gultsch
1d79a677c8
support jingle ft:4 to be compatible with swift
...
Conversations and Gajim both have an implementation bug that sends the jingle session id instead of the transport id (compare XEP-260 2.2). This commit has a work around for this that remains buggy when using ft:3. If gajim is ever to fix this we will be incompatbile. gajim should implement ft:4 instead. (gajim to gajim is broken as well)
2016-06-29 17:16:40 +02:00
Daniel Gultsch
97fe14c4be
code cleanup in jingle socks5 transport
2016-06-24 13:36:37 +02:00
Daniel Gultsch
34454ef2ec
synchronize stanza count increment and write
2016-06-22 12:21:33 +02:00
Daniel Gultsch
5f40a7042d
delay notification until after pgp decryption
2016-06-15 12:44:29 +02:00
Daniel Gultsch
95a51ea2e0
synchronize access to stanza queue
2016-06-14 10:17:37 +02:00
Daniel Gultsch
40f81f19df
make sure tagwriter is clear before force closing socket
2016-06-13 19:05:32 +02:00
Daniel Gultsch
587fb3cca3
refactored pgp decryption
2016-06-13 13:32:14 +02:00
Daniel Gultsch
36ae840d76
log all background stanzas when background logging is enabled
2016-06-05 02:04:31 +02:00
Daniel Gultsch
71e9117176
opt-in to send last userinteraction in presence
2016-06-04 16:16:14 +02:00
Daniel Gultsch
ffba53777c
check if session is optional
2016-05-31 23:09:45 +02:00
Daniel Gultsch
b69ab65b12
show regitration failed try again later in UI
2016-05-24 13:26:30 +02:00
Daniel Gultsch
3f65b0e985
access disco over caching mechanism instead of querying db
2016-05-19 10:44:16 +02:00
Daniel Gultsch
0eb8d4226e
also save form elements in disco storage
2016-05-19 10:41:56 +02:00
Daniel Gultsch
d7c5264ad0
cap exponential backoff at 300s (10 attempts)
2016-05-16 19:58:24 +02:00
Daniel Gultsch
b756d61c45
show presence of other resources as template
2016-05-13 10:45:30 +02:00
Daniel Gultsch
2014f388b1
interrupt XMPPConnection Thread
...
in some cases the the DNS query might take too long (even though we specified a timeout)
if that happens we need a secondary solution (besides killing the socket) to stop the thread
2016-05-12 21:54:46 +02:00
Daniel Gultsch
8e3948e495
don’t let attempt count fall below zero
2016-05-10 17:48:09 +02:00
Daniel Gultsch
549be9bb3d
report host-account as account state in UI
2016-05-10 10:29:02 +02:00
Daniel Gultsch
488780d2ce
fix logging wrong variable for failed resume
2016-05-08 21:53:45 +02:00
Daniel Gultsch
6f3b8f64d1
check for h attribute in 'failed' nonza
2016-05-08 21:45:18 +02:00
Daniel Gultsch
a7cd05bd4e
report bind failure as account state
2016-05-05 20:22:47 +02:00
Daniel Gultsch
0157039e87
log more information about HTTP’s max upload size
2016-05-05 19:34:44 +02:00
Daniel Gultsch
12704fa640
refactor captcha response handling to avoid network on main thread exception
2016-05-05 09:58:35 +02:00
klemens
7047d68165
spelling fixes
2016-05-04 10:29:29 +02:00
Daniel Gultsch
7ff890e513
republish avatar if server offers non-persistent pep :-(
2016-04-11 22:20:32 +02:00
Daniel Gultsch
5786e75374
don't throw IO exception at end of stream
2016-04-10 00:19:53 +02:00
Daniel Gultsch
607b7d1593
moved authentication into seperate method. force close socket before changing status
2016-04-10 00:18:14 +02:00
Daniel Gultsch
14b46c3ee7
transform nimbuzz workaround into a more general 'waitForDisco' condition
2016-04-09 08:53:58 +02:00
Daniel Gultsch
a8ebc5fafc
add required disco#items query to timeout list
2016-04-08 20:20:37 +02:00
Daniel Gultsch
0385e3a8d6
switched around info and items query to avoid race condition
2016-04-04 20:35:40 +02:00
Daniel Gultsch
61997912fd
made sure the disco#items query has returned before finalizing the bind
2016-04-04 20:06:07 +02:00
Daniel Gultsch
2549ce89b0
check max http file size when attaching files
2016-04-01 00:03:14 +02:00
Daniel Gultsch
74c496fe3e
add methods to check max file size for http upload
2016-03-31 21:56:59 +02:00
Daniel Gultsch
e074104004
save otr fingerprint in message
2016-03-31 21:15:49 +02:00
Daniel Gultsch
867d0ef191
include form fields into caps hash calculation
2016-03-31 14:21:56 +02:00
Daniel Gultsch
a9b66e3ea5
allow to delete attachments. fixes #1539
2016-03-23 19:23:22 +01:00
Daniel Gultsch
281cb65046
only add image files to media scanner
2016-03-23 12:20:09 +01:00
Daniel Gultsch
7df24407dc
be more careful to avoid creating multiple connections
2016-03-20 17:24:41 +01:00
Daniel Gultsch
817d344521
log reason for bind failure
2016-03-11 09:01:40 +01:00
Daniel Gultsch
89eea3636f
add a few more know file extensions
2016-03-04 11:24:53 +01:00
Daniel Gultsch
9e0466d1e6
refactored omemo to take multiple recipients
2016-02-29 13:18:07 +01:00
Daniel Gultsch
3626e4b3a0
fixed regression that caused messages in muc not being send
2016-02-17 16:50:48 +01:00
Daniel Gultsch
251f2479c2
optional mode to close tcp connection when going into background
...
acts only when push is available. disable all non-push accounts to test properly
2016-02-14 13:20:23 +01:00
Daniel Gultsch
6f9f871928
send push enable to server. simplified logging
2016-02-13 14:20:07 +01:00
Daniel Gultsch
32da65f910
client side support for XEP-0357: Push Notifications
2016-02-12 11:39:27 +01:00
Daniel Gultsch
7dd9545ea3
use TLSv1.2 as SSL context on supported plattforms
2016-02-03 18:17:16 +01:00
Daniel Gultsch
1d572c61d0
cache server caps
2016-02-03 17:19:05 +01:00
Daniel Gultsch
4a1a59f0c8
Merge branch 'disco-caps' of https://github.com/singpolyma/Conversations into singpolyma-disco-caps
2016-02-02 18:19:26 +01:00
Daniel Gultsch
c416948f8b
be more careful with resetting the stream id
2016-01-29 12:09:55 +01:00
Daniel Gultsch
d2c5a939ed
show values in formfieldwrappers and allow form to be set to read only
2016-01-26 17:23:24 +01:00
Daniel Gultsch
7c0eae8059
expert setting to trigger extended connection options
2016-01-25 21:17:53 +01:00
Daniel Gultsch
8850a1fbe3
added FormWrapper and form field validation
2016-01-23 20:32:00 +01:00
Stephen Paul Weber
fccce229c6
Factor out a representation of XEP-0030 results
...
And the parser from Element to this representation.
2016-01-23 10:52:40 -05:00
Daniel Gultsch
6140861143
reset stanza queue when resetting xmppconnection
2016-01-23 11:40:32 +01:00
Daniel Gultsch
a6c5430cdd
added UI wrapper for (some) form fields
2016-01-22 20:22:47 +01:00
Daniel Gultsch
40005cec1b
added config variable to allow non-tls connections
2016-01-22 11:20:31 +01:00
Daniel Gultsch
7b1efe15cd
reuse same xmppconnection for reconnects
2016-01-16 19:21:11 +01:00
Daniel Gultsch
c5743067ad
nimbuzz.com: don't wait for disco replies to set account to online
2016-01-15 14:26:23 +01:00
Daniel Gultsch
3e9fd0185a
throw security exception instead of going to next srv entry
2016-01-12 23:42:47 +01:00
Daniel Gultsch
893751a1d2
move some ssl socket modifiers into a seperate helper class
2016-01-12 16:33:15 +01:00
moparisthebest
217f6603c0
Implement XEP-0368: SRV records for XMPP over TLS
2016-01-11 17:25:16 -05:00
Daniel Gultsch
20ec9ff2c6
reworked that loop that iterates over various servers
2016-01-11 19:05:25 +01:00
Daniel Gultsch
0f9058ffef
throw exception at the end of the stream
2015-12-17 15:20:06 +01:00
Daniel Gultsch
43dd681239
timeout service discovery after 20s
2015-12-15 19:24:05 +01:00
Daniel Gultsch
5e151c7311
wait with status change to online after all disco queries have been made
2015-12-09 11:16:03 +01:00
Daniel Gultsch
c3e8fb3446
request storage permission when needed on Android 6.0
2015-12-07 13:24:41 +01:00
Daniel Gultsch
2225b0b6d5
add error state for unavailable tor network
2015-12-01 12:00:50 +01:00
Daniel Gultsch
8ffcc11f27
refactored socks5 connection code. make jingle transport use that new code
2015-12-01 12:00:50 +01:00
Daniel Gultsch
ebccb67a72
do socks5 connect manually
2015-12-01 12:00:50 +01:00
Daniel Gultsch
f0b1761ec3
initial tor support
2015-12-01 12:00:50 +01:00
Daniel Gultsch
60211a315e
hide subject edit button if not editable by user
2015-11-26 17:44:29 +01:00
Daniel Gultsch
fd6ed5b989
detect server identity and added muc-workaround for slack
2015-11-26 06:55:57 +01:00
Daniel Gultsch
210de7d781
removed unecessary chat state
2015-11-26 06:53:02 +01:00
Daniel Gultsch
ecb4615f2a
fail jingle file transfer if axolotl key message could not be created. fixes #1576
2015-11-26 06:52:46 +01:00
Daniel Gultsch
a557d38e4d
pgp fixes and revert configuration changes
2015-11-25 20:47:02 +01:00
Daniel Gultsch
fb9ba0a734
don't close socket on disconnect
2015-11-01 07:45:00 +01:00
Daniel Gultsch
ef7857ac8d
avoid npe when checking for stream restart
2015-10-29 14:38:35 +01:00
Daniel Gultsch
1bd68a42b2
join muc even if initial conference configuration fetch failed
2015-10-22 11:20:36 +02:00
Daniel Gultsch
adca670196
synchronize around the disco object
2015-10-19 23:03:19 +02:00
Daniel Gultsch
e956c7b2a2
only try EXTERNAL auth if client certificate is set for account
2015-10-17 16:10:31 +02:00
Daniel Gultsch
a83aae341f
improved error reporting in trust keys activity
2015-10-17 14:09:26 +02:00
Daniel Gultsch
cfeb67d71d
introduced code to verify omemo device keys with x509 certificates.
...
cleaned up TrustKeysActivity to automatically close if there is nothing to do
2015-10-16 23:48:42 +02:00
Daniel Gultsch
fb7359e6a3
block code when doing unforced disconnect
2015-10-16 09:58:31 +02:00
Daniel Gultsch
e75c2cd731
use own XmppDomainVerifier instead of deprecated StrictHostnameVerifier. fixes #1189
2015-10-15 17:08:38 +02:00
Daniel Gultsch
76828950ee
cleaned up some code. log last tag
2015-10-13 23:34:09 +02:00
Daniel Gultsch
933538a39d
code clean up
2015-10-12 12:36:54 +02:00
Daniel Gultsch
b519411d34
enable SASL EXTERNAL (certificate login
2015-10-11 20:45:01 +02:00
Andreas Straub
a7c7a42136
Improve InvalidJidException handling in Jid class
...
This code should never be triggered anway, so with this 'fix', we should
at least get more meaningful stack traces. Plus, it makes the linter
happy by preventing NullPointerExceptions.
2015-10-11 16:05:44 +02:00
Armin Novak
6a6cb43b17
Captcha support.
2015-10-11 13:11:50 +02:00
Daniel Gultsch
9dcf074a79
request stanza count after every ibb data stanza to not fill our own stanza queue
2015-09-30 23:42:02 +02:00
Daniel Gultsch
648e29db2c
only invoke MTM in interactive mode after direct user input
...
fixes #1027
fixes #792
fixes #1439
2015-09-29 19:24:52 +02:00
Daniel Gultsch
a954e32b16
let DnsHelper provide a fallback solution
2015-09-19 17:31:24 +02:00
Michael
8f69017d5a
remove the from attribute from sendStartStream() fixes #1419
2015-09-19 15:58:33 +02:00
Daniel Gultsch
c173d78950
ignore spoofed stanzas in facebook chat
2015-09-17 14:13:38 +02:00
Daniel Gultsch
b9002d7fd5
added missing type='submit' to mam queries
...
fixed some nasty inheritance problems along the way
fixes #1411
2015-09-15 22:52:39 +02:00
Daniel Gultsch
fc594e249a
added special error state for dns timeout
2015-09-01 22:37:52 +02:00
Daniel Gultsch
3db7087658
use build in method on >= lolipop devices to discover dns servers
2015-08-28 13:05:34 +02:00
Daniel Gultsch
384c441990
reformating and upper bound for waiting on stanza writer
2015-08-28 11:42:11 +02:00
Daniel Gultsch
5298f4e2aa
fixed type=timeout
2015-08-28 11:41:41 +02:00
Daniel Gultsch
cd451856b2
explictitly handle iq timeouts in bind and session iqs
2015-08-26 20:47:08 +02:00
Daniel Gultsch
f6b7a25e29
moved actual iq callback out of synchronized find callback block
2015-08-26 14:01:37 +02:00
Michael
ae9de26f59
remove unused imports.
2015-08-25 12:40:22 +02:00
Daniel Gultsch
476db24c10
fixed session time
2015-08-25 11:11:32 +02:00
Daniel Gultsch
865e08401b
fixed regression with mlinks stream managment. fixes #1206
2015-08-24 20:56:36 +02:00
Daniel Gultsch
7bd0f31244
Merge branch 'master' into development
2015-08-23 17:57:53 +02:00
Daniel Gultsch
0dfb9bd1a0
introduce special iq type for internal timeouts. always use != result to check for error in callbacks
2015-08-23 17:53:23 +02:00
Daniel Gultsch
777dd4b51e
Merge branch 'master' into development
2015-08-23 17:29:46 +02:00
Daniel Gultsch
bbfd98b726
reformating
2015-08-23 17:29:31 +02:00
Daniel Gultsch
d51c4b9655
deal with another set of stream:features after bind
2015-08-23 17:26:50 +02:00
Daniel Gultsch
b0710cdf04
Merge branch 'master' into development
2015-08-23 13:57:14 +02:00
Daniel Gultsch
3d6fb9b21d
remove callbacks directly from iterator
2015-08-23 10:20:29 +02:00
Daniel Gultsch
1688b65965
don't make subsequent iq request when original stanza returned an error
2015-08-23 08:27:05 +02:00
Daniel Gultsch
496f531e2e
modified clearIqCallbacks into 2-step process
2015-08-23 08:01:47 +02:00
Daniel Gultsch
9e26375d2f
simulate old behaviour with messages being set to waiting while offline
2015-08-19 13:00:52 +02:00
Daniel Gultsch
9edcca1045
Merge branch 'master' into development
2015-08-16 15:01:06 +02:00
Daniel Gultsch
5b1dda9148
deal with broken frameworks
2015-08-16 14:55:40 +02:00
Daniel Gultsch
51a2645349
synchronize packetCallbacks
2015-08-16 12:12:22 +02:00
Daniel Gultsch
83e1e6468e
fully depend on sm
2015-08-15 16:57:07 +02:00
Daniel Gultsch
dad90762b4
do not touch pictures that are already in the right format
...
fixed #522
2015-08-11 16:50:00 +02:00
Daniel Gultsch
fd81491b05
put wake locks on out of band file transfers
2015-08-10 19:48:36 +02:00
Daniel Gultsch
d30515a85a
report wrong file size in otr encrypted jingle file transfers to be compatible with conversations > 1.6
2015-08-10 12:55:37 +02:00
Daniel Gultsch
b7f00ddac3
fixed image preview in notfications for images that arrived over jingle
2015-08-08 17:19:40 +02:00
Daniel Gultsch
efdf3b6c1c
removed dead code
2015-08-08 13:13:23 +02:00
Daniel Gultsch
cac577fa4e
don't request ack for iq stanzas before stream managment is initialized
...
fixes #1322
2015-08-08 10:26:36 +02:00
Daniel Gultsch
53ce5d223e
request server-ACKs for iq stanzas
2015-08-06 20:48:55 +02:00
Daniel Gultsch
6694af8fca
fail old/invalid iq stanzas on bind
2015-08-06 14:54:37 +02:00
Daniel Gultsch
60cd307f73
enable axolotl encryption for jingle supported file transfers
2015-08-01 01:19:16 +02:00
Daniel Gultsch
58d80f58be
use gcm for file encryption over http
2015-07-29 23:45:37 +02:00
Daniel Gultsch
9c94c9ad8f
rewrote dns fallback
2015-07-24 19:06:47 +02:00
Daniel Gultsch
c32162c280
switch/case can't deal with null pointers
2015-07-23 14:02:25 +02:00
Andreas Straub
92b5081b5e
Add INACTIVE state for removed keys
...
We introduce a new trust state: INACTIVE. This state is intended for
old keys that have been removed.
When a TRUSTED device is removed from the PEP devicelist, it's status
will be set to INACTIVE. INACTIVE keys are shown in the UI as greyed
out, non-interactible key rows. Messages are not encrypted for INACTIVE
devices.
When an INACTIVE device reappears in PEP, or a message is received from
an INACTIVE device, it is set back to trusted.
2015-07-21 14:24:59 +02:00
Daniel Gultsch
504ef0b72e
rely on refreshUi/refreshUiReal and make sure it is being used everywhere
2015-07-20 15:48:58 +02:00
Andreas Straub
012f036840
Optimize imports
2015-07-20 14:26:29 +02:00
Andreas Straub
14010bf5a6
Ask for key trust when sending messages
...
If the contact (or the own account) has keys that have UNDECIDED trust,
we now drop the user into the new TrustKeysActivity, where they have to
decide for each new key whether it should be TRUSTED or UNTRUSTED.
2015-07-19 22:27:26 +02:00
Andreas Straub
77619b55e4
Added PEP and message protocol layers
...
Can now fetch/retrieve from PEP, as well as encode/decode messages
2015-07-19 21:32:26 +02:00
Daniel Gultsch
9b70c7e68c
bugfix: don't crash if aes key could not be set before jingle transfer
2015-07-19 14:51:04 +02:00
Daniel Gultsch
1f43115544
increased ibb block size
2015-07-17 13:06:51 +02:00
Daniel Gultsch
ce79f4bbe3
renamed downloadable to transferable
2015-07-10 15:11:03 +02:00
Daniel Gultsch
7eac30d1f4
catch number format exception in server ack
2015-07-10 12:09:59 +02:00
Daniel Gultsch
9eb9a52205
initial http upload support
...
be careful: little error handling and no encryption
2015-06-29 15:21:41 +02:00
Daniel Gultsch
5a48afdd4d
don't perform dns lookups on domain parts that obviously look like ip addresses
2015-06-19 16:25:08 +02:00
Daniel Gultsch
3eab3291de
properly calculate remaining size. should fix #1243
2015-06-03 03:05:20 +02:00
Daniel Gultsch
a577ec7c31
let dns library take care of no-srv style hosts as well
2015-05-28 17:31:46 +02:00
Daniel Gultsch
f579602456
Merge branch 'master' into development
2015-05-25 11:15:14 +02:00
Daniel Gultsch
36034815ee
use same sm check inside xmppconnection and out
2015-05-25 04:54:11 +02:00
Daniel Gultsch
d261feda74
rewrote parser code. mam id and possible other stuff still missing. also massivly untested
2015-05-20 03:48:14 +02:00
Daniel Gultsch
e32f380dae
provide helper function for getting the content of a child directly
2015-05-20 03:48:14 +02:00
Daniel Gultsch
a0575c81ab
use same socket time out for jingle and xmpp connections
2015-05-18 08:48:08 +02:00
Daniel Gultsch
1446a59fa5
use a 20s timeout on socks5 connections
2015-05-18 08:46:04 +02:00
Daniel Gultsch
fbc43a8d38
don't offer initiator his own candidates
2015-05-18 08:45:50 +02:00
Daniel Gultsch
d672d578c9
fixed crash on failed account registry
2015-05-17 12:32:04 +02:00
Daniel Gultsch
4151b72a6e
let jingle connection and manager handle message status
2015-05-16 04:12:53 +02:00
Andreas Straub
b69ee7125d
Force Nameprepping of JID domain parts
...
The IDN.toAscii()/IDN.toUnicode() family only namepreps the original
domain passed to it if it contained non-ASCII characters. This means
that for all-ASCII domains, no canonicalization is performed, which
leads to issues like case-sensitivity. This workaround explicitly
namepreps domain parts before calling IDN.toAscii() on them, in order to
get a canonicalized representation (most notably, case invariance). A
basic DB migration is also included.
2015-05-14 15:52:55 +02:00
Daniel Gultsch
8d472157a4
always log reason for failed file transfer
2015-05-14 11:57:51 +02:00
Daniel Gultsch
c4a4dd2392
throw proper exception before changing account into error state
2015-05-08 06:30:06 +02:00
Daniel Gultsch
e0653c0371
fixed encrypted ibb file transfer which was broken with ART. fixes #1172
2015-05-07 14:19:51 +02:00
Daniel Gultsch
d74e8a8a0e
fixed npe when missing instructions on failed register
2015-05-06 04:33:21 +02:00
Daniel Gultsch
db726a59b8
fwiw don't allow stanza count to go over MAX_INT
2015-05-06 04:29:45 +02:00
Daniel Gultsch
5136bf9832
r/o support for vcard avatars. pep avatars will be prefered
2015-05-05 06:17:34 +02:00
Daniel Gultsch
c4bfffe6a9
mark account with incompatible server when no sasl mechansim could be found
2015-05-02 12:10:56 +02:00
Daniel Gultsch
bcdfdb9ccf
added config option to be a bit more verbose about stanza counts
2015-04-29 16:15:07 +02:00
Daniel Gultsch
e11d658f5e
use xmppserviceconnection to send iq packets in jingle connection
2015-04-26 20:27:30 +02:00
Daniel Gultsch
5ea1c547d5
fixed service discovery by properly storing and checking identities
2015-04-25 18:24:10 +02:00
Daniel Gultsch
d07baccf97
cleaned up file handling
2015-04-25 14:08:24 +02:00
iNPUTmice
c4daa08170
fixed a bug in DNS helper code. fixes #1130
2015-04-16 21:56:03 +02:00
iNPUTmice
65e760aefd
some bug fixes concerning 0byte files. fixes #1126
2015-04-15 15:36:16 +02:00
iNPUTmice
332fe0fd19
don't resume old session when changing resource
2015-04-09 12:46:54 +02:00
iNPUTmice
99b2ef7e9d
respond to unreadable OTR messages with error message. fixed #1021
2015-03-21 16:07:17 +01:00
iNPUTmice
da099e5fa4
wait for session iq to return sucessfully before sending other stanzas. fixed #1017
2015-03-20 21:48:45 +01:00
Mateusz "maxmati" Nowoty?ski
74e5317095
Do not Strigprep JIDs from database
2015-03-11 15:59:31 +01:00
iNPUTmice
f25a824610
avoid unnecessary thread creation
2015-03-05 15:46:33 +01:00