Skip to content

When search text includes # character, filtering does not always work as expected #4195

Closed

Description

@ikorzha

Cacti->Management->Devices search return blank description, ID & hostname if device name contain # character .

Using the Cacti version 1.2.17 (patched), with an updated monitor plugin 2.5 (development branch).
Broswer Crome incognito mode for testing.
This is a an extension to original bug #4192 that TheWitness has successfully patched yesterday..

Please see an updated behavior below:
cacti-search-bug

Activity

  1. added
    bugUndesired behaviour
    unverifiedSome days we don't have a clue
    on Mar 23, 2021
  2. changed the title [-]Cacti->Management->Devices search return blank description, ID & hostname if device name contain # character[/-] [+]filter_value() function does not work as expected when search includes # character[/+] on Mar 23, 2021
  3. added this to the v1.2.17 milestone on Mar 23, 2021
  4. added a commit that references this issue on Mar 23, 2021
  5. TheWitness commented on Mar 23, 2021

    @TheWitness
    Member

    The # character had a special use in the preg_match. All fixed up now.

  6. ikorzha commented on Mar 24, 2021

    @ikorzha
    Author

    My apologies, I have tested a patched lib/functions.php and still getting an identical behavior to reported, is there a way you can test it yourself for validation?
    image

  7. TheWitness commented on Mar 24, 2021

    @TheWitness
    Member

    Works here:

    image

  8. ikorzha commented on Mar 24, 2021

    @ikorzha
    Author

    maybe because I pulled lib/functions.php into my 1.2.16 I do not to try to upgrade to development version.
    If it works for you close it at this point..
    Tried to upgrade to development version but installation has failed :( will wait until 1.2.17 officially released at this point

  9. changed the title [-]filter_value() function does not work as expected when search includes # character[/-] [+]When search text includes # character, filtering does not always work as expected[/+] on Apr 30, 2021
  10. locked and limited conversation to collaborators on Jul 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUndesired behaviourresolvedA fixed issue

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions