Skip to content

When a Data Query references a file, the filename should be trimmed to remove spurious spaces #5255

@xmacan

Description

@xmacan

If xml path is correct but contains space at the end, it causes problems:

  • creating graph - Error in Data Query. This could be due to the following: File Permissions, or a missing or improperly formatted Data Query XML file.
  • Data Query Debug Information - Could not find data query XML file at '/usr/local/share/cacti/resource/snmp_queries/rvs_msg8_ilo4_darray_v1.xml '

I know, it is wrong user input but cacti could be little bit user friendly here.

1.2.23/1.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUndesired behaviourconfirmedBug is confirm by dev teamporting requiredRequires porting to developresolvedA fixed issue

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions