Commit graph

49 commits

Author SHA1 Message Date
Marvin W 4a3cef89fd
Don't allow newlines in URLs, also clean up on http file transfer detection 2019-12-26 15:46:58 +01:00
Wiktor Kwapisiewicz 687ec1a159 Add support for HTTP Upload headers
Some services use Authorization header [0] to pass upload credential
data. This avoids the token being exposed in server logs and is allowed
by XEP-0363 since version 0.5.0.

This change adds support for headers allowed in XEP-0363: Authorization,
Expires and Cookie.

[0]: https://xmpp.org/extensions/xep-0363.html#request
2019-11-19 21:24:28 +01:00
Wiktor Kwapisiewicz 0acbe4855d Fix reporting failed HTTP upload
Status code can't be less than 200 and greater than or equal 300 at the same
time. Using || instead of && marks all uploads that do not have 2xx status code
as "failed".
2019-11-04 15:15:28 +01:00
Marvin W e899668213
Add JET support 2019-09-16 23:31:11 +02:00
fiaxh 0521afa3d8 Fix specified size for encrypted file uploads 2019-08-21 22:37:52 +02:00
fiaxh f0abb8aaf9 Refactor file receive/send interfaces and UI 2019-07-18 02:03:42 +02:00
hrxi c245f7e34a Fix a couple of typos and double imports 2019-06-01 17:13:33 +02:00
fiaxh 03f25e1f87 Remove Message.stanza field 2019-05-26 20:20:09 +02:00
fiaxh 6f6e4b97cb Use glib log functions 2019-03-15 22:01:34 +01:00
fiaxh 952ac95484 Use regex literals, fixes some compiler warnings 2019-03-14 17:39:31 +01:00
fiaxh 736522737f Make file read/write async 2019-02-14 00:04:01 +01:00
fiaxh 446e86d4ad Check FileTransfer's mime_type for null (unknown) when handeling it
fixes #479
2018-12-31 16:49:22 +01:00
fiaxh 680d28360c Check content_length for null before parsing in http HEAD message response
fixes #468
2018-11-29 16:30:20 +01:00
fiaxh 7c1d580e17 Fix aesgcm http file up/download bugs 2018-11-27 18:28:28 +01:00
fiaxh 141db9e40a Implement aesgcm encrypted file upload 2018-11-27 15:02:18 +01:00
fiaxh 01360a73ae FileProvider for aesgcm links
Co-authored-by: Thibaut Girka <thib@sitedethib.com>
2018-11-27 03:41:31 +01:00
fiaxh 2208ff9799 Restructure (http) file provider flow: Separate download&get_info, download in provider, move XmppStreamModule into xmpp-vala 2018-11-27 03:38:42 +01:00
fiaxh 0e41fb3294 Add hidden column to content_item table 2018-08-31 16:26:23 +02:00
bobufa 1d9ce7f471 sort file transfers into correct conversation 2018-08-13 22:39:18 +02:00
bobufa 4901b09670 add search filter expressions 2018-08-13 22:39:18 +02:00
bobufa 2e2a9a2390 accumulate conversation content in meta db table 2018-08-13 22:39:07 +02:00
bobufa 3ea00446fb refactor conversation item management (accumulate them in libdino) 2018-08-13 22:04:47 +02:00
fiaxh ef40b61734 Small fixes 2018-01-30 17:29:54 +01:00
fiaxh 8c46c423c0 http-files: Report correct file size for encrypted files (slot request) 2018-01-28 23:26:37 +01:00
fiaxh f6db249c92 Only display transferred images, display file names, open in system viewer, include and use pgp embedded file names 2018-01-28 22:00:22 +01:00
fiaxh 57c72d2818 Pipeline for incoming messages in libdino 2018-01-28 13:37:53 +01:00
Marvin W 782ae4c049 Move Jid class to xmpp-vala, partially refactor namespace 2018-01-28 00:38:47 +01:00
fiaxh c7c1fb5124 Restore window state (size, maximized, position) 2017-12-31 22:48:14 +01:00
fiaxh f25fadde2d Fallback display for all file types 2017-12-13 21:11:33 +01:00
fiaxh 1e011852e0 http-files: async file download 2017-11-27 22:17:36 +01:00
fiaxh de133218da Disconnect stanza listeners from pipeline 2017-11-22 00:40:41 +01:00
fiaxh 0102abeec1 Fix warnings 2017-10-31 15:41:45 +01:00
fiaxh b9df78e449 Move DatabaseError handling into Qlite 2017-10-31 15:41:45 +01:00
fiaxh 749edd21b9 Add oob tag to http-upload messages
fixes #166
2017-10-22 18:26:31 +02:00
fiaxh 9ea16b6d85 PGP encrypted file transfers 2017-10-22 18:26:31 +02:00
fiaxh 8b43df8ec3 Handle file uploading in libdino & main, have http upload as provider 2017-10-21 23:31:05 +02:00
fiaxh 9d8e1e88ec http-files: max-file-size handling 2017-09-26 17:01:06 +02:00
fiaxh 312372350e http files: Accept url put/get urls in both attributes and string content 2017-09-05 19:13:30 +02:00
fiaxh a257b16337 Download & inline display images 2017-08-31 18:54:38 +02:00
Marvin W b428c3a627
support platforms without UTF-8 and use native file picker 2017-08-29 22:09:07 +02:00
fiaxh 8533ba6450 Handle xmpp ?join and ?message uris 2017-08-25 22:30:03 +02:00
Marvin W 5dc460fc1a
libdino: remove dependency to GTK+ (all GTK+ code is in main+plugins) 2017-08-17 19:53:34 +02:00
fiaxh b0264b3e00 xmpp-vala: Remove require-functions 2017-08-14 22:38:17 +02:00
fiaxh a59f728bdd Stream Management 2017-08-14 22:38:12 +02:00
fiaxh b29d52fdda SRV records for XMPP over TLS 2017-08-11 11:56:37 +02:00
fiaxh e3e6a426f4 http files: Fix for servers w/o file size limit 2017-08-09 00:12:15 +02:00
fiaxh 0206139f0f http files: Fix double-free rance-condition
... and move classes around
2017-08-07 21:48:43 +02:00
fiaxh 6bc950d042 Http file upload for version :0 and other server setups 2017-08-07 21:04:39 +02:00
fiaxh ea174ab632 Http file upload 2017-08-03 15:59:04 +02:00