Search returns wrong results if search string starts/ends with a space

Bug #1467271 reported by Matthew Paul Thomas
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Fix Released
Medium
Bill Filler
address-book-app (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Ubuntu 15.04 r35

1. Enter three contacts into the Contacts app: "Benny", "Henry", and "Prita".
2. Search for "Henry".
3. Search for "Henry " with a space at the end.
4. Search for " Henry" with a space at the beginning.

What happens:
2. Henry is the only result shown.
3. No results are shown.
4. All the contacts *except for* Henry are shown.

What should happen:
2. Henry is the only result shown.
3. Henry is the only result shown.
4. Henry is the only result shown.

Related branches

Changed in address-book-app (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package address-book-app - 0.2+16.10.20160520-0ubuntu1

---------------
address-book-app (0.2+16.10.20160520-0ubuntu1) yakkety; urgency=medium

  [ CI Train Bot ]
  * Resync trunk.

  [ Renato Araujo Oliveira Filho ]
  * Implemented support for middle-name. (LP: #1375933, #1548783)
  * Make sure that click on check box select a contact during the multi-
    selection.
  * Make sure that the contact list scroll to correct contact on dual
    panel mode.
  * Trim search term before query. (LP: #1467271)
  * Update most called model to use new history API. Avoid scroll back
    contact list after load it. (LP: #1488063)

 -- Renato Araujo Oliveira Filho <email address hidden> Fri, 20 May 2016 14:23:10 +0000

Changed in address-book-app (Ubuntu):
status: Confirmed → Fix Released
Changed in canonical-devices-system-image:
status: New → Fix Committed
importance: Undecided → Medium
milestone: none → 12
assignee: nobody → Bill Filler (bfiller)
Changed in canonical-devices-system-image:
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.