Yann Leboulanger
2be53c4aac
update my copyright to 2010
2010-03-11 16:52:36 +01:00
Yann Leboulanger
5d6fd195ab
don't traceback when we get disconnected wile we parse stream features. Fixes #5574
2010-03-09 20:28:25 +01:00
Yann Leboulanger
ef05eb75d9
don't remove keepalive and xmpp ping timeouts when we get an expected stanza.
2010-02-25 22:56:38 +01:00
Alexander Cherniuk
407c9a2975
Tiny fixups for the SCRAM-SHA-1
2010-02-25 13:10:35 +02:00
Alexander Cherniuk
74572af64e
Code improvments for the SCRAM-SHA-1 implementation
2010-02-25 13:02:28 +02:00
Yann Leboulanger
8e35e76d78
fix get_password argument list. Fixes #5624
2010-02-25 11:59:12 +01:00
Yann Leboulanger
50c4a2fa42
[Dave Cridland] basic SCRAM-SHA-1 implementation (no channel binding). Fixes #5622
2010-02-25 10:42:58 +01:00
Yann Leboulanger
7b0c54a606
fix connection to openfire server using TLS. Fixes #5530
2010-02-24 21:32:35 +01:00
Yann Leboulanger
b21d538b0f
fix insecure_connection text to not talk about password, and add new warning to inform user when he is about to send plain password on plain connection. Fixes #5607
2010-02-17 13:35:18 +01:00
Yann Leboulanger
9d9ef1da89
move some error/warning to info so it's not printed in stderr by default. Fixes #5609
2010-02-16 09:44:23 +01:00
Yann Leboulanger
c6b496e1de
process network events faster under windows so Gajim reacts faster.
2010-02-14 21:07:19 +01:00
Yann Leboulanger
23f73004db
[Mattj] Fix connection to facebook server that don't understand ver="" in roster query. Fixes #5600
2010-02-11 18:57:39 +01:00
Éric Araujo
357d7db07d
fixed some whitespace thanks to 2to3 -f ws_comma
2010-02-10 19:24:11 +01:00
Éric Araujo
0408b35cfb
convert tabs to spaces in source code thanks to reindent.py
...
also use 2to3 -f ws_comma to fix some whitespace
2010-02-10 17:59:17 +01:00
Éric Araujo
fedd7dc8e2
convert tabs to spaces in source code thanks to reindent.py
...
holy diff batman!
2010-02-08 15:08:40 +01:00
Yann Leboulanger
7548a44c09
ability to add arguments to features_nb.register callback
2010-01-13 11:09:33 +01:00
mariolenz
05a86e8357
harmonize indentation. Fixes #5518
2009-12-28 23:04:23 +01:00
Yann Leboulanger
5ec5886c57
prevent having twice the same group for a contact. Fixes #5504
2009-12-15 19:04:35 +01:00
Yann Leboulanger
4b07509d5e
[Dave Cridland] try to encode username, realm and password in iso-8859-1 when doing DIGEST-MD5 before computing the hash. Fixes #5512
2009-12-14 17:47:14 +01:00
Yann Leboulanger
9072ff18c1
[Dave Cridland] implement EXTERNAL auth method. See #5512
2009-12-14 17:39:32 +01:00
Yann Leboulanger
07be0727de
[Florob] show in roster and message window geolocalisation of a contact. Fixes #5485
2009-12-07 18:32:42 +01:00
Stephan Erb
723c09d26d
Remove logging within each idlequeue process step. (A log entry every two seconds without much value)
2009-11-27 21:03:38 +01:00
Alexander Cherniuk
4d904560a7
Last portion of doc-string and formatting refactoring
2009-11-26 18:12:52 +02:00
Alexander Cherniuk
f084a1f78b
One more portion of doc-string and formatting refactoring
2009-11-26 17:46:48 +02:00
Alexander Cherniuk
6d0f28c47d
More doc-string (and not only) refactoring
2009-11-26 16:32:56 +02:00
Yann Leboulanger
a59011138b
merge diff from default
2009-11-25 21:15:36 +01:00
Yann Leboulanger
7eb24c3c53
fix traceback when using a non-BOSH proxy. Fixes #5449
2009-11-25 12:25:28 +01:00
Yann Leboulanger
86b39a72c6
fix http message parsing, it may contain \n\n!
2009-11-18 11:12:06 +01:00
Yann Leboulanger
88f3104c4e
refactor normal and zeroconf Connection objects with a CommonConnection class
2009-11-18 11:06:09 +01:00
Yann Leboulanger
960e402cf0
typo in a comment
2009-11-18 11:04:05 +01:00
Stephan Erb
30580702d5
Create a ConnectionPEP class and directly register its callback to handle pep events.
2009-11-14 19:56:15 +01:00
Stephan Erb
ac5d0f24da
Fix error in the documentation of our xmpp dispatcher fork.
...
Raise NodeProcessed if the stanza should NOT be handled by other user handlers.
2009-11-14 19:54:33 +01:00
Yann Leboulanger
e4128f5c29
merge from default
2009-11-13 19:45:11 +01:00
Yann Leboulanger
11f01f1c1c
fix traceback when disconnecting from BOSH.
2009-11-06 17:58:39 +01:00
Yann Leboulanger
697d2a7324
fix BOSH connection with ejabberd. Fixes #5401
2009-11-06 17:58:14 +01:00
Yann Leboulanger
2061dd2118
fix receiving long messages in several parts with BOSH. see #5401
2009-11-12 22:13:11 +01:00
Stephan Erb
ee5eb8b546
Try to handle incomplete HTTP. See #5401 . Please test.
...
Approach: Keep filling the receive buffer until we have found enough data to extract the first HTTP header and body
2009-11-12 21:23:10 +01:00
Yann Leboulanger
1a76b72b58
fix bosh url parsing (wrong regex replaced by urlparse.urlsplit() funxtion)
2009-11-05 08:50:21 +01:00
Yann Leboulanger
b2a4c92e7a
better error handling
2009-11-04 22:06:45 +01:00
Yann Leboulanger
2aef55ad2a
better URI splitting code. see #5400 , #5401
2009-11-04 21:56:33 +01:00
Yann Leboulanger
4343d706a0
use default port for bosh proxy when none is provided. Fixes #5400 , #5401
2009-11-04 21:17:57 +01:00
Thibaut GIRKA
ab6510db38
merge default branch to jingle
2009-10-16 17:19:33 +02:00
Stephan Erb
5cea6334ef
Move and rename xmpp_stringprep.py
...
It is more consistent to have this code closer to the xmpp protocol handling.
2009-10-08 18:24:21 +02:00
Thibaut GIRKA
01d7be2d61
merge default branch to jingle
2009-09-29 20:49:40 +02:00
Yann Leboulanger
4cfd56a69b
add a workarround for backward compatibility about esession. see #4396
2009-10-01 22:17:19 +02:00
Yann Leboulanger
678e3807e9
[Mattj & Florob] fix canonicalize function to prevent having twice xmlns in the attributes. Fixes #4396
2009-10-01 19:13:52 +02:00
Benjamin Richter
7378efcb21
Improve group renaming efficiency. Fixes #4212
2009-09-26 20:23:59 +02:00
Thibaut GIRKA
163b01e113
New class for video sessions, added an end_session method, and minor changes
2009-09-16 22:35:11 +02:00
Thibaut GIRKA
32ad59aa42
jingle: move from the old farsight to farsight2,
...
better compliance to the last version of XEP 0166, 0167 and 0176
2009-09-13 11:02:49 +02:00
Yann Leboulanger
1f7b19180d
merge default branch to jingle
2009-09-08 12:01:09 +02:00
Anaël Verrier
18c8805fb4
* added ' http://jabber.org/protocol/rsm ' namespace into xmpp/protocol.py
...
* added comments for NS_ARCHIVE*
2009-08-05 18:05:23 +02:00
Yann Leboulanger
5b62a6fbbd
add publish-options to bookmark storage if server supports it
2009-07-31 15:50:11 +02:00
Yann Leboulanger
19e302b918
bosh port must now be included in bosh URI
2009-07-17 11:20:28 +02:00
Yann Leboulanger
5649552298
import things differently in xmpp so it works with python26. Fixes #5168
2009-07-16 17:44:45 +02:00
Anaël Verrier
0497a1bedf
* do not stock anymore groupchat presence into NonBlockingRoster. Fixes #5160
2009-07-14 18:48:24 +02:00
Yann Leboulanger
b8e80c2245
fix error with bosh
2009-07-13 22:23:14 +02:00
Yann Leboulanger
4a469d2ae6
add another way to get errno from exception
2009-07-13 22:14:24 +02:00
Yann Leboulanger
53c31a53b6
session packet are not mendatory during login. Send it only when requested by server. Fixes #5088
2009-07-13 18:32:16 +02:00
Yann Leboulanger
c4a720aa89
handle ZeroReturnError raised by PyOpenSSL
2009-07-13 17:47:20 +02:00
Yann Leboulanger
2bd1e1410d
get errornum correctly in SSLWrapperError exceptions
2009-07-13 17:44:47 +02:00
Anaël Verrier
dde1b34109
* added some NS_* in xmpp/protocol.py (for XEP-0136)
2009-07-13 01:03:43 +02:00
Yann Leboulanger
278a8bc59e
merge elghinn's branch (roster versioning) to trunk. Fixes #4661 , #3190
2009-07-10 15:05:01 +02:00
Anaël Verrier
4d10bdcf6f
* In order to allow the viewing of the roster when we are offline (and some other cool stuffs), with and without roster versioning, now we load roster when RosterWindow is created (at gajim startup). Fixes #3190
2009-06-30 11:46:27 +02:00
Anaël Verrier
d347b79c38
* added a method to load roster from DB
...
* now we load roster from DB when we receive an iq result for the roster without any query
* added a "force" argument to NonBlockingRoster.getRoster(), to force the return of the instance
2009-06-27 17:56:04 +02:00
Jonathan Schleifer
086d031374
Remove spaces at EOL.
2009-06-15 21:00:14 +02:00
Anaël Verrier
9133960fbc
* added one table in logs.db to save roster
...
* added "roster_version" in configuration to save roster version for the account
* added "ver" attribute when gajim requests the roster
2009-06-02 22:48:32 +02:00
Yann Leboulanger
a7f0022bb4
Add a second timeout to differenciate keepalive and ping alive packets. We now wait 55s before sending a keepalive (whitespace packet) and 2 minutes before sendind a xmpp ping (and then we wait for 1min the answer before reconnecting) Fixes #4643
2009-05-01 09:18:21 +00:00
Yann Leboulanger
e4029dddd6
prevent traceback when identifying stream error. Fixes #4946
2009-04-30 08:32:32 +00:00
Yann Leboulanger
d37d1e973f
remove latest \n in bosh received messages (one is added when we send)
2009-04-07 17:12:35 +00:00
Yann Leboulanger
a6f62ac7c6
ignore port in bosh URL, it's entered separetly. Take into account proxy username when using bosh
2009-04-06 14:05:07 +00:00
Yann Leboulanger
5e44243758
fix traceback with kerberos GSSError handling.
2009-03-20 20:02:05 +00:00
Yann Leboulanger
9d307570df
missing )
2009-03-18 11:03:16 +00:00
Yann Leboulanger
346dbc04b2
handle GSSError exceptions. Fixes #4913
2009-03-18 09:14:10 +00:00
Yann Leboulanger
9900698dc5
typo. Fixes #4912
2009-03-18 07:10:18 +00:00
Yann Leboulanger
cfd0b4835a
prevent traceback when password is not entered. Fixes #4912
2009-03-17 19:35:52 +00:00
Yann Leboulanger
9b5c8db2ce
prevent Traceback when server replies badly to resource binding request. Fixes #4880
2009-03-16 09:54:57 +00:00
Yann Leboulanger
16fa30a1e7
handle stream error and show message to user. Fixes #4660 , #4823
2009-02-19 13:18:23 +00:00
Yann Leboulanger
a2b534c040
really fix dispatcher to support several waiting stanza at the same time. Fix #4299
2009-02-15 14:13:21 +00:00
Yann Leboulanger
f443673bfd
allow to wait for more than one answer at the same time with SendAndCallForResponse. Fixes #4299
2009-02-15 13:17:33 +00:00
Yann Leboulanger
531ab92651
don't log as error, but as info, connection lost. Fixes #4800
2009-02-13 22:37:51 +00:00
Yann Leboulanger
cba0ae51cf
fix traceback when connecting with PLAIN. Fixes #4815
2009-02-13 22:20:13 +00:00
Yann Leboulanger
849108b11f
request connection password only when neede. No need to request it for GSSAPI or ANONYMOUS login. see #2465
2009-02-13 20:24:23 +00:00
Yann Leboulanger
baa208d0b6
remove duplicate code. Fixes #4790
2009-02-08 10:21:50 +00:00
Yann Leboulanger
e0123f0c24
encrypt and decrypt GPG messages in a thread, and call a callback when it's finished (sending a message is now asyncronous). Fixes #4445
2009-02-06 19:01:36 +00:00
Yann Leboulanger
8b61a2050f
don't fail when there is an unreadable certificate file.
2009-01-24 12:45:57 +00:00
Yann Leboulanger
26ed4433b4
prevent in GUI when login / password is wrong, even if there is an unknown mechnism. see #4672
2009-01-23 17:27:21 +00:00
Yann Leboulanger
ea881946f4
don't fail when we fail to open a certificate file. Fixes #4722
2009-01-23 09:24:17 +00:00
Yann Leboulanger
674924889f
some server require SSLv2. Fixes #4672
2009-01-22 20:39:31 +00:00
Yann Leboulanger
cd9c041585
don't fail when stream version < 1.0. Fixes #4600
2009-01-20 09:07:41 +00:00
Yann Leboulanger
48d4199237
[dwd] re-enable TLS. Fixes #4674
2009-01-17 12:43:13 +00:00
Yann Leboulanger
77b5c85f18
load certificates from /etc/ssl/certs too. Fixes #4633
2009-01-15 17:54:28 +00:00
Yann Leboulanger
9b2382cd0e
[dwd] better way to encode using base64. Fixes #4568
2009-01-14 08:51:07 +00:00
Stephan Erb
541167aa3e
Move IdleCommand from resolver.py to idlequeue.py
2009-01-11 17:54:41 +00:00
Stephan Erb
0f61260578
Use logic which idlequeue shall be used to idlequeue module.
2009-01-11 17:11:17 +00:00
Stephan Erb
f8e6635edf
Remove some (now) useless returns that where added because of a broken commit of mine...
2009-01-11 17:10:41 +00:00
tomk
2b0ef67c55
fixes #4657 - traceback on terminating stanza after BOSH init request
2009-01-11 15:12:28 +00:00
Stephan Erb
8a19e11bee
Add some FIXME statements due to open questions. Improve a two default parameters.
2009-01-11 13:42:39 +00:00
js
6ede969f5f
Fix missing returns, so we don't run into that assert.
2009-01-10 22:46:26 +00:00
Stephan Erb
c8dc8cd758
Fix a potential traceback in onreceive() of NonBlockingTransport. A few more codingstandards
2009-01-10 16:44:11 +00:00
Stephan Erb
bc3445881f
Rename client.py to plugin.py, as all client logic has already been moved to client_nb.py
...
Introduce a get_instance factory method for all plugins and other xmpp related classes. This will help us to decouple plugs in order to make them testable.
2009-01-09 00:49:58 +00:00
Stephan Erb
e00f871b26
Use hashlib module in favor of sha and md5.
2009-01-08 16:51:26 +00:00
Stephan Erb
cca10e6d29
A few more coding standards and readability improvements in client_nb.py.
2009-01-08 16:30:27 +00:00
Stephan Erb
10449444dd
Switch to SSL version 3 as the channel encryption protocol. As of http://docs.python.org/dev/library/ssl.html this is the maximally compatible SSL variant.
2009-01-08 16:14:26 +00:00
Stephan Erb
ed3de38ce5
Revert r10931. Fixes #4632 . See #2634
2009-01-03 16:34:58 +00:00
Stephan Erb
28112d6681
Fix indentation error.
2008-12-31 14:04:42 +00:00
Stephan Erb
8a76efb703
Proposed Fix. Make sure we read all data from our SSL socket wrappers and don't just rely on gobject.io_add_watch, select or poll.
...
This isn't really a clean solution, but the less intrusives fix that I can think of. Fixes #2634 .
2008-12-31 14:01:53 +00:00
Stephan Erb
b2a5b1046c
Remove print.
2008-12-28 14:55:23 +00:00
Stephan Erb
d8a2d8f447
Backport a few XMPPPY upstream changes.
...
* Use namespace instead of attrs={} for addChild
* Unplug SASL module on auth failure (we currently disconnect so don't really need it)
2008-12-28 14:53:20 +00:00
Stephan Erb
f83eb5ae95
Remove two more "from protocol import *".
2008-12-28 01:52:21 +00:00
Brendan Taylor
e98a648908
added licence notice to common/xmpp/c14n.py
2008-12-28 01:39:39 +00:00
Stephan Erb
7c0b1e4ed0
Module documentation for c14n.py.
2008-12-28 01:32:34 +00:00
Stephan Erb
8b3833b443
Coding standards and documentation improvements in features_nb.py. Remove unused methods.
2008-12-28 01:29:33 +00:00
Stephan Erb
d7091c74a4
Remove method that was implemented for old, blocking dispatcher but is now unused.
2008-12-28 00:01:48 +00:00
Stephan Erb
aa9a85767f
Move module documentation ontop, so that it will show up in epydoc correctly.
2008-12-27 12:36:28 +00:00
Stephan Erb
233848aec0
Random bits in xmpp. Cosmetic only.
2008-12-27 11:45:58 +00:00
Stephan Erb
b7400724b7
Coding standards and documentation improvements in dispatcher_nb.py. Many open questions remain at my side. Please check FIXMEs.
2008-12-27 11:39:52 +00:00
Stephan Erb
de73b76771
Coding standards and documentation improvements in auth_nb.py
2008-12-26 15:39:18 +00:00
Stephan Erb
7427399a2a
More coding standards and documentation improvements in client_nb.py
2008-12-26 15:25:57 +00:00
Stephan Erb
afbac3d3e6
Coding standards and documentation improvements in idlequeue.py.
...
Fix a potential bug of missing an alarm_callback. Separate public from internal API.
2008-12-26 13:24:37 +00:00
Stephan Erb
40d802284e
Coding standards and documentation improvements in client_nb.py
2008-12-24 14:41:26 +00:00
Stephan Erb
5139e7c8d0
Add credits and remove outdated documentation from __init__.py
2008-12-24 14:28:17 +00:00
Stephan Erb
6999e1bbb6
Make three docstrings epydoc enabled. See http://epydoc.sourceforge.net/manual-docstring.html
2008-12-24 13:56:02 +00:00
Stephan Erb
59b0216898
Remove Jacob Lundqvist's xmpp/debug.py module. We have switched to builtin python logging.
2008-12-24 13:51:15 +00:00
Stephan Erb
a8cfd83c3e
Move GObjectIdleQueue from gajim.py to idlequeue.py
2008-12-24 13:44:23 +00:00
Stephan Erb
6b5e9ea7ce
Documentation improvements in client.py
2008-12-24 13:25:57 +00:00
Stephan Erb
9ec00eda74
Document consturctor in proxy_connector.py
2008-12-24 11:41:09 +00:00
Stephan Erb
1e00674505
Coding standards and documentation improvements in tls_nb.py
2008-12-24 11:10:58 +00:00
Stephan Erb
5c02a907b4
Coding standards and documentation improvements in transports_nb.py
2008-12-24 11:10:38 +00:00
Yann Leboulanger
45f9366d58
do'nt try starttls if stream version < 1.0. Fixes #4600
2008-12-22 09:59:35 +00:00
Yann Leboulanger
08bb703640
fix GSSAPI authentication
2008-12-18 18:16:04 +00:00
Yann Leboulanger
b317ffcdae
merge BOSH branch to trunk
2008-12-15 21:06:08 +00:00
Yann Leboulanger
24bb239fdb
prevent traceback when server doen't include a query in jabber:iq:roster reply. Fixes #4579
2008-12-15 15:32:59 +00:00
Yann Leboulanger
e389e0b16b
[thorstenp] remove whitespace at eol
2008-12-03 21:56:12 +00:00
Yann Leboulanger
c271d1f15a
fix bad indentation
2008-12-03 21:37:54 +00:00
Yann Leboulanger
3392c54dd0
[thorstenp] fix empty exception clauses
2008-12-03 21:37:05 +00:00
Yann Leboulanger
f0dce41ab6
fix string exceptions
2008-12-03 21:35:07 +00:00
Yann Leboulanger
5eb402ba4b
[thorsten] pfix exceptions not inheriting from exception
2008-12-03 21:26:34 +00:00
Yann Leboulanger
60ba33eb31
[thorstenp] fix possible undefined loop variables
2008-12-03 17:38:16 +00:00
Yann Leboulanger
31dc32eeb9
[thorstenp] fix redefined builtins
2008-12-03 17:16:04 +00:00
Yann Leboulanger
c163e90b10
[thorstenp] fix unused variables
2008-12-02 15:53:23 +00:00
Yann Leboulanger
7701f29beb
[thorstenp] fix undefined variables
2008-12-02 15:10:31 +00:00
Yann Leboulanger
e2118de64c
[thorstenp] remove useless import
2008-12-02 14:44:26 +00:00
Yann Leboulanger
983301d589
[thorstenp] convert some strings to comment
2008-12-02 14:09:18 +00:00
Yann Leboulanger
11deb3b933
[thorstenp] remove useless pass
2008-12-02 14:03:32 +00:00
Yann Leboulanger
20ff72c523
[thorstenp] fix statements
2008-12-02 14:02:45 +00:00
Yann Leboulanger
3e88fdf41e
check session support instead of Esession support, and announce we support it. Fixes #4429
2008-11-30 18:53:02 +00:00
Yann Leboulanger
91cc491173
[Simo Sorce] fix GSSAPI to use FQDN. See #2465
2008-11-28 07:27:42 +00:00
Yann Leboulanger
4cf9d0d622
if a SASL mechanism fails, try the others before abording authentification
2008-11-26 12:45:05 +00:00
Yann Leboulanger
c69b4e90b6
detect and handle incorrect stream start. Fixes #4499
2008-11-21 10:02:16 +00:00
Yann Leboulanger
2521ea6080
[thorstenp] enable buffering of expat. see #4457
2008-11-05 20:03:27 +00:00