Skip to content

Parameter list for lib/database.php:db_connect_real() is not correct in 3 places #4423

@ctrowat

Description

@ctrowat

Describe the bug

/pollers.php:test_database_connection()
/lib/poller.php:poller_connect_to_remote()
/cactid.php:db_check_reconnect()

All do not have the correct parameter list when they call /lib/database.php:db_connect_real()
The change where SSL parameters were added to the function signature was not properly reflected in these call sites. This causes issues configuring remote pollers that use SSL for their database connections.

Call sites are here:
https://github.com/Cacti/cacti/blob/1.2.x/pollers.php#L766
https://github.com/Cacti/cacti/blob/1.2.x/lib/poller.php#L1132
https://github.com/Cacti/cacti/blob/1.2.x/cactid.php#L263

The first 2 call sites simply need the retries parameter slotted in, but the final one seems to predate the addition of the extra SSL parameters and that might be harder to fix.

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