Bug #25017
closedSearching by user with ~ is not properly handled.
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-".
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
Updated by The Foreman Bot over 4 years ago
- Fixed in Releases foreman-tasks-0.17.1 added
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
Updated by Anonymous over 4 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset c2615b8fe93178c2fabbe26751a4c32085b77624.