Application scope not behaving when searching for " " with filters

Bug #1161337 reported by Nick Dedekind
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Unity
Invalid
Medium
Michal Hruby
unity-lens-applications (Ubuntu)
Fix Committed
Undecided
Unassigned

Bug Description

1) Open app scope and empty search string
2) Type " " into search bar (space)
     You should have results
3) Enable a type filter (eg Education)
     All results disapear!
4) clear the search
     Some results, but not what we started with.

Tags: 100scopes

Related branches

tags: added: 100scopes
Revision history for this message
Brandon Schaefer (brandontschaefer) wrote :

My guess is whitespace is removed when tokenizing the search string. So changing the filter sends an empty string through (just a guess though...)

Revision history for this message
Sami Jaktholm (sjakthol) wrote :

The problem seems to be that a search triggered by queue_search_changed sends the whitespace only string as search term but normally Unity doesn't send whitespace only searches to scopes.

To make matters worse, app-lens doesn't consider whitespace only search as empty (in Utils.is_search_empty) and an invalid query string is generated (and the search fails):
WARNING **: Error parsing query 'type:Application AND ((category:Accessibility AND NOT category:Settings)) AND ': Syntax: <expression> AND <expression>

Changed in unity:
importance: Undecided → High
Changed in unity:
importance: High → Medium
status: New → Confirmed
Michal Hruby (mhr3)
Changed in unity:
assignee: nobody → Michal Hruby (mhr3)
status: Confirmed → In Progress
Michal Hruby (mhr3)
Changed in unity:
status: In Progress → Fix Committed
Revision history for this message
Stephen M. Webb (bregma) wrote :

Bug affects only the unity-lens-applications project, not the Unity project.

Changed in unity-lens-applications (Ubuntu):
status: New → Fix Committed
Changed in unity:
status: Fix Committed → Invalid
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.