GNOME Bugzilla – Bug 678753
Fails to login www.live.com
Last modified: 2012-07-11 00:39:58 UTC
Fails to login www.live.com [ALWAYS] Steps to reproduce 1. Fetch http://www.live.com 2. Enter login credentials 3. Click on signin It redirects back to login page again, instead of profile page
WebKit-EFL EWebLaunch browser has this problem. Please upload your analysis.
Created attachment 217164 [details] [review] Patch for https://bugzilla.gnome.org/attachment.cgi?bugid=678753 Patch for https://bugzilla.gnome.org/attachment.cgi?bugid=678753 Fails to login live.com
This issue is related to Cookie Parser issue. When cookie with attribute "secure= ;" comes, cookie secure value is stored as TRUE and pointer is not moved to point semicolon (;) in function parse_one_cookie in soup-cookie.c while (*p == ';') fails. So because of this remaining cookie attributes after "secure" is not parsed. Similar issue will happen for the attribute "HttpOnly". So solution to call parse_value (&p) for the case "secure" and "HttpOnly" Attached the patch for reference.
*** Bug 678300 has been marked as a duplicate of this bug. ***
Created attachment 217197 [details] [review] Patch for https://bugzilla.gnome.org/attachment.cgi?bugid=678753 Proper git Diff patch is attached now
Good catch! I thought both secure and HttpOnly were not expected to have any associated value, but I might be wrong...
Comment on attachment 217197 [details] [review] Patch for https://bugzilla.gnome.org/attachment.cgi?bugid=678753 This isn't quite right; look at the case for "unknown attributes" at the end; you need to only call parse_value() if has_value is TRUE, and you need to free the value it returns. (Alternately, it would be better to reorganize the code about to implement a skip_value() that doesn't do a g_strndup() in this case.) Also, ideally, you should commit your code (with a proper commit message), and then do "git format-patch HEAD^" to create a complete commit (diff + commit message) to attach to the bug.
Thanks Dan, Will change the patch according to your suggestion...
Created attachment 217574 [details] [review] New Patch - live.com login failure new git diff patch attached, as per Dan comments
(In reply to comment #9) > Created an attachment (id=217574) [details] [review] > New Patch - live.com login failure > > new git diff patch attached, as per Dan comments, please review it
I committed a different patch, plus a test case