Maxime Buquet
1f47acaec1
Merge branch 'fix-xep_0115-static' into 'master'
...
XEP-0115: Make get_caps() async
See merge request poezio/slixmpp!203
2022-07-16 19:02:06 +02:00
nicoco
ed820bf551
Make it clear that filename does *not* have to be path, and is mandatory
2022-07-16 17:17:22 +02:00
nicoco
afedfa4b06
Merge branch 'master' of https://lab.louiz.org/poezio/slixmpp
2022-07-16 17:08:21 +02:00
Maxime Buquet
5998069203
Merge branch 'mini_dateutil-no-more' into 'master'
...
Remove mini_dateutil and replace it with datetime
See merge request poezio/slixmpp!210
2022-07-12 13:39:02 +02:00
Maxime Buquet
356f16f5af
Merge branch 'prevent-naive-datetime' into 'master'
...
XEP-0203: Prevent naïve datetime from being passed
Closes #3471
See merge request poezio/slixmpp!211
2022-07-12 13:38:52 +02:00
Link Mauve
b8f301b26f
Merge branch 'affs-outcast-jid' into 'master'
...
xep_0045: Require JID when setting outcast affiliation
See merge request poezio/slixmpp!188
2022-07-12 13:28:02 +02:00
Link Mauve
ffaeb31219
Merge branch 'nicoco-master-patch-90506' into 'master'
...
Add xep_0356 to plugins.__all__
See merge request poezio/slixmpp!201
2022-07-12 13:26:54 +02:00
Link Mauve
9560f39de7
Merge branch 'xep0356-v0.4' into 'master'
...
XEP-0356: namespace version bump
See merge request poezio/slixmpp!206
2022-07-12 13:26:14 +02:00
Link Mauve
f7a38a028a
Merge branch 'default-to-CAs' into 'master'
...
xmlstream: load default CA store by default
See merge request poezio/slixmpp!209
2022-07-12 13:24:32 +02:00
Emmanuel Gil Peyrot
65d70fe417
XEP-0203: Prevent naïve datetime from being passed
...
The specification says “The format MUST adhere to the dateTime format
specified in XEP-0082 and MUST be expressed in UTC.”
We now respect this requirement, by rejecting naïve datetimes with a
ValueError exception, and converting the passed datetime to UTC.
Fixes #3471 .
2022-07-12 13:15:31 +02:00
Emmanuel Gil Peyrot
108a256537
thirdparty: Remove the mini_dateutil module
...
The builtin datetime module already provides the same features, there is
no need to carry that code any longer.
2022-07-12 12:55:20 +02:00
Emmanuel Gil Peyrot
78a5f79240
XEP-0202: Remove usage of mini_dateutil
...
Like the previous commit, we now use the builtin datetime module always.
2022-07-12 12:54:35 +02:00
Emmanuel Gil Peyrot
fc63768cfc
XEP-0082: Move from mini_dateutil to datetime
...
Since datetime got merged into Python (probably around py3k), it’s now
usable for all of our needs and so we can do away with the old fallback.
2022-07-12 12:51:22 +02:00
Maxime “pep” Buquet
90e79af18a
xmlstream: load default CA store by default
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-07-11 14:46:00 +02:00
Georg Lukas
b44ab17c8f
Fix delayed reconnect after DNS failure
...
The XML stream will re-schedule a reconnect on socket errors, except
for DNS failures. If a user has no uplink connection, then DNS will
also fail, preventing an automatic reconnection.
This patch consolidates the two code paths and sets a maximum back-off
time of 5min (300s).
2022-06-22 11:39:44 +02:00
Nicolas Cedilnik
afb5419b68
XEP-0363: Fix upload service auto discovery for components
2022-06-18 06:09:36 +02:00
Nicolas Cedilnik
a1a5f3984d
XEP-0356: namespace version bump
2022-06-09 16:45:36 +02:00
Nicolas Cedilnik
8eb8769862
XEP-0115: Make get_caps() async
2022-06-09 15:33:02 +02:00
Maxime “pep” Buquet
916894ab7c
Change origin-id defaults to False
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-05-28 13:50:09 +02:00
Nicoco K
2b45c22fcb
Add xep_0356 to plugins.__all__
2022-05-19 14:40:45 +02:00
Nicoco K
aa492f905c
Fix typo in chat markers ( fixes #3469 )
2022-05-15 07:48:00 +02:00
mathieui
771839242c
Update version to 1.8.2
2022-04-06 22:41:40 +02:00
Maxime “pep” Buquet
88d2f5dae4
features_starttls/Proceed: raise exception on InvalidCABundle
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-04-05 19:42:49 +02:00
mathieui
f7902d056e
Merge branch 'exn-invalidcabundle-arg' into 'master'
...
Pass in useful value when raising InvalidCABundle
See merge request poezio/slixmpp!195
2022-04-05 19:42:06 +02:00
Maxime “pep” Buquet
41afbb10df
Pass in useful value when raising InvalidCABundle
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-04-05 01:24:14 +02:00
mathieui
914ce40fd5
stream features: fix old "session" establishment
...
As it is and old and deprecated code path, nobody noticed that it was
broken by the new filtering code.
Fix #3468
2022-04-01 20:56:02 +02:00
Maxime Buquet
82ff68cfac
Merge branch 'upload-encrypt' into 'master'
...
XEP-0454: OMEMO Media Sharing
See merge request poezio/slixmpp!189
2022-03-21 17:01:40 +01:00
Maxime “pep” Buquet
28d44ecf74
xep_0454: str.removeprefix is available since 3.9
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-20 21:34:55 +01:00
mathieui
fedbb248ec
Update version to 1.8.1
2022-03-20 20:22:52 +01:00
Maxime “pep” Buquet
06e4e480c1
xep_0454: keep original filename extension if available
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-20 01:02:14 +01:00
Maxime “pep” Buquet
82ee250295
xep_0454: use staticmethods where possible
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-20 01:02:14 +01:00
mathieui
41d733e77f
Only defuse stdlib through an env var
...
https://github.com/inducer/relate/issues/905
2022-03-19 16:15:03 +01:00
Maxime “pep” Buquet
b899baabd8
xep_0454: also include finalize's result in the payload
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-19 10:31:34 +01:00
Maxime “pep” Buquet
acad41f3b7
xep_0454: Don't force content-type to application/octect-stream
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-19 10:31:34 +01:00
Maxime “pep” Buquet
7222ade0dd
xep_0454: Ensure format_url returns a str
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-19 10:31:34 +01:00
Maxime “pep” Buquet
b52540e49f
xep_0454: implement decrypt method
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-19 10:31:34 +01:00
Maxime “pep” Buquet
c1aeab328b
xep_0454: use streaming API from CipherContext
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-19 10:31:34 +01:00
Maxime “pep” Buquet
51644e301b
xep_0454: Add wrapper to xep_363's upload_file
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-19 10:31:34 +01:00
Maxime “pep” Buquet
bc8af3cc61
xep_0454: new plugin. OMEMO Media Sharing
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-19 10:31:34 +01:00
Maxime “pep” Buquet
3c08f471cf
xep_0363: change filename to Path
...
This shouldn't break anything as I'm not using Path specific APIs
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-19 10:31:34 +01:00
mathieui
4202ed4cd5
Fix mypy in CI
2022-03-19 00:04:56 +01:00
Maxime “pep” Buquet
60df4ef7aa
xep_0045: Require JID when setting outcast affiliation
...
Found out when reading poezio/poezio#3536 .
“An admin or owner can ban one or more users from a room. The ban MUST
be performed based on the occupant's bare JID.”
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-16 16:12:20 +01:00
mathieui
389a358996
version: increment to 1.8.0
2022-02-27 22:20:02 +01:00
mathieui
b23b805dc5
docs: Fix some wrong references
2022-02-27 20:32:48 +01:00
mathieui
06172ea896
XEP-0045: return occupants and history when join is complete
2022-02-27 18:11:10 +01:00
mathieui
815b7d5af7
Fix join_muc_wait: end join only upon receiving the room subject
2022-02-27 16:22:59 +01:00
mathieui
d15a37e146
fix: allow cancelling the run_filters coroutine
...
otherwise it will leak forever into the event loop and generate
tracebacks when closing it
2022-02-16 22:11:19 +01:00
mathieui
bcb4495c6d
deprecate XMLStream.process()
2022-02-15 21:57:49 +01:00
mathieui
e543e22e78
fix: specific cases in xep-0047 with network race conditions
2022-02-05 12:38:48 +01:00
mathieui
714f9aae0d
Merge branch 'bugfix/xep_0009' into 'master'
...
xep-0009: fixed bugs
See merge request poezio/slixmpp!172
2022-02-04 23:11:28 +01:00