Skip to content

When editing Maximum OIDs Per Get Request, blank value can cause errors #3643

@interduo

Description

@interduo

Describe the bug

2020/06/29 13:20:57 - CMDPHP PHP ERROR WARNING Backtrace: (/host.php[137]:api_device_ping_device(), /lib/api_device.php[1045]:cacti_snmp_session(), /lib/snmp.php[86]:CactiErrorHandler())
--
2020/06/29 13:20:57 - ERROR PHP WARNING: cacti_snmp_session(): max_oids should be positive integer or NULL, got 0 in file: /var/www/html/cacti/lib/snmp.php on line: 86

To Reproduce

  1. Edit any Device.
  2. Delete value from: "Maximum OIDs Per Get Request" - leave field empty
  3. Submit form.

Expected behavior

No error :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    resolvedA fixed issueunverifiedSome days we don't have a clue

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions