← Back to team overview

touch-packages team mailing list archive

[Bug 1231422] Re: Not doing the X-CLICK-TOKEN dance

 

saucy has seen the end of its life and is no longer receiving any
updates. Marking the saucy task for this ticket as "Won't Fix".

** Changed in: clickmanager-plugin (Ubuntu Saucy)
       Status: New => Won't Fix

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to clickmanager-plugin in
Ubuntu.
https://bugs.launchpad.net/bugs/1231422

Title:
  Not doing the X-CLICK-TOKEN dance

Status in ClickManager Plugin:
  Fix Committed
Status in clickmanager-plugin package in Ubuntu:
  Fix Released
Status in clickmanager-plugin source package in Saucy:
  Won't Fix

Bug description:
  This plugin is passing the oauth signed url to the download manager,
  and that will fail if the download manager has stuff queued and it
  takes longer than 5 minutes because the oauth signature expires.

  The solution to this are the X-CLICK-TOKEN headers, which are valid
  for 24 hours, but to get them you need to do a little dance:

  1) this plugin will receive an unsigned url to download
  2) this plugin will use oauth to sign this url with the users's U1 credentials
  3) this plugin will do a HEAD request to the signed url, and retrieve the X-Click-Token header
  4) this plugin will pass the *unsigned* url and the X-Click-Token to the download manager

  Reference code for the dance can be found here:
  http://bazaar.launchpad.net/~ubuntuone-hackers/unity-scope-
  click/trunk/view/head:/src/download-manager.vala#L101

To manage notifications about this bug go to:
https://bugs.launchpad.net/clickmanager-plugin/+bug/1231422/+subscriptions