Commit graph libervia-backend/src/plugins
Author SHA1 Message Date
souliane
04bb8beaae plugin misc_account: add method asyncConnectWithXMPPCredentials 2015-11-23 18:50:02 +01:00
Goffi
9b3f0514a6 plugin XEP-0277: fixed entries in atom feed 2015-11-23 15:51:19 +01:00
Goffi
3c2446e078 plugin XEP-0277: fixed unsecure blog feed 2015-11-23 14:58:18 +01:00
Goffi
66739d9dfc core (param), plugin file: set security_limit for acount changes, backend (dis)connection, and put a higher one for file send 2015-11-23 13:19:42 +01:00
Goffi
f1864a7dfa plugin file: deferred XMLUI now use security limit 2015-11-22 21:25:09 +01:00
Goffi
6ee923f9ef plugin XEP-0363, upload: File upload (through HTTP upload only for now):
- HTTP upload implementation
    - if the upload link is HTTPS, certificate is checked (can be disabled on demand)
    - file can be uploaded directly, or a put/get slot can be requested without actual upload.
        The later is mainly useful for distant frontends like Libervia
    - upload plugin manage different upload methods, in a similar way as file plugin
    - download url is sent in progressFinished metadata on successful upload
2015-11-22 17:33:30 +01:00
Goffi
d9be6f85c7 plugin file[SatFile]: auto_end_signals flag can be False if the progressFinished and progressError signals are managed by caller. 2015-11-22 17:27:27 +01:00
Goffi
2494387bf5 plugin file: added "Action/send" file menu 2015-11-20 01:57:18 +01:00
Goffi
6e9b6aeb58 plugin XEP-0260, XEP-0261: fallback from S5B to IBB is implemented 2015-11-19 18:15:35 +01:00
Goffi
a0a7ca9fd7 plugin XEP-0166: transport replacement:
- actions transport-replace, transport-accept and transport-reject are now handled
    - transportReplace can be used from an other plugin
    - new A_DESTROY action, used to clean a transport before its replacement
2015-11-19 18:15:35 +01:00
Goffi
b41188822d plugin XEP-0065: renamed _killSession to killSession as it make sense to kill a session from an other plugin 2015-11-19 18:15:35 +01:00
Goffi
9dcb6d266a plugin 0047: increased timeout to 120s 2015-11-19 18:15:27 +01:00
Goffi
55c75bc304 core, plugins file, XEP-0234, bridge: progression api enhancement:
- progressStarted have a new metadata parameter, useful to know the kind of progression, direction, etc. Check bridge doc
    - progressGetAllMetadata can be used to retrieve this data and discover on currently running progressions
    - progressFinished also have a new metadata parameter, used to e.g. indicate that hash is checked
    - core: fixed progressGetAll
    - file, XEP-0234: implemented the API modifications,  hash is returned on progressFinished
    - file: SatFile.checkSize allows to check size independently of close (be sure that all the data have been transfered though)
2015-11-19 18:13:26 +01:00
Goffi
51aecd012a plugin XEP-0234: hash checksum proper handling 2015-11-17 20:13:27 +01:00
Goffi
ed8d3db308 plugin file: 'data_cb' key can be used in file_data to specified a callback used on each read/write 2015-11-17 19:51:52 +01:00
Goffi
8d9418b6ad plugin XEP-0300: implemented hashing:
- parseHashElt do what it says
    - calculateHashElt can calculate a whole hash in a non-blocking way
    - or getHasher can be used for progressive hashing
    - getBestPeerAlgo return the best available hashing algorithm of an entity
2015-11-17 19:48:19 +01:00
Goffi
c3301733fb plugin XEP-0166: added delayedContentTerminate to terminate a content inside a handler 2015-11-17 19:41:30 +01:00
Goffi
a66843a884 plugin XEP-0166: session-info action handling 2015-11-17 19:40:37 +01:00
Goffi
ee65aa7f3c jingle XEP-0166: fixed session creation on non session-initiate actions 2015-11-17 19:39:08 +01:00
Goffi
2f561bec34 plugin XEP-0166: sendError now manage jingle conditions 2015-11-17 19:37:09 +01:00
Goffi
7f8dc5849f plugin file: progressFinished and progressError are now sent on SatFile.close. eof Deferred attribute is removed, as it is not used and bring unnecessary complication 2015-11-16 00:24:49 +01:00
Goffi
b419399ba2 plugin file: 'size' key is not added anymore in progress'data if size is 0 or not specified in SatFile 2015-11-15 23:11:38 +01:00
Goffi
de85e24577 core (xmlui), plugin file: added action_extra param to deferXMLUI/deferDialog which is merged to the action data dict when actionNew is called 2015-11-15 23:11:27 +01:00
Goffi
fbbb081425 backend, bridge, frontends: actionNew has now a security_limit argument + added some docstring to explain data argument 2015-11-14 19:21:56 +01:00
Goffi
2c8b91ee6c core, plugin file: fixed progress id + data is now returned by getProgress, instead of being an argument to fill 2015-11-14 19:20:33 +01:00
Goffi
aaa3c32378 plugins XEP-0096, XEP-0260, file: sendFile method is managed by file plugin, which choose the best available method + progress_id fix 2015-11-14 19:18:05 +01:00
Goffi
f61c88f784 plugin XEP-0065: session cleaning and timeout + log choosed candidate when using SI File Transfer 2015-11-13 16:46:32 +01:00
Goffi
ab910bebfe plugins XEP-0047, XEP-0065, XEP-0096: fixed use of failure.condition insteand of failure.value + removed gettext use for local logs 2015-11-13 16:46:31 +01:00
Goffi
455a7e00f7 plugin XEP-0065: chunk size optimization: 64Kio is used except for proxy were it is set to 4Kio, to avoid wild disconnection by Prosody's proxy 2015-11-11 22:28:48 +01:00
Goffi
a0b81bda7c plugin XEP-0047: some cleaning 2015-11-11 18:21:20 +01:00
Goffi
dc0dbb149c plugins XEP-0020, XEP-0065, XEP-0095, XEP-0096: fixed file copy with Stream Initiation:
/!\ range is not working yet
    /!\ pipe plugin is broken for now
2015-11-11 18:19:49 +01:00
Goffi
9911d60449 plugins IP: getLocalIPs now return localhost IP instead of an empty list if no non-localhost ip can be found 2015-11-11 18:19:49 +01:00
Goffi
674001781f plugins XEP-0234, file: moved human file size conversion to file plugi 2015-11-11 18:19:49 +01:00
Goffi
a022a36b5b plugins XEP-0234, file: moved file request dialog to file plugin 2015-11-11 18:19:47 +01:00
Goffi
af953d89a9 plugins XEP-0234, XEP-0260, XEP-0261: jingle session termination is managed by application (XEP-0234) instead of transport 2015-11-08 14:48:04 +01:00
Goffi
728e15c90c plugins XEP-0260, XEP-0065: proxy handling:
- XEP-0065: Candidate.activate launch proxy activation
    - XEP-0065: a candidate is individually connected with connectCandidate
    - transport-info action handling can now manage candidate and proxy infos
2015-11-08 14:44:33 +01:00
Goffi
a629197419 plugin XEP-0065: fixed CHUNK_SIZE to 4096 to avoid wild disconnection by some proxies (Prosody's proxy65 disconnect if it receive bigger chunks) 2015-11-08 14:44:33 +01:00
Goffi
5e356f28f0 plugins XEP-0234, file: use of SatFile for writing too 2015-11-08 14:44:33 +01:00
Goffi
31c9e0d06e plugins XE0166, XEP-0234, XEP-0260, XEP-0261: renamed session key managing other peer's jid to "peer_jid" instead of "to_jid" 2015-11-08 14:44:33 +01:00
Goffi
1a5f1bd144 plugin ip: implemented XEP-0279 for external ip retrieval + fixed bad exception handling 2015-11-08 14:44:30 +01:00
Goffi
83eef838a6 plugin XEP-0085: renamed "__xxx" methods to "_xxx" 2015-11-06 17:09:45 +01:00
Goffi
04929c74d4 plugin XEP-0085: fixed chatstate blinking following 0632d96f08ad change 2015-11-03 10:23:08 +01:00
Goffi
76a0afedf1 plugin NAT Port: added instruction with pip when miniupnpc is missing 2015-11-02 22:09:13 +01:00
Goffi
5e208acc58 plugin XEP-0260: first draft 2015-11-02 22:02:41 +01:00
Goffi
c3ff0a1513 plugin XEP-0065, XEP-0096: preparation for plugin XEP-0260 implementation:
/!\ SI File Transfert (plugin XEP-0096) is temporarily broken
    /!\ proxy handling is temporarily broken
    plugin XEP-0096: use of Deferred for plugin XEP-0065 in the same way as for plugin XEP-0047
    plugin XEP-0065:
        - use of Deferred for sessions
        - plugin IP is a dependency
        - plugin NAT-PORT is used if available
        - everything is now automatic, params are disabled for now (may be re-used in the future to force port or proxy)
        - proxy infos are managed with a namedtuple
        - connexion candidates are managed with a dedicate class
        - priorities can be used for candidates, as needed for XEP-0260
        - transfer can now be managed in both direction, with client or server
        - socks5 server is launcher on demand, once for all profiles
        - helper methods to try and find best candidate
        - connection test and file transfer are done in 2 times
2015-11-02 22:02:41 +01:00
Goffi
ed7e784ffe plugin XEP-0047: minor improvements 2015-11-02 22:02:41 +01:00
Goffi
a24031596a plugin XEP-0234: "senders" handling 2015-11-02 22:02:41 +01:00
Goffi
170d697016 plugin XEP-0166, XEP-0234, XEP-0261:
- transport and application data are now managed in separate dictionaries
    - new client.IQ method is used
    - new buildAction helper method for applications and transports
    - "role" is now stored in session_data
    - "senders" is now stored in content_data
    - plugin XEP-0166: "transport-info" action is now managed
    - plugin XEP-0166: application namespace and handler are now managed in a namedtuple
    - plugin XEP-0234: <range/> element is added by responder if not already present
2015-11-02 22:02:41 +01:00
Goffi
7ca36bc79d plugin ip: local ip cache + DNS error detection 2015-11-02 22:02:41 +01:00
Goffi
649ec27b3e plugin NAT port: added UPnP IGD mapping + automatic unmapping on backend shut down 2015-11-02 22:02:41 +01:00