Use user-agent to provide relevant options

Bug #778562 reported by Michael Nelson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Apps Directory
Fix Released
Medium
Danny Tamez

Bug Description

As per bug 777454, it would be great to determine the users Ubuntu version (or lack of) from the user-agent and do things like:

* only include "Install" link when user's distroseries matches displayed app
* Display "Not available for your version of Ubuntu" when appropriate
* Display "Scribus is also available for your version of Ubuntu" with a link to correct distroseries version.

Related branches

Changed in ubuntu-webcatalog:
status: New → Confirmed
importance: Undecided → Medium
tags: added: kb-feature sp-1
Danny Tamez (zematynnad)
Changed in ubuntu-webcatalog:
status: Confirmed → In Progress
assignee: nobody → Danny Tamez (zematynnad)
Danny Tamez (zematynnad)
Changed in ubuntu-webcatalog:
status: In Progress → Fix Committed
Revision history for this message
Dave Morley (davmor2) wrote :

Currently works on Chromium but not FF

Revision history for this message
Michael Nelson (michael.nelson) wrote : Re: [Bug 778562] Re: Use user-agent to provide relevant options

On Wed, Sep 28, 2011 at 6:23 PM, Dave Morley <email address hidden> wrote:
> Currently works on Chromium but not FF

It currently works when the browser specifies a UserAgent in the
request headers which includes the distroseries - currently (at least
for me) in Oneiric Chromium does this:

User-Agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.1 (KHTML,
like Gecko) Ubuntu/11.10 Chromium/13.0.782.215 Chrome/13.0.782.215
Safari/535.1

but Firefox doesn't:

User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:7.0) Gecko/20100101 Firefox/7.0

(Using Chromium's developer tools and FireBug respectively).

Changed in ubuntu-webcatalog:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.