Item appears in wrong second category/subcategory

Bug #554180 reported by Matthew Paul Thomas
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
software-center (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

Ubuntu Software Center 1.1.23, Ubuntu Lucid
Ubuntu Software Center 4.1.21, Ubuntu 11.10 beta 1

0. Select "View" > "All Software", if it is not selected already.
1. Navigate to "Games" > "Card Games", and scroll to "poker".
2. Navigate to "Developer Tools" > "Python", and scroll to "poker".

What happens:
1. "poker2D"/"Multiplayer online poker" is in the "Card Games" section.
2. "poker2D"/"Multiplayer online poker" is in the "Python" section.

What should happen:
2. "poker2D"/"Multiplayer online poker" is not in the "Python" section.

This is indirectly because python-poker2d has "Section: python" when it should not. Regardless, it illustrates a bug in Ubuntu Software Center: unless an item uses X-Ubuntu-Category-Secondary, it should appear in only *one* subsection.

Other symptoms of this bug:
* "Pinta Image Editor" is wrongly displayed in "Developer Tools" > "Mono/CLI", despite having "Categories=Graphics;2DGraphics;RasterGraphics;GTK;"
* "Ubuntu One" is wrongly displayed in "Developer Tools" > "Python", despite having "Categories=GNOME;GTK;Settings;DesktopSettings;X-GNOME-Settings-Panel;X-GNOME-PersonalSettings".
* "PyChess" is wrongly displayed in "Developer Tools" > "Python" as well as "Games" > "Board Games".

<https://wiki.ubuntu.com/SoftwareCenter#Genre>: "1. If it has a .desktop file with at least one Category: value that matches one of the subsections listed above, then: 1. Use the first recognizable Category: value to determine the subsection from the table. 2. Determine the department from the subsection’s location in the table. 3. Stop."

Tags: db
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thanks for your report.

That's a problem with the way the indexes are queried:
When querying cardgames the query is:
Xapian::Query((ACcardgame AND <alldocuments>))
We are looking for all records within category 'cardgames'

When querying 'dev tools/python' we are searching records within following the archive sections (in s-c cache and a-x-i index):
Xapian::Query(((XSpython OR AEpython OR XSrestricted/python OR AErestricted/python OR XSuniverse/python OR AEuniverse/python OR XSmultiverse/python OR AEmultiverse/python) AND <alldocuments>))

It appears that poker2D has both:
in s-c cache:
Term List for record #178: 7 AAPoker2D ACcardgame ACgame ACkde AEuniverse/python APpython-poker2d ASuniverse ATapplication XOAlucid XOCuniverse XOLUbuntu XOOUbuntu XOSftp.free.fr ...

in a-x-i db:
Term List for record #12349: 7 XOAlucid XOCuniverse XOLUbuntu XOOUbuntu XOSftp.free.fr XPpython-poker2d XSuniverse/python ...

what we want here is something like 'all records in a given section and not in another category than the current category'.

setting to triage/medium since it doesn't follow the specs but feel free to change importance.

Changed in software-center (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
description: updated
summary: - Item appears in two subsections without using X-Ubuntu-Category-
- Secondary
+ Item appears in wrong second category/subcategory
description: updated
Kiwinote (kiwinote)
tags: added: db
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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