Dan Winship [Mon, 9 Jul 2012 17:44:42 +0000 (13:44 -0400)]
Add some test-utils helpers for async SoupRequest usage
Dan Winship [Fri, 13 Jul 2012 19:27:13 +0000 (15:27 -0400)]
soup-client-input-stream: don't chain up from close/close_async
GInputStream's default close_async method runs the sync close method
in a thread, which means that you can't chain up to it from a subclass
implementation. And GFilterInputStream only overrides close_fn, not
close_async, so there's no way to asynchronously get the
close-base-stream behavior if we want to override close_async in
SoupClientInputStream. Ugh! Anyway, we always have a non
close-base-stream SoupBodyInputStream somewhere under the
SoupClientInputStream, so there's no need to chain up anyway.
Fixes a sporadic bug caused by the fact that we were closing the
stream (and thus calling soup_message_io_run_until_finish()) twice.
Dan Winship [Fri, 6 Jul 2012 17:09:50 +0000 (13:09 -0400)]
Clean up includes
Especially, include soup.h rather than individually including a bunch
of other public soup-*.h files.
Remove unnecessary system includes (many are leftovers from code that
has moved down into glib).
Dan Winship [Wed, 4 Jul 2012 17:12:38 +0000 (13:12 -0400)]
Reorganize files to need fewer forward declarations
Also, prefix virtual method implementation names with the class name,
to be consistent with other code.
Dan Winship [Wed, 4 Jul 2012 16:44:37 +0000 (12:44 -0400)]
Use G_DEFINE_INTERFACE and G_DEFINE_BOXED_TYPE
Dan Winship [Mon, 2 Jul 2012 14:49:53 +0000 (10:49 -0400)]
Use g_clear_object(), g_clear_pointer()
Dan Winship [Mon, 2 Jul 2012 14:18:18 +0000 (10:18 -0400)]
Use g_ptr_array_new_with_free_func()
Dan Winship [Mon, 2 Jul 2012 13:49:48 +0000 (09:49 -0400)]
Use g_slist_free_full()
Dan Winship [Sun, 3 Jun 2012 13:36:14 +0000 (09:36 -0400)]
Replace g_hash_table_foreach() with GHashTableIter
or g_hash_table_new_full() when the foreach was only being used for
cleanup.
Dan Winship [Mon, 2 Jul 2012 13:34:18 +0000 (09:34 -0400)]
Remove an unnecessary old demo program that doesn't work any more
Dan Winship [Sun, 3 Jun 2012 13:33:44 +0000 (09:33 -0400)]
soup-session.c: whitespace fix
Dan Winship [Fri, 13 Jul 2012 18:18:22 +0000 (14:18 -0400)]
requester-test: fix some debug printfs
Nilamdyuti Goswami [Fri, 13 Jul 2012 14:42:43 +0000 (20:12 +0530)]
Assamese translation completed
Nilamdyuti Goswami [Fri, 13 Jul 2012 14:38:08 +0000 (20:08 +0530)]
Added Assamese to LINGUAS
Yaron Shahrabani [Thu, 12 Jul 2012 15:58:38 +0000 (18:58 +0300)]
Updated Hebrew translation.
Dan Winship [Wed, 11 Jul 2012 00:35:08 +0000 (20:35 -0400)]
SoupCookie: ignore values on httponly and secure attributes
The cookie parsing algorithm says to ignore values on attributes that
aren't supposed to have them, so do that. Also add a test for this.
Based on a patch from "Basavaraj".
Also, drive-by bugfix in soup_cookie_to_set_cookie_header() /
soup_cookies_to_response() (the SoupServer side of the cookie APIs),
which were outputting "HttpOnly" if the cookie had the "secure" flag
set, rather than the "http_only" flag.
https://bugzilla.gnome.org/show_bug.cgi?id=678753
Dan Winship [Wed, 11 Jul 2012 00:12:41 +0000 (20:12 -0400)]
Fix cookies-test.c indentation
Kjartan Maraas [Tue, 10 Jul 2012 05:57:26 +0000 (07:57 +0200)]
Updated Norwegian bokmål translation
Javier Jardón [Thu, 5 Jul 2012 14:50:32 +0000 (23:50 +0900)]
Replace deprecated symbols
Javier Jardón [Sat, 10 Mar 2012 12:24:05 +0000 (12:24 +0000)]
Add deprecation attributes to deprecated functions
This is using the newly introduce G_DEPRECATED macros
from GLib. Traditional deprecation guards are still in
place.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=671770
Alexander Shopov [Thu, 5 Jul 2012 09:37:46 +0000 (12:37 +0300)]
Updated Bulgarian translation
Dan Winship [Wed, 4 Jul 2012 15:11:50 +0000 (11:11 -0400)]
update .gitignore for tld_data.inc
Nguyễn Thái Ngọc Duy [Sat, 30 Jun 2012 03:16:01 +0000 (10:16 +0700)]
Added Vietnamese translation
Andika Triwidada [Thu, 28 Jun 2012 03:26:37 +0000 (10:26 +0700)]
Updated Indonesian translation
Colin Walters [Tue, 26 Jun 2012 17:27:17 +0000 (13:27 -0400)]
tld-parser: Rewrite in Python
This avoids the issues in building native code to build an
intermediate file to build more native code. Automake has
BUILT_SOURCES but it's easier to just have build tools in scripting
languages.
https://bugzilla.gnome.org/show_bug.cgi?id=678909
Colin Walters [Tue, 26 Jun 2012 17:40:33 +0000 (13:40 -0400)]
build: Don't write tld_data.inc to srcdir which may not be writable
Generated data should go in the builddir.
https://bugzilla.gnome.org/show_bug.cgi?id=678909
Colin Walters [Tue, 26 Jun 2012 15:20:33 +0000 (11:20 -0400)]
tld-parser: Add error handling
Colin Walters [Tue, 26 Jun 2012 14:13:28 +0000 (10:13 -0400)]
Revert "make dist fix"
This reverts commit
76cc02212e63f692e6e36bdf99987928dc3c2ed2. After
discussion with Dan on IRC, we agreed to revert this for now until a
better solution is written. Probably one of
1) Rewrite tld-parser in a scripting language, so it doesn't have
a build process
2) Hack somewhere else in automake to make 'make dist' happy
Dan Winship [Tue, 26 Jun 2012 12:48:25 +0000 (08:48 -0400)]
2.39.3
Dan Winship [Tue, 26 Jun 2012 12:42:38 +0000 (08:42 -0400)]
make dist fix
Fran Diéguez [Sun, 24 Jun 2012 21:26:41 +0000 (23:26 +0200)]
Updated Galician translations
Tom Tryfonidis [Fri, 22 Jun 2012 10:17:20 +0000 (13:17 +0300)]
Updated Greek translation
Sasi Bhushan Boddepalli [Wed, 20 Jun 2012 13:43:41 +0000 (19:13 +0530)]
Updated Telugu Translation
Sasi Bhushan Boddepalli [Wed, 20 Jun 2012 13:39:36 +0000 (19:09 +0530)]
Updated Telugu Translation
Dan Winship [Mon, 4 Jun 2012 16:25:51 +0000 (12:25 -0400)]
belatedly commit 2.39.2 NEWS
Matej Urbančič [Sat, 16 Jun 2012 06:47:56 +0000 (08:47 +0200)]
Updated Slovenian translation
Daniel Mustieles [Fri, 15 Jun 2012 10:10:51 +0000 (12:10 +0200)]
Updated Spanish translation
Sergio Villar Senin [Thu, 19 Apr 2012 18:39:24 +0000 (20:39 +0200)]
soup-cookie-jar: do not accept cookies for well known public domains
SoupCookieJar uses the new soup_tld_* utils to reject cookies whose domains
are registered public suffixes. This prevents sites from setting supercookies.
https://bugzilla.gnome.org/show_bug.cgi?id=673802
Sergio Villar Senin [Mon, 9 Apr 2012 22:06:35 +0000 (00:06 +0200)]
soup-tld: added soup_tld_* utils
The soup_tld_* set of functions along with the list of public suffixes
published in http://publicsuffix.org allows API clients to get the base
domain of a given hostname or to check if a given domain is a public suffix
(one under which internet users can register new names).
https://bugzilla.gnome.org/show_bug.cgi?id=673802
Tom Tryfonidis [Thu, 14 Jun 2012 00:48:40 +0000 (03:48 +0300)]
Updated Greek translation
Christophe Dumez [Tue, 12 Jun 2012 16:59:58 +0000 (19:59 +0300)]
Bump version to 2.39.2
Christophe Dumez [Tue, 12 Jun 2012 08:00:37 +0000 (11:00 +0300)]
Bug 677923 - Add soup_cookie_jar_set_cookie_with_first_party() alternative that takes a SoupCookie in argument
Currently, the only way to add a cookie while checking first_party is to use
soup_cookie_jar_set_cookie_with_first_party(). However, this function takes an
unparsed cookie in argument.
In the event the client has already parsed the cookie (e.g. to do some
pre-processing), it would be useful to have an alternative to
soup_cookie_jar_set_cookie_with_first_party() which takes a parsed SoupCookie
in argument. This would be more efficient.
Christophe Dumez [Tue, 12 Jun 2012 06:55:11 +0000 (09:55 +0300)]
Bug 677922 - Add soup_cookie_jar_get_cookies() alternative that returns a GSList of SoupCookies
Adds a soup_cookie_jar_get_cookie_list() function that returns the
cookies in the jar that would be sent with a request to a specific
uri, as a GSList of SoupCookies.
Dan Winship [Tue, 12 Jun 2012 11:14:35 +0000 (07:14 -0400)]
soup_message_headers_get_content_type: annotate @params
https://bugzilla.gnome.org/show_bug.cgi?id=677002
Ihar Hrachyshka [Fri, 8 Jun 2012 14:37:31 +0000 (17:37 +0300)]
Updated Belarusian translation.
Colin Walters [Thu, 7 Jun 2012 02:03:08 +0000 (22:03 -0400)]
tests/date: Fix compiler warning
Sergio Villar Senin [Mon, 4 Jun 2012 18:51:12 +0000 (20:51 +0200)]
soup-cache: use the status code from the stored response for expiration heuristics
We must check the status code of the stored response instead of the status
code of the SoupMessage passed to soup_cache_entry_set_freshness(). The reason
is because the SoupMessage might be the one used to revalidate the resource
instead of the original.
Sergio Villar Senin [Fri, 1 Jun 2012 17:38:51 +0000 (19:38 +0200)]
soup-cache: use the proper Content-Type when returning data from cache
This does not completely fixes the content-type handling by the cache as it
does not take into account the sniffed content type. Anyway trying to return
something from the original message was clearly wrong as it was not sent.
Better use the Content-Type from the 304 response.
Sergio Villar Senin [Fri, 1 Jun 2012 17:17:40 +0000 (19:17 +0200)]
soup-cache: correctly handle conditional requests not returning 304
If we do not get a 304 after a conditional request we have to refresh the
cache contents for that resource. We should use the original SoupMessage to
retrieve the new data from the resource (we were incorrectly using the
SoupMessage used for the conditional request).
The current strategy is clearly suboptimal as we ask again for the resource
instead of directly using the data from the response of the conditional
request. This will change once the cache is integrated into the streams
stack.
Piotr Drąg [Sun, 3 Jun 2012 13:35:54 +0000 (15:35 +0200)]
Updated Polish translation
Bruno Brouard [Sun, 3 Jun 2012 08:25:10 +0000 (10:25 +0200)]
New French translation
Kjartan Maraas [Wed, 30 May 2012 15:42:10 +0000 (17:42 +0200)]
Updated Norwegian bokmål translation
Dan Winship [Sun, 27 May 2012 16:34:05 +0000 (12:34 -0400)]
proxy-test: unskip accidentally skipped tests
Yaron Shahrabani [Sat, 26 May 2012 04:42:23 +0000 (07:42 +0300)]
Updated Hebrew translation.
Dan Winship [Fri, 25 May 2012 13:21:18 +0000 (09:21 -0400)]
Fix a few more introspection warnings
Dan Winship [Fri, 25 May 2012 12:35:32 +0000 (08:35 -0400)]
Fix a warning in last commit
tuhaihe [Fri, 25 May 2012 13:46:30 +0000 (21:46 +0800)]
add Simplified Chinese (zh_CN) translation
Jasper St. Pierre [Thu, 24 May 2012 19:05:10 +0000 (15:05 -0400)]
soup-message-body: Add a soup_buffer_get_as_bytes method
This new method will return a GBytes instance containing the
contents of the SoupBuffer.
https://bugzilla.gnome.org/show_bug.cgi?id=676776
Jasper St. Pierre [Thu, 24 May 2012 13:56:48 +0000 (09:56 -0400)]
introspection: Include SoupRequester API
https://bugzilla.gnome.org/show_bug.cgi?id=676742
Jasper St. Pierre [Thu, 24 May 2012 13:53:22 +0000 (09:53 -0400)]
introspection: Fix warnings
https://bugzilla.gnome.org/show_bug.cgi?id=676742
Dan Winship [Thu, 24 May 2012 18:52:52 +0000 (14:52 -0400)]
Fix the handling of trailing junk with Content-Encoding
When a content-encoded response has trailing junk,
SoupConverterWrapper needs to make sure that all of that junk gets
read before returning G_CONVERTER_FINISHED, or else it will end up
becoming the start of the next response on that connection.
coding-test wasn't hitting this, because the trailing junk was always
small enough that it would have been read into GConverterInputStream's
internal buffer already at the point when the GZlibDecompresser
returned FINISHED. Switching coding-test to use chunked encoding
caused it to reliably hit the bug though, because the final 0-length
chunk (including its header) will always still be unread at that
point. So update it to use that.
Also add a SoupRequest-based test to coding-test, though it turns out
to not have been relevant to this bug, which affected the SoupMessage
API too.
https://bugzilla.gnome.org/show_bug.cgi?id=676477
Matej Urbančič [Wed, 23 May 2012 18:02:51 +0000 (20:02 +0200)]
Updated Slovenian translation
A S Alam [Fri, 18 May 2012 02:03:04 +0000 (07:33 +0530)]
Added Punjabi (pa) Translation
Dan Winship [Wed, 16 May 2012 03:02:50 +0000 (23:02 -0400)]
Correctly handle unsuccessful CONNECTs via request API
and add tests to proxy-test to make sure that the request API works
for each case as well (based on a patch from Sergio)
https://bugzilla.gnome.org/show_bug.cgi?id=675865
Sergio Villar Senin [Fri, 11 May 2012 09:55:14 +0000 (11:55 +0200)]
Test case
https://bugzilla.gnome.org/show_bug.cgi?id=675865
Dan Winship [Tue, 15 May 2012 16:20:19 +0000 (12:20 -0400)]
soup-message-io: keep cancellable alive for duration of io_run_until
io_run() passes io->cancellable to io_run_until(), but io may be
destroyed (and cancellable unreffed) before io_run_until() returns,
causing it to eventually call g_cancellable_is_cancelled() on garbage.
Fix by reffing it around the io_run_until() call (though really this
is just another example of "SoupMessageIOData needs to be
refcounted".)
Tweak misc-test to test this case.
Fixes crasher in rygel test case. Based on a patch from Ray Strode.
https://bugzilla.gnome.org/show_bug.cgi?id=676038
Ray Strode [Mon, 14 May 2012 17:51:43 +0000 (13:51 -0400)]
soup-message-io: fix reference leak
io_run_until forgets to release a reference it takes
in a cancellation error path.
This commit fixes that.
https://bugzilla.gnome.org/show_bug.cgi?id=676038
Fran Diéguez [Wed, 9 May 2012 11:22:35 +0000 (13:22 +0200)]
Updated Galician translations
Daniel Mustieles [Wed, 9 May 2012 10:47:19 +0000 (12:47 +0200)]
Updated Spanish translation
Dan Winship [Tue, 8 May 2012 16:53:21 +0000 (12:53 -0400)]
Add a (temporary?) fix for async authentication via SoupRequest
In order to do async authentication, we need to stop the processing of
the request during the soup_request_send_async() call. So re-enable
soup_session_pause_message() for that case. Possibly to be revisited.
https://bugzilla.gnome.org/show_bug.cgi?id=675306
Dan Winship [Tue, 8 May 2012 12:25:04 +0000 (08:25 -0400)]
Fix indentation on some code copied from glib
Dan Winship [Fri, 4 May 2012 00:20:29 +0000 (20:20 -0400)]
Fix a few recent request API bugs, add some more tests
Ihar Hrachyshka [Thu, 3 May 2012 20:09:59 +0000 (23:09 +0300)]
Added Belarusian translation.
Tom Tryfonidis [Thu, 3 May 2012 08:54:01 +0000 (11:54 +0300)]
Updated Greek translation
Dan Winship [Wed, 2 May 2012 14:33:20 +0000 (10:33 -0400)]
requester-test: add an early-cancellation test
Dan Winship [Wed, 2 May 2012 14:32:57 +0000 (10:32 -0400)]
Fix warnings/failures with messages that are cancelled from got-headers
https://bugzilla.gnome.org/show_bug.cgi?id=674747
Dan Winship [Wed, 2 May 2012 13:25:51 +0000 (09:25 -0400)]
soup-auth-manager-ntlm: avoid some /usr/bin/ntlm_auth warnings
ntlm_auth sometimes spews errors that we don't care about, so use
G_SPAWN_STDERR_TO_DEV_NULL.
Also, the "PW" response ("no cached credentials, ask for a password
instead") can be returned in response to the type 3 message too, so
deal with it there (and don't print a warning, because it's not an
error).
Dumitru Mișu Moldovan [Wed, 2 May 2012 10:58:39 +0000 (13:58 +0300)]
Updated Romanian translation
Dan Winship [Tue, 1 May 2012 13:10:27 +0000 (09:10 -0400)]
2.39.1
Bastien Nocera [Mon, 30 Apr 2012 11:52:49 +0000 (12:52 +0100)]
po: Revert "Updated Telugu Translation"
The translation file is missing
This reverts commit
b9196b0b627cfad96a063e14dddb7083ca5a4eb9.
Kjartan Maraas [Mon, 30 Apr 2012 10:38:07 +0000 (12:38 +0200)]
Added nb
Kjartan Maraas [Mon, 30 Apr 2012 10:37:54 +0000 (12:37 +0200)]
Added Norwegian bokmål translation
Sasi Bhushan [Mon, 30 Apr 2012 08:50:12 +0000 (14:20 +0530)]
Updated Telugu Translation
Dan Winship [Wed, 25 Apr 2012 01:27:21 +0000 (21:27 -0400)]
tests/get: use GProxyResolverDefault
Dan Winship [Wed, 30 Nov 2011 18:16:36 +0000 (19:16 +0100)]
Reorganize proxy resolution, and support SOCKS and other proxy types
Push the proxy resolution code from SoupSession down into
SoupConnection and SoupSocket. If using a SoupProxyResolverDefault,
just enable proxy support on the GSocketClient instead (after adding
"http" as an application protocol). This way we get support for SOCKS
proxies (and any other proxies supported by GProxy types).
https://bugzilla.gnome.org/show_bug.cgi?id=553269
Dan Winship [Fri, 20 Apr 2012 15:29:14 +0000 (11:29 -0400)]
Move SoupSocket stuff out of soup-message-io.c
Add a new SoupIOStream, which wraps the SoupFilterInputStream and
GOutputStream that SoupSocket exposes. Pass that to soup-message-io
rather than the SoupSocket, and update various other things for this.
Andika Triwidada [Fri, 27 Apr 2012 13:57:16 +0000 (20:57 +0700)]
[l10n] Added Indonesian translation
Sergio Villar Senin [Tue, 24 Apr 2012 16:49:58 +0000 (18:49 +0200)]
soup-client-input-stream: emit SoupMessage::got-chunk
SoupClientInputStream will emit the got-chunk signal whenever data is read
from the stream. With that hack we keep the SoupCache working while it is
not proprely migrated to the new gio-based architecture.
https://bugzilla.gnome.org/show_bug.cgi?id=674732
Yuri Myasoedov [Mon, 23 Apr 2012 08:45:18 +0000 (12:45 +0400)]
Added Russian translation
Yaron Shahrabani [Sun, 22 Apr 2012 08:40:02 +0000 (11:40 +0300)]
Updated Hebrew translation.
Matej Urbančič [Sat, 21 Apr 2012 10:55:33 +0000 (12:55 +0200)]
Added sl for Slovenian translation
Matej Urbančič [Sat, 21 Apr 2012 10:55:02 +0000 (12:55 +0200)]
Added Slovenian translation
Piotr Drąg [Fri, 20 Apr 2012 19:27:22 +0000 (21:27 +0200)]
Updated Polish translation
Dan Winship [Fri, 20 Apr 2012 15:09:24 +0000 (11:09 -0400)]
Make the new SoupSocket APIs private
Fran Diéguez [Fri, 20 Apr 2012 08:48:44 +0000 (10:48 +0200)]
Added Galician translations
Signed-off-by: Fran Diéguez <fran.dieguez@mabishu.com>
Daniel Mustieles [Fri, 20 Apr 2012 08:46:50 +0000 (10:46 +0200)]
Updated Spanish translation
Dan Winship [Wed, 18 Apr 2012 15:01:59 +0000 (11:01 -0400)]
belated version bump to 2.39.0
Carlos Garcia Campos [Mon, 26 Mar 2012 15:46:16 +0000 (17:46 +0200)]
soup-cookie-jar: Add SoupCookieJar:is-persistent property
It allows to query whether cookies are stored persisently by the
SoupCookieJar.
https://bugzilla.gnome.org/show_bug.cgi?id=672838
Dan Winship [Thu, 12 Apr 2012 03:17:13 +0000 (23:17 -0400)]
tests: add some more SoupRequester-based tests
Add SoupRequester-based tests to redirect-test and add
SoupSessionSync-based tests to requester-test.
Dan Winship [Thu, 26 Jan 2012 21:25:57 +0000 (16:25 -0500)]
SoupHTTPRequest: O brave new world!
Kill SoupHTTPInputStream, and have SoupHTTPRequest return the
message's body_istream directly (with a little help from SoupSession
and its subclasses). SoupHTTPRequest works synchronously now as well
(though it's still the case that async only works with
SoupSessionAsync and sync only works with SoupSessionSync).
https://bugzilla.gnome.org/show_bug.cgi?id=591739