platform/upstream/libsoup.git
11 years agosoup-session: use SoupMessageQueueItem's cancellable for the GTask
Sergio Villar Senin [Wed, 30 Jan 2013 18:25:12 +0000 (19:25 +0100)]
soup-session: use SoupMessageQueueItem's cancellable for the GTask

Even if the caller does not specify a GCancellable the GTask must use the
one that comes with the item by default.

This also sets check_cancellable() to FALSE in the session's GTask in order
not to override error messages previously set on the GTask in case of
cancellations.

https://bugzilla.gnome.org/show_bug.cgi?id=692310

11 years ago[l10n] Updated German translation
Andre Jonas [Sun, 3 Feb 2013 18:58:29 +0000 (19:58 +0100)]
[l10n] Updated German translation

11 years ago[l10n] Updated Italian translation.
Milo Casagrande [Thu, 24 Jan 2013 20:48:32 +0000 (21:48 +0100)]
[l10n] Updated Italian translation.

11 years agoRevert "SoupURI: replace NULL password with "" on http"
Dan Winship [Mon, 21 Jan 2013 15:50:16 +0000 (10:50 -0500)]
Revert "SoupURI: replace NULL password with "" on http"

This broke CalDAV in evolution. I'm not sure exactly why, but if it
broke that, it might break other things too, so let's just revert
this.

This reverts commit 38901ca5e684a8fac75e6ff740d45c82dd44181a.

https://bugzilla.gnome.org/show_bug.cgi?id=692149

11 years agoUpdated Norwegian bokmål translation
Kjartan Maraas [Mon, 21 Jan 2013 11:32:31 +0000 (12:32 +0100)]
Updated Norwegian bokmål translation

11 years agoUpdated Uyghur translation
Gheyret Kenji [Sun, 20 Jan 2013 00:27:21 +0000 (09:27 +0900)]
Updated Uyghur translation

Signed-off-by: Gheyret Kenji <gheyret@gmail.com>
11 years agosoup-body-input-stream: update priv->eof when skipping
Sergio Villar Senin [Fri, 18 Jan 2013 18:06:48 +0000 (19:06 +0100)]
soup-body-input-stream: update priv->eof when skipping

We must update the priv->eof field in the skip() operation as we do in
read(). This bug was causing redirects not to finish because the
SoupBodyInputStream was creating a pollable source that will never issue
anything instead of a plain timeout source.

https://bugzilla.gnome.org/show_bug.cgi?id=692026

11 years agoset_ssl_ca_file: don't try unreffing tlsdb if it's NULL
Guillaume Desmottes [Thu, 17 Jan 2013 09:59:13 +0000 (10:59 +0100)]
set_ssl_ca_file: don't try unreffing tlsdb if it's NULL

If g_tls_file_database_new() failed for any reason but
G_TLS_ERROR_UNAVAILABLE, we don't create a fallback DB and so tlsdb stays
NULL.

https://bugzilla.gnome.org/show_bug.cgi?id=691930

11 years agoUpdated Serbian translation
Мирослав Николић [Thu, 17 Jan 2013 08:48:28 +0000 (09:48 +0100)]
Updated Serbian translation

11 years agoUpdated Belarusian translation.
Ihar Hrachyshka [Tue, 15 Jan 2013 16:01:22 +0000 (19:01 +0300)]
Updated Belarusian translation.

11 years ago2.41.4 2.41.4 LIBSOUP_2_41_4
Dan Winship [Mon, 14 Jan 2013 22:25:14 +0000 (17:25 -0500)]
2.41.4

11 years agosoup-session: add SoupMessage-based streaming APIs
Dan Winship [Sat, 29 Dec 2012 02:53:02 +0000 (21:53 -0500)]
soup-session: add SoupMessage-based streaming APIs

SoupRequestHTTP is now implemented in terms of SoupSession SoupMessage
operations, so we might as well just expose those directly, for people
who want streaming APIs, but not SoupRequest.

11 years agosoup-message: belated #include cleanup
Dan Winship [Sat, 12 Jan 2013 14:55:26 +0000 (09:55 -0500)]
soup-message: belated #include cleanup

Remove some includes that I had commented out to see if they were
still needed, but then forgot to actually remove when it turned out
they weren't.

11 years agoSoupURI: replace NULL password with "" on http
Dan Winship [Sun, 9 Dec 2012 12:23:25 +0000 (13:23 +0100)]
SoupURI: replace NULL password with "" on http

All supported HTTP auth methods use both username and password, so
assume a password of "" if none is given

11 years agosoup-auth-digest: fix a leak on re-auth
Dan Winship [Sat, 12 Jan 2013 14:42:50 +0000 (09:42 -0500)]
soup-auth-digest: fix a leak on re-auth

Calling soup_auth_authenticate() on an already-authenticated
SoupAuthDigest would leak the old username and hashed password.

https://bugzilla.gnome.org/show_bug.cgi?id=690142

11 years agoUpdated Bulgarian translation
Alexander Shopov [Sat, 12 Jan 2013 04:56:29 +0000 (06:56 +0200)]
Updated Bulgarian translation

11 years agosoup-session: fix a deadlock when aborting a SoupSessionSync
Dan Winship [Wed, 9 Jan 2013 22:21:13 +0000 (17:21 -0500)]
soup-session: fix a deadlock when aborting a SoupSessionSync

We need to signal conn_cond when removing an item from the queue,
since flush_queue() expects that... (and also, since in some cases,
removing a message from the queue will allow another one to start).

https://bugzilla.gnome.org/show_bug.cgi?id=691399

11 years agoAdd explicit soup-version.h include into soup.h
Milan Crha [Wed, 9 Jan 2013 18:20:01 +0000 (19:20 +0100)]
Add explicit soup-version.h include into soup.h

11 years agobuild: Do not use AM_GLIB_GNU_GETTEXT
Javier [Tue, 8 Jan 2013 17:48:41 +0000 (17:48 +0000)]
build: Do not use AM_GLIB_GNU_GETTEXT

The po/Makefile.in.inis generated by intltoolize

11 years agoautogen.sh: Use autoreconf instead gnome-autogen
Javier [Tue, 8 Jan 2013 16:40:48 +0000 (16:40 +0000)]
autogen.sh: Use autoreconf instead gnome-autogen

11 years agosoup_message_get_https_status: provide info for failed attempts too
Dan Winship [Mon, 7 Jan 2013 21:30:55 +0000 (16:30 -0500)]
soup_message_get_https_status: provide info for failed attempts too

SoupMessage:tls-certificate and SoupMessage:tls-errors were only
getting set for successful https connections. It is useful to have
them be set on failed ones as well. Fix that, and make ssl-test test
it.

https://bugzilla.gnome.org/show_bug.cgi?id=690176

11 years agoRevert "SoupConnection: disconnect on failed connections/tunnels"
Dan Winship [Mon, 7 Jan 2013 20:50:36 +0000 (15:50 -0500)]
Revert "SoupConnection: disconnect on failed connections/tunnels"

Disconnecting clears priv->sock, and in some cases, the caller may
want to look at that after the failed connection. So switch this back
to having the session do the disconnecting itself (which is simpler
now due to various SoupSession rewrites), and remove one inconsistent
case where the connection was disconnecting itself before.

This reverts commit 21d707d66460233596a04f6dc99c945d2dbc3085.

11 years agoFix previous commit
Dan Winship [Sun, 6 Jan 2013 21:38:30 +0000 (16:38 -0500)]
Fix previous commit

11 years agosoup-session: fix up the SoupRequest requeuing logic
Dan Winship [Sat, 5 Jan 2013 23:25:12 +0000 (18:25 -0500)]
soup-session: fix up the SoupRequest requeuing logic

Split the "this message is likely to be requeued" logic into a single
function that the sync and async codepaths can share, and fix it to
not think that SOUP_MESSAGE_NO_REDIRECT messages will be redirected,
or that messages that disable SOUP_TYPE_AUTH_MANAGER will be
authenticated.

11 years agoRename LIBSOUP_DISABLE_DEPRECATED to SOUP_DISABLE_DEPRECATED
Dan Winship [Fri, 4 Jan 2013 15:36:21 +0000 (10:36 -0500)]
Rename LIBSOUP_DISABLE_DEPRECATED to SOUP_DISABLE_DEPRECATED

GNOME_MAINTAINER_MODE_DEFINES apparently sets
LIBSOUP_DISABLE_DEPRECATED, which is now causing various jhbuild
modules to break. "Fix" this by renaming the define (which is only
still there because gtk-doc complains if it's not). The *right* way to
get deprecation warnings/errors now is to define
SOUP_VERSION_MIN_REQUIRED.

11 years agosoup-auth-manager: make this thread-safe
Dan Winship [Tue, 1 Jan 2013 19:18:46 +0000 (14:18 -0500)]
soup-auth-manager: make this thread-safe

Very belatedly, make SoupAuthManager thread-safe.

It also ensures that any SoupAuth that it manages is only manipulated
from one thread at a time.

11 years agosoup-auth-manager: add soup_auth_manager_use_auth()
Dan Winship [Tue, 1 Jan 2013 16:46:18 +0000 (11:46 -0500)]
soup-auth-manager: add soup_auth_manager_use_auth()

Add soup_auth_manager_use_auth(), for "preloading" authentication, and
make the old automatically-request-NTLM behavior happen only for
the legacy SoupSession subclasses.

11 years agoSoupAuthManager: make this public
Dan Winship [Tue, 1 Jan 2013 16:43:28 +0000 (11:43 -0500)]
SoupAuthManager: make this public

11 years agosoup-auth-manager: split out connection handling
Dan Winship [Wed, 12 Dec 2012 09:19:00 +0000 (10:19 +0100)]
soup-auth-manager: split out connection handling

Add a new SoupConnectionAuth class to help with connection tracking,
and make SoupAuthNTLM a subclass of it. Allow a single SoupAuthNTLM to
carry state information about multiple connections.

Make SoupSession store the SoupConnection a SoupMessage is associated
with on the message, and use that from SoupConnectionAuth rather than
tracking sockets by hand like SoupAuthManager had previously done.
Remove the connection tracking in SoupAuthManager, since it is no
longer needed.

11 years agosoup-auth-ntlm: get rid of separate SSO states
Dan Winship [Sun, 30 Dec 2012 15:42:29 +0000 (10:42 -0500)]
soup-auth-ntlm: get rid of separate SSO states

Use a single boolean to track whether we're using single-sign-on
(/usr/bin/ntlm_auth) rather than having two parallel sets of
SoupNTLMStates.

11 years agontlm-test: kill some dead code
Dan Winship [Wed, 2 Jan 2013 02:30:05 +0000 (21:30 -0500)]
ntlm-test: kill some dead code

11 years agontlm-test-helper: fix
Dan Winship [Sun, 30 Dec 2012 23:12:59 +0000 (18:12 -0500)]
ntlm-test-helper: fix

We need to set SOUP_NTLM_AUTH_DEBUG to an empty string (to tell
SoupAuthNTLM to always use built-in NTLM), not leave it unset, which
will let SoupAuthNTLM use the real ntlm_auth binary.

(The effect of this bug was that instead of always using built-in
NTLM, ntlm-test-helper would first try to use ntlm_auth, and fail
because there were no cached credentials, and then fall back to
built-in NTLM, which meant that we were testing the fallback codepath
even in the supposed-to-be-non-fallback case. Unless your username was
"alice" or "bob" and you had a working winbind configuration, in which
case the tests would just fail.)

Also, fix up ntlm-test a bit, so that if ntlm-test-helper for some
reason tries to authenticate as someone other than alice or bob, it
recognizes this, rather than considering everyone who isn't alice to
be bob.

11 years agosoup-auth-domain-digest: minor documentation correction
Guenther Wutz [Mon, 31 Dec 2012 19:28:37 +0000 (20:28 +0100)]
soup-auth-domain-digest: minor documentation correction

11 years agoUpdated Friulian translation
TmTFx [Sat, 29 Dec 2012 01:58:21 +0000 (23:58 -0200)]
Updated Friulian translation

11 years agosoup-auth-ntlm: small fix
Dan Winship [Sun, 30 Dec 2012 00:33:21 +0000 (19:33 -0500)]
soup-auth-ntlm: small fix

11 years agoReorganize NTLM authentication, fix ntlm_auth support
Dan Winship [Tue, 11 Dec 2012 10:10:45 +0000 (11:10 +0100)]
Reorganize NTLM authentication, fix ntlm_auth support

Move the auth-managery parts of SoupAuthManagerNTLM down into
SoupAuthManager, and the NTLMy parts into SoupAuthNTLM (in preparation
for supporting other kinds of connection-based auth such as
Negotiate).

The reorganization also makes it possible to use SoupAuthNTLM to
implement a mock version of /usr/bin/ntlm_auth, so we can extend
ntlm-test to test both the built-in-NTLM and external-NTLM codepaths.
Doing this reveals that, AFAICT, the external codepath did not
previously actually work, because it mis-used
G_SPAWN_FILE_AND_ARGV_ZERO and so ended up passing incorrect arguments
to /usr/bin/ntlm_auth.

11 years agotests: add session-test
Dan Winship [Fri, 14 Dec 2012 20:50:59 +0000 (15:50 -0500)]
tests: add session-test

Add a test that each of the 3 SoupSession types (plain, async, sync)
behaves as expected with soup_session_queue_message(),
soup_session_send_message(), and soup_session_cancel_message().

11 years agoSoupSession: update docs (and some semantics) for plain SoupSession
Dan Winship [Fri, 14 Dec 2012 14:54:36 +0000 (09:54 -0500)]
SoupSession: update docs (and some semantics) for plain SoupSession

Update the docs to reflect the changes in plain SoupSessions vs its
traditional subclasses. And while we're there, add a few new ones
(including making soup_session_queue_message() and
soup_session_send_message() work on plain SoupSession.

11 years agoRevert the mirroring of SoupMessage API onto SoupRequestHTTP.
Dan Winship [Fri, 28 Dec 2012 15:41:20 +0000 (10:41 -0500)]
Revert the mirroring of SoupMessage API onto SoupRequestHTTP.

SoupMessage isn't being deprecated, and mirroring its API onto
SoupRequestHTTP is just going to result in always having to add every
new API twice. Also, it turns out to be less useful than originally
expected anyway, since you end up having to cast between SoupRequest
and SoupRequestHTTP frequently anyway.

This reverts commit d7117329400e47d2187ed033099d921d555f8d71 and most of
commit 53c270d0e2868fa5ad48ce864f10a9486b11a071.

11 years agoAdd back LIBSOUP_DISABLE_DEPRECATED
Dan Winship [Fri, 28 Dec 2012 15:32:11 +0000 (10:32 -0500)]
Add back LIBSOUP_DISABLE_DEPRECATED

gtk-doc expects "Deprecated:" notes in docs to be matched up with some
deprecation-guard #define. So even though we don't want people to use
it any more, add LIBSOUP_DISABLE_DEPRECATED back.

11 years agodocs: more fixes
Dan Winship [Fri, 28 Dec 2012 15:32:30 +0000 (10:32 -0500)]
docs: more fixes

11 years agodocs: Lots of minor fixes and additions
Dan Winship [Fri, 28 Dec 2012 02:13:34 +0000 (21:13 -0500)]
docs: Lots of minor fixes and additions

11 years agoUpdated Hebrew translation.
Yaron Shahrabani [Wed, 26 Dec 2012 22:50:21 +0000 (00:50 +0200)]
Updated Hebrew translation.

11 years agosoup-session: move cache handling here
Dan Winship [Wed, 26 Dec 2012 19:50:11 +0000 (14:50 -0500)]
soup-session: move cache handling here

Move the SoupCache special handling from SoupRequestHTTP to
SoupSession (as another step towards making SoupCache not such a
magical special case hack that only works in certain situations).

11 years agotests: add cache-test
Dan Winship [Tue, 25 Dec 2012 23:17:05 +0000 (18:17 -0500)]
tests: add cache-test

Add a test of basic cache functionality (finally!)

Still needs more tests...

11 years agotest-utils: remove unnecessary #includes
Dan Winship [Tue, 25 Dec 2012 17:04:46 +0000 (12:04 -0500)]
test-utils: remove unnecessary #includes

11 years agoUpdated Polish translation
Piotr Drąg [Sun, 23 Dec 2012 03:29:54 +0000 (04:29 +0100)]
Updated Polish translation

11 years agoUpdated Galician translations
Fran Diéguez [Sun, 23 Dec 2012 03:04:03 +0000 (04:04 +0100)]
Updated Galician translations

11 years agoUpdated Slovenian translation
Matej Urbančič [Sat, 22 Dec 2012 14:22:49 +0000 (15:22 +0100)]
Updated Slovenian translation

11 years agoUpdated Spanish translation
Daniel Mustieles [Thu, 20 Dec 2012 10:10:21 +0000 (11:10 +0100)]
Updated Spanish translation

11 years ago[l10n] Updated Estonian translation
Mattias Põldaru [Wed, 19 Dec 2012 16:22:22 +0000 (18:22 +0200)]
[l10n] Updated Estonian translation

11 years agosoup-cache: Fix a memory leak.
Sudarsana Nagineni [Mon, 17 Dec 2012 22:11:13 +0000 (00:11 +0200)]
soup-cache: Fix a memory leak.

The GFileInfo returned by g_file_enumerator_next_file() must be freed with g_object_unref().

https://bugzilla.gnome.org/show_bug.cgi?id=690382

11 years agoAssamese translation updated
Nilamdyuti Goswami [Wed, 19 Dec 2012 07:27:28 +0000 (12:57 +0530)]
Assamese translation updated

11 years agoSoupCache: add SoupContentProcessor support
Sergio Villar Senin [Thu, 23 Aug 2012 15:55:05 +0000 (17:55 +0200)]
SoupCache: add SoupContentProcessor support

SoupCache now implements the SoupContentProcessor interface. This means that
soup-message-io will ask it to wrap a given base stream. By doing that the
cache will backup up every byte readed from that base stream into a local
file using a SoupCacheInputStream.

Apart from that, this removes all the old resource writing infrastructure
that was moved to the new SoupCacheInputStream. The SoupCache just needs
to pass a callback to the stream in order to be notified once the caching
operation finishes.

This also involves moving the caching decision from the "got-headers"
callback to the _wrap_input() implementation.

https://bugzilla.gnome.org/show_bug.cgi?id=682112

11 years agoSoupCacheInputStream: new input stream filter that writes to the cache
Sergio Villar Senin [Mon, 30 Jul 2012 10:40:32 +0000 (12:40 +0200)]
SoupCacheInputStream: new input stream filter that writes to the cache

The SoupCacheInputStream will be added to the stream stack as any other
GPollableInputStream. It will transparently read data from the underlying
stream and will pass it unmodified to the upper level.

Apart from that the stream writes everything it reads to a local file. Once
the caching finishes a callback will be called. Caching may be cancelled at
any point by providing a GCancellable.

https://bugzilla.gnome.org/show_bug.cgi?id=682112

11 years ago2.41.3 2.41.3 LIBSOUP_2_41_3
Dan Winship [Tue, 18 Dec 2012 01:29:26 +0000 (20:29 -0500)]
2.41.3

11 years agoRename all remaining "SoupMessage *req"s to "msg"
Dan Winship [Thu, 13 Dec 2012 15:07:57 +0000 (16:07 +0100)]
Rename all remaining "SoupMessage *req"s to "msg"

Originally (ie, 12 years ago last week) the HTTP message type in soup
was called SoupRequest, and most SoupRequest variables were called
"req". Shortly after, SoupRequest was renamed to SoupMessage, but none
of the existing "req"s were renamed, and in fact, new ones kept
getting added. Eventually, "msg" became the standard name for a
SoupMessage variable, but a handful of "req"s have managed to survive
to this day. With the increasing integration of the modern-day
SoupRequest, this has gone from "inconsistent" to "confusing", so fix
all the remaining stray "SoupMessage *req"s.

11 years agosoup-message: update docs to mention SoupRequest where appropriate
Dan Winship [Thu, 13 Dec 2012 15:02:30 +0000 (16:02 +0100)]
soup-message: update docs to mention SoupRequest where appropriate

11 years agosoup-message: deprecate soup_message_set_chunk_allocator()
Dan Winship [Thu, 13 Dec 2012 14:58:28 +0000 (15:58 +0100)]
soup-message: deprecate soup_message_set_chunk_allocator()

This was added as a hacky way to avoid extra memcpy()s in certain use
cases by reading data directly into a caller-provided buffer. However,
SoupRequest now provides a vastly simpler way of doing this.

11 years agosoup-message: fix up add_header_handler()/add_status_handler() docs
Dan Winship [Thu, 13 Dec 2012 14:55:27 +0000 (15:55 +0100)]
soup-message: fix up add_header_handler()/add_status_handler() docs

soup_message_add_header_handler() and
soup_message_add_status_handler() used to have the semantics that the
handlers they added wouldn't be called if the message was cancelled by
a preceding signal handler. This feature accidentally got lost in
2.32, but no one appears to have noticed. Fix up the docs to
correspond to the current reality.

Also, fix part of the add_header_handler() docs that *never*
corresponded to reality.

11 years agosoup-message: remove gtk-docs on internal methods
Dan Winship [Thu, 13 Dec 2012 14:52:59 +0000 (15:52 +0100)]
soup-message: remove gtk-docs on internal methods

11 years agoUpdated Spanish translation
Daniel Mustieles [Sun, 16 Dec 2012 19:48:53 +0000 (20:48 +0100)]
Updated Spanish translation

11 years agoUpdated Polish translation
Piotr Drąg [Sun, 16 Dec 2012 02:29:05 +0000 (03:29 +0100)]
Updated Polish translation

11 years agoUpdated Galician translations
Fran Diéguez [Fri, 14 Dec 2012 23:16:29 +0000 (00:16 +0100)]
Updated Galician translations

11 years agoSoupConnection: Quiet a (mistaken) compiler warning
Colin Walters [Fri, 14 Dec 2012 21:02:48 +0000 (16:02 -0500)]
SoupConnection: Quiet a (mistaken) compiler warning

gcc claims 'event_id' might be uninitialized; it's wrong, but it's
hard for the optimizer to know that.  Placate it in the name of
reducing warnings.

https://bugzilla.gnome.org/show_bug.cgi?id=690224

11 years agosoup-filter-input-stream: fix non-blocking behavior to not spin
Dan Winship [Wed, 12 Dec 2012 16:16:40 +0000 (17:16 +0100)]
soup-filter-input-stream: fix non-blocking behavior to not spin

Just having a non-empty internal buffer isn't enough to guarantee we
can do a non-blocking read; if the caller is doing a read_until, we
might have some data in the buffer but still be waiting to find the
boundary. So track that. Based on a patch from Gustavo Noronha Silva.

11 years agodocs: remove libsoup-gnome references from the build
Dan Winship [Wed, 12 Dec 2012 10:16:47 +0000 (11:16 +0100)]
docs: remove libsoup-gnome references from the build

Since everything in libsoup-gnome is now deprecated and undocumented,
don't depend on it when building docs.

https://bugzilla.gnome.org/show_bug.cgi?id=573685

11 years agosoup-body-output-stream: fix non-blocking writing
Dan Winship [Mon, 26 Nov 2012 22:24:36 +0000 (17:24 -0500)]
soup-body-output-stream: fix non-blocking writing

Since soup_body_output_stream_write_chunked() sometimes loops and does
multiple writes, it's not enough to just check is_writable() first and
then do a blocking write. Implement write_nonblocking() to fix this.

Noticed by Milan Plzik.
https://bugzilla.gnome.org/show_bug.cgi?id=688974

11 years agoAssamese translation updated
Nilamdyuti Goswami [Wed, 12 Dec 2012 08:20:53 +0000 (13:50 +0530)]
Assamese translation updated

11 years agosoup-gnome: belatedly deprecate SoupProxyResolverGNOME
Dan Winship [Tue, 11 Dec 2012 18:03:36 +0000 (19:03 +0100)]
soup-gnome: belatedly deprecate SoupProxyResolverGNOME

There's no real reason to use SoupProxyResolverGNOME rather than
SoupProxyResolverDefault, so deprecate that too.

libsoup-gnome now consists entirely of deprecated functions.

11 years agoAdd SoupCookieJarDB to replace SoupCookieJarSqlite
Dan Winship [Tue, 11 Dec 2012 17:43:42 +0000 (18:43 +0100)]
Add SoupCookieJarDB to replace SoupCookieJarSqlite

Move SoupCookieJarSqlite (and its sqlite3 dependency) into libsoup
from libsoup-gnome, but rename it to SoupCookieJarDB so libsoup-gnome
can keep using the old name. SoupCookieJarSqlite is now just a
wrapper around SoupCookieJarDB.

11 years agotests: fix memory leaks
Dan Winship [Tue, 11 Dec 2012 16:34:06 +0000 (17:34 +0100)]
tests: fix memory leaks

11 years agosoup-session: fix a possible crash
Dan Winship [Tue, 11 Dec 2012 16:33:14 +0000 (17:33 +0100)]
soup-session: fix a possible crash

Calling soup_session_unqueue_item() will unref the item, so we need to
add an extra ref if we want to ensure that it's still valid afterward.

11 years agoSoupPasswordManager: kill
Dan Winship [Wed, 22 Aug 2012 15:40:04 +0000 (11:40 -0400)]
SoupPasswordManager: kill

Deprecate and remove support for SoupPasswordManager;
SoupPasswordManagerGNOME is now a dummy class, and the related
SoupAuth methods are all no-ops. SoupSession also no longer has any
special support for SoupPasswordManager.

To avoid breaking old builds, the functions/types are still around,
but are now marked as having always been deprecated (which, really,
they were).

https://bugzilla.gnome.org/show_bug.cgi?id=594377
https://bugzilla.gnome.org/show_bug.cgi?id=679866

11 years agoSoupRequester: compatibility fix
Dan Winship [Tue, 11 Dec 2012 14:34:52 +0000 (15:34 +0100)]
SoupRequester: compatibility fix

Epiphany was registering its "ephy-about" handler by directly calling
soup_session_feature_add_feature() on the SoupRequester, rather than
calling soup_session_add_feature_by_type() on the session. Fix it so
that will still work.

11 years agosoup-message-io: fix crash when doing unpause+cancel
Dan Winship [Tue, 11 Dec 2012 09:52:00 +0000 (10:52 +0100)]
soup-message-io: fix crash when doing unpause+cancel

soup_message_io_stop() was unreffing unpause_source (if it was set),
but it didn't actually own a ref on it, so this would crash.
Fortunately this would only happen if you unpaused a message and then
immediately cancelled it, which isn't very common. Fixes a sporadic
chunk-test crash though.

11 years agosoup-uri: don't decode %00 in URIs
Dan Winship [Mon, 10 Dec 2012 21:20:59 +0000 (22:20 +0100)]
soup-uri: don't decode %00 in URIs

We were accidentally decoding %00 to '\0' in URIs, causing a few
WebKit tests to fail. Leave it undecoded instead.

11 years agotests: fix SoupRequester deprecation warnings
Dan Winship [Mon, 10 Dec 2012 16:30:21 +0000 (17:30 +0100)]
tests: fix SoupRequester deprecation warnings

Fix multipart-test and resource-test to use the new SoupSession APIs
rather than SoupRequester. Fix requester-test (which intentionally
tests that SoupRequester still works too) to not show deprecation
warnings.

11 years agoSoupSession: add soup_session_request_http() and _request_http_uri()
Dan Winship [Wed, 25 Jul 2012 13:35:58 +0000 (09:35 -0400)]
SoupSession: add soup_session_request_http() and _request_http_uri()

Add SoupSession helpers to return SoupRequestHTTP directly and allow
overriding the request method.

11 years agoSoupRequest: add soup_request_disable_feature()
Dan Winship [Wed, 25 Jul 2012 13:20:32 +0000 (09:20 -0400)]
SoupRequest: add soup_request_disable_feature()

Add soup_request_disable_feature(), which proxies to
soup_message_disable_feature() for SoupRequestHTTP and is a no-op
otherwise.

Add SoupRequest tests to sniffing-test, which also tests
soup_request_disable_feature() now.

11 years agoSoupMessage: add soup_message_get_soup_request()
Dan Winship [Wed, 25 Jul 2012 12:44:02 +0000 (08:44 -0400)]
SoupMessage: add soup_message_get_soup_request()

When dealing with SoupMessage-related signals in SoupRequest-using
code, it's useful to be able to get the message's associated
SoupRequest.

11 years agoSoupRequestHTTP: mirror SoupMessage fields/API
Dan Winship [Sun, 15 Jul 2012 22:21:37 +0000 (18:21 -0400)]
SoupRequestHTTP: mirror SoupMessage fields/API

Mirror various SoupMessage-related API onto SoupRequestHTTP so that
you don't need to resort to soup_request_http_get_message().

11 years agoSoupRequest: Return better GErrors on parsing failures
Dan Winship [Sat, 14 Jul 2012 13:24:29 +0000 (09:24 -0400)]
SoupRequest: Return better GErrors on parsing failures

In cases where the SoupMessage API would return SOUP_STATUS_MALFORMED,
return a clearer GError in the SoupRequest API.

11 years agoMove SoupRequester API into SoupSession, declare SoupRequest stable
Dan Winship [Mon, 5 Dec 2011 21:00:40 +0000 (16:00 -0500)]
Move SoupRequester API into SoupSession, declare SoupRequest stable

Add soup_session_request() and soup_session_request_uri(),
implementing basically the same behavior as soup_requester_request()
and soup_requester_request_uri() (but without requiring a separate
SoupSessionFeature), and remove the unstable-api ifdefs from
soup-request*.h.

SoupRequester still exists, but it is still guarded by the
unstable-api ifdefs, and is just a dummy wrapper around the
functionality that is now in SoupSession.

11 years agoMake default property values/features more sane on plain SoupSession
Dan Winship [Thu, 6 Oct 2011 14:26:57 +0000 (10:26 -0400)]
Make default property values/features more sane on plain SoupSession

(can't do this for SoupSessionAsync/SoupSessionSync because of
backward compatibility)

Also, make it illegal to set certain deprecated properties on a plain
SoupSession.

11 years agoSoupSession: allow creating a "plain" SoupSession for use with new APIs
Dan Winship [Sun, 27 May 2012 15:42:45 +0000 (11:42 -0400)]
SoupSession: allow creating a "plain" SoupSession for use with new APIs

In gio-based APIs, async vs sync is a function-level distinction, not
a class-level distinction. Merge most of the existing SoupSessionAsync
and SoupSessionSync code up into SoupSession, and make SoupSession
non-abstract, so that you can create a SoupSession and then use either
sync or async SoupRequest-based APIs on it. (The traditional APIs
still require one of the traditional subclasses, although the code
reorg does affect them in some ways, such as making SoupSessionAsync
more thread-safe.)

11 years agoSoupSessionAsync: don't allow restart-from-FINISHED in new_api
Dan Winship [Fri, 8 Jun 2012 07:31:14 +0000 (03:31 -0400)]
SoupSessionAsync: don't allow restart-from-FINISHED in new_api

11 years agoAdded and Updated Kannada Translations
Shankar Prasad [Mon, 10 Dec 2012 10:20:11 +0000 (15:50 +0530)]
Added and Updated Kannada Translations

11 years agotests/uri-parsing: check empty username/password
Dan Winship [Sun, 9 Dec 2012 09:31:08 +0000 (10:31 +0100)]
tests/uri-parsing: check empty username/password

Make sure that zero-length username/password are recognized as
different from no username/password.

11 years agoBetter handle the failure of URI embedded credentials
Martin Robinson [Wed, 5 Dec 2012 01:48:45 +0000 (17:48 -0800)]
Better handle the failure of URI embedded credentials

When using credentials embedded in the URI, clear them so that a failure
will trigger the authentication signal and the use of previously
remembered credentials.

11 years agosoup-tld: fix a return-if-fail check
Dan Winship [Tue, 4 Dec 2012 16:44:53 +0000 (11:44 -0500)]
soup-tld: fix a return-if-fail check

11 years agotests: fix a few bugs
Dan Winship [Tue, 4 Dec 2012 16:44:02 +0000 (11:44 -0500)]
tests: fix a few bugs

Fix a few places where the test might crash rather than reporting an
error when something went wrong.

11 years agotests/simple-httpd: use GMappedFile rather than mmap
Dan Winship [Tue, 4 Dec 2012 16:41:29 +0000 (11:41 -0500)]
tests/simple-httpd: use GMappedFile rather than mmap

(fixing a fd leak in the process)

11 years agoAdded Odia Language into the List.
ManojKumar Giri [Mon, 3 Dec 2012 11:31:39 +0000 (17:01 +0530)]
Added Odia Language into the List.

11 years agoUpdated Odia Translation with FUEL implementation.
ManojKumar Giri [Mon, 3 Dec 2012 11:30:20 +0000 (17:00 +0530)]
Updated Odia Translation with FUEL implementation.

11 years ago[l10n] Update Japanese translation
Takayuki KUSANO [Wed, 28 Nov 2012 12:31:19 +0000 (21:31 +0900)]
[l10n] Update Japanese translation

11 years ago2.41.2 2.41.2 LIBSOUP_2_41_2 upstream/2.41.2
Dan Winship [Mon, 19 Nov 2012 22:12:45 +0000 (17:12 -0500)]
2.41.2

11 years agoUyghur translation added.
Gheyret Kenji [Sun, 11 Nov 2012 10:57:22 +0000 (19:57 +0900)]
Uyghur translation added.

11 years agoSoupLogger: fix printing of Host header with IPv6 literal
Dan Winship [Sat, 17 Nov 2012 16:36:00 +0000 (11:36 -0500)]
SoupLogger: fix printing of Host header with IPv6 literal

SoupLogger was misprinting Host headers with IPv6 literals (even
though soup-message-client-io was sending them correctly). Fix that.

Also includes an addition to misc-test to verify that the Host header
received by the server is correct (which it already was, but the
SoupLogger bug made me think it wasn't.)

11 years agosoup-message-client-io: add a Host header to HTTP/1.0 messages too
Dan Winship [Sat, 17 Nov 2012 16:35:24 +0000 (11:35 -0500)]
soup-message-client-io: add a Host header to HTTP/1.0 messages too

per recommendation of the httpbis spec