Skip to content

Unexpected errors when filtering Data Sources with invalid 'rows' value #2518

Closed
@DavidLiedke

Description

@DavidLiedke

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Presets --> Data Profiles
  2. Choose one Profile
  3. Add / Edit one Data Source Profile RRAs
  4. Type letters instead of numbers in the "Rows" line

Expected behavior
(/data_source_profiles.php[57]:get_filter_request_var(),
/lib/html_utility.php[459]:die_html_input_error(),
/lib/html_validate.php[64]:cacti_debug_backtrace())

(/data_source_profiles.php[74]:get_size(), /data_source_profiles.php[720]:get_filter_request_var(),
/lib/html_utility.php[459]:die_html_input_error(),
/lib/html_validate.php[64]:cacti_debug_backtrace())

Cacti.log:

2019/03/14 09:04:36 - CMDPHP PHP ERROR WARNING Backtrace: (/data_source_profiles.php[67]:CactiErrorHandler())
2019/03/14 09:04:36 - ERROR PHP WARNING: A non-numeric value encountered in file: /srv/www/cacti/data_source_profiles.php on line: 67
2019/03/14 09:04:36 - CMDPHP PHP ERROR WARNING Backtrace: (/data_source_profiles.php[74]:get_size(), /data_source_profiles.php[722]:CactiErrorHandler())
2019/03/14 09:04:36 - ERROR PHP WARNING: A non-numeric value encountered in file: /srv/www/cacti/data_source_profiles.php on line: 722

Screenshots
2019-03-14_09-01-21

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