Last modified: 2013-04-12 23:03:17 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T43238, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 41238 - ClickTracking userbucket cookie varies with path
ClickTracking userbucket cookie varies with path
Status: RESOLVED WONTFIX
Product: MediaWiki extensions
Classification: Unclassified
ClickTracking (Other open bugs)
master
All All
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-20 08:16 UTC by spage
Modified: 2013-04-12 23:03 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description spage 2012-10-20 08:16:54 UTC
I have two userbuckets cookies, for the paths '/w and '/wiki''  :-(
Here's how I think this happens.  The Create Account link on enwiki goes to http://en.wikipedia.org/w/index.php?title=Special:UserLogin&type=signup
but you can also start at en.wikipedia.org/wiki/Special:UserLogin?&type=signup , which will set a different cookie (in Firefox) because the path is different.  The form submits to  /w/ which gets and sets the other cookie

The fix is is easy
    $.cookie('userbuckets', $.toJSON( bucketCookies ) , { expires: 365 }); //expires in 1 year
should be
    $.cookie('userbuckets', $.toJSON( bucketCookies ) , { expires: 365, path: '/' }); //expires in 1 year

but I don't know what happens if you set cookies on parent paths... three cookies? No doubt the behavior varies between browsers.
Comment 1 spage 2012-11-30 00:10:23 UTC
Prioritizing Low since we intend to retire ClickTracking.
Comment 2 Andre Klapper 2013-04-12 11:11:25 UTC
WONTFIX as per http://lists.wikimedia.org/pipermail/wikitech-l/2013-April/068359.html ?
Comment 3 spage 2013-04-12 23:03:17 UTC
RIP ClickTracking

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links