On Wed, Mar 18, 2015 at 01:13:11PM -0500, Serge E. Hallyn wrote:
> Hi,
> 
> I don't believe what's going on is vimprobable's fault, but I don't know how 
> to
> investigate further.  I assume it's a webkit problem...
> 
> I upgraded my laptop from Ubuntu utopic to Ubuntu vivid - this did not involve
> an upgrade of vimprobable2.  But since I upgraded, I have to login every time 
> I
> start a new vimprobable.  stracing suggests that it is having no problem 
> opening
> my cookies file.  After logging in I can use the page just fine, but a new
> vimprobable has to log back in.
> 
> I'll try testing with an older version of webkit, but was wondering whether
> anyone knew offhand what would be to blame.

So fwiw, after a few weeks of just always re-installing the older packages,
I've found that the following patch works for me:

>From 41d150365b267415e623aa12bd6d31567de264f9 Mon Sep 17 00:00:00 2001
From: Serge Hallyn <[email protected]>
Date: Thu, 7 May 2015 12:45:49 -0500
Subject: [PATCH 1/1] fix cookies support with newer libsoup

This patch won't suffice, as we'll need to ifdef the code based on
libsoup versioning.

As of commit 29a976932f libsoup sometimes sends 'request-queued' instead
of 'request-started'.  This causes cookie-based logins to fail.  With this
patch, autologin to sites like github are fixed with newer libsoup.

Signed-off-by: Serge Hallyn <[email protected]>
---
 main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/main.c b/main.c
index e13bae5..296f133 100644
--- a/main.c
+++ b/main.c
@@ -2888,6 +2888,7 @@ setup_signals() {
 #ifdef ENABLE_COOKIE_SUPPORT
     /* Headers. */
     g_signal_connect_after(G_OBJECT(client.net.session), "request-started", 
G_CALLBACK(new_generic_request), NULL);
+    g_signal_connect_after(G_OBJECT(client.net.session), "request-queued", 
G_CALLBACK(new_generic_request), NULL);
 #endif
     /* Accept-language header */
     g_object_set(G_OBJECT(client.net.session), "accept-language", 
acceptlanguage, NULL);
-- 
2.1.4


------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Vimprobable-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vimprobable-users

Reply via email to