Project

General

Profile

Actions

Bug #25017

closed

Searching by user with ~ is not properly handled.

Added by Adam Ruzicka over 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1631812

Description of problem:

While testing bz 1468388 i noticed that the ~ operator is not handled properly

Version-Release number of selected component (if applicable):

How reproducible: Always

Steps to Reproduce:
1. Create multiple users (eng-user1, eng-user2, bob, sam)
2. Perform some tasks with each of the users.
3. Monitor -> Tasks.
4. Search user ~ eng

Actual results:
Empty search results

Expected results:
Tasks run by users with "eng" anywhere in their user name are returned. See docs [1] "... If no wildcard is specified, the string is treated as if surrounded by wildcards: rhel7"

Additional info:
The workaround here is to add wildcards to the search like:
user ~ eng-*

This could be an issue for customer who use usernames that contain other information they wish to search on, other then a literal username. For example all service accounts may be prefixed by "serv-servname-".

Actions #1

Updated by The Foreman Bot over 5 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Adam Ruzicka
  • Pull request https://github.com/theforeman/foreman-tasks/pull/363 added
Actions #2

Updated by The Foreman Bot over 4 years ago

  • Fixed in Releases foreman-tasks-0.17.1 added
Actions #3

Updated by Marek Hulán over 4 years ago

  • Subject changed from Searching by user with ~ is not properly handled. to Searching by user with ~ is not properly handled.
  • Fixed in Releases foreman-tasks-0.16.2 added
Actions #4

Updated by Anonymous over 4 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF