← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1564878] [NEW] Whitespace is not omitted in Horizon search query

 

Public bug reported:

When searching for Instances on Horizon, the query returns zero results
if there is a space at the beginning or the end.

Steps to reproduce:
1. Create instance named "test"
2. Go to Project->Compute->Instances or Admin->System Panel->Instances
3. Search for "test"
4. Search for "test " (with space at the end)
5. Search for " test" (with space at the beginning)

Actual Results:
-Searching for "test" will successfully display the desired instance.
-Searching for "test " yields zero results.
-Searching for " test" yields zero results.

Expected Results:
It would be expected for Horizon to filter out whitespace before and after a search query, especially since whitespace is filtered before and after the name field upon instance creation.

** Affects: horizon
     Importance: Undecided
     Assignee: Paul Karikh (pkarikh)
         Status: In Progress

** Changed in: horizon
     Assignee: (unassigned) => Paul Karikh (pkarikh)

** Changed in: horizon
       Status: New => In Progress

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1564878

Title:
  Whitespace is not omitted in Horizon search query

Status in OpenStack Dashboard (Horizon):
  In Progress

Bug description:
  When searching for Instances on Horizon, the query returns zero
  results if there is a space at the beginning or the end.

  Steps to reproduce:
  1. Create instance named "test"
  2. Go to Project->Compute->Instances or Admin->System Panel->Instances
  3. Search for "test"
  4. Search for "test " (with space at the end)
  5. Search for " test" (with space at the beginning)

  Actual Results:
  -Searching for "test" will successfully display the desired instance.
  -Searching for "test " yields zero results.
  -Searching for " test" yields zero results.

  Expected Results:
  It would be expected for Horizon to filter out whitespace before and after a search query, especially since whitespace is filtered before and after the name field upon instance creation.

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1564878/+subscriptions


Follow ups