Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QA: Porting 1.2.24 Changes back to the Develop Branch #5246

Merged
merged 34 commits into from
Feb 24, 2023
Merged

QA: Porting 1.2.24 Changes back to the Develop Branch #5246

merged 34 commits into from
Feb 24, 2023

Conversation

TheWitness
Copy link
Member

This change includes porting of several 1.2.24 bug fixes to the develop branch. Those fixes include at total of 25 bugs and 28 commits. Issues include:

#5239, #5243, #5232, #5236, #5238, #5190, #5188, #5195, #5196, #5198, #5199, #5200, #5201, #5202, #5203, #5204, #5205, #5208, #5211, #5207, #5214, #5223, #5224, #5227, #5194

Plus two additional minor fixes that did not receive a CHANGELOG entry

Template Export missing Graph Template columns multiple and test_source
* On large systems statistics gathering at the beginning of a poller run lead to excessive polling times
Edit Graph Template link missing base_url
Searching for Poller Items Generates SQL Errors
When using Gradient Support GPRINT Text Format is misaligned
Device Template Filter broken
Spikekill Backtrace Argument #1 ($string) must be passed by reference, value given
Gradient support breaks certain Graphs with special characters in them
PHP Diff Renderer throws warnings
Realtime graph on remote poller not working in 1.2.23
When trying to obtain data, cacti should not log Transport Read errors
Cacti function throws errors when attempting to render classic images in PHP8
Minor issues in modern and dark prevent weathermaps from rendering correctly
When importing packages, Graph Size does not get updated to Graph Templates
Scripts ss_net_snmp_device_io.php and ss_net_snmp_device_bytes.php break when using HMIB plugin and PHP8.1
* When using Diff Viewer, rendering is not always correct under certain themes
* Remove some c3.css files too
Package form objects use the wrong text domain in their i18n strings
Undefined variable $user_id when creating new graph
Compatibility improvements for Installer under PHP 8.x
Basic Auth is timing out and logging users off automatically
Basic Auth is timing out and logging users off automatically
Drop callback function sometimes puts name in the form input instead of the id
When poller runtime is exceeded, time should be display as a rounded number
When debugging a data source, errors may be shown if no RRDfile created yet
CSRF directory needs to be writeable for creating the csrf-secret.php file
"Balance Process Load" dont work after upgrade to 1.2.23
* Rebuilding Poller Cache from Utilities does not respect poller interval due to lack or ordering
* Decrementing of rrd_next_step is flawed
Comment on lines +193 to +205
if (isset($matches[1])) {
$spaces = $matches[1];

if ($spaces != '') {
$count = strlen($spaces);

if ($count == 0) {
return '';
}
} else {
return '';
}
} else {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change should be reported upstream.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did report it upstream and it looks like the maintainer is not merging much.

Issue reported here:

chrisboulton/php-diff#59

Pull request here (unmerged, with interesting feedback).

chrisboulton/php-diff#51

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recommended replacement. Uses namespaces.

https://github.com/jfcherng/php-diff

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Horde is dead too or so it would appear and not issue tracker. So, not a well oiled machine. I suggest we switch to jfcherng in 1.3 and drop the other two.

Copy link
Member

@netniV netniV Feb 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds like a plan as long as it's not too slow

lib/functions.php Outdated Show resolved Hide resolved
Porting two issues identified in testing from the 1.2.x branch

- Force active profiles to > 1 for cases where max_step does not equal the poller interval
- Set the legacy value of poller_lastrun for other uses in Cacti.
@netniV netniV merged commit ca7a352 into Cacti:develop Feb 24, 2023
@github-actions github-actions bot locked and limited conversation to collaborators May 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants