Project

General

Profile

Actions

Feature #14420

open

scoped search with single quote gives no results or throws errors.

Added by Brad Buckingham about 8 years ago. Updated about 8 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Search
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1321871
Description of problem:
Searching an entity with single quote (e.g : override = 'true') gives no results or throws error : Oops, we're sorry but something went wrong 'override' should be one of 'true, false', but the query was ''true''

Version-Release number of selected component (if applicable):
Sat 6.2 snap 5.1

How reproducible:
Always

Steps to Reproduce:
1. Navigate to any component to scope search the entity.
2. In scope search bar, attempt to search entity such as key = 'value', where value is in single quote.

Actual results:
No results or error is thrown mentioned in description above.

Expected results:
Scoped search with single quotes should work and should give proper results.

Additional info:

Actions #1

Updated by Dominic Cleal about 8 years ago

  • Category set to Search
  • Tracker changed from Bug to Feature

Quoting is specified in the search documentation as being with double quotes, this is expected behaviour. Single quotes are parsed as part of the the value currently. You should file this in scoped_search, it's not really Foreman.

Actions

Also available in: Atom PDF