It is possible to give all user related arguments in a query on user related bugs

Bug #517476 reported by Markus Korn
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

Steps to reproduce this bug:
 1.) go to https://bugs.edge.launchpad.net/~wgrant/+bugs?advanced=1
 2.) enter "thekorn" in "Assignee", "Reporter", "commenter", "subscriber", and "Project, ... subscriber" fields
 3.) click on "search"

the resulting page is https://bugs.edge.launchpad.net/~wgrant/+bugs?field.assignee=thekorn&field.bug_reporter=thekorn&field.structural_subscriber=thekorn&field.bug_commenter=thekorn&field.subscriber=thekorn

This page shows two bugs which are unrelated to wgrant, because all user related query fields are overwritten.

Revision history for this message
Gavin Panella (allenap) wrote :

I think this a fairly uncommon scenario, but it does show some a design problem in the search approach.

A "correct" way to solve this might be be to make the result an intersection of all the user-related bugs and those discovered from the specific search request. In other words, only search within the set of user-related bugs.

Perhaps a less surprising solution would be to show an error if all the user-related query fields are specified as users other than the context.

affects: launchpad-registry → malone
Changed in malone:
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Markus Korn (thekorn) wrote :

This is a more common scenario which also returns wrong results:

https://bugs.edge.launchpad.net/~thekorn/+bugs?field.assignee=allenap

This bugs are by no means related to me

Deryck Hodge (deryck)
tags: added: search
Revision history for this message
Gavin Panella (allenap) wrote :

Yes, those results are flat out wrong.

Changed in malone:
importance: Low → Medium
Curtis Hovey (sinzui)
Changed in launchpad:
importance: Medium → Low
Curtis Hovey (sinzui)
description: updated
William Grant (wgrant)
tags: added: bug-search
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.