View Issue Details

IDProjectCategoryView StatusLast Update
2033RackTablesdefaultpublic2021-07-23 13:30
Reporternetniv Assigned To 
PrioritynormalSeveritycrashReproducibilityhave not tried
Status acknowledgedResolutionopen 
Summary2033: Plugins can disable error reporting leading to false negatives
DescriptionWhilst investigating an issue with LDAP connectivity for a new system, plugins taken from the older system masked the errors being reported. This is because one of them override the PHP error_reporting value and set it to fatal only. This meant warnings and notices went undisplayed and caused a login loop. Later after resolving part of the issue, other errors which had been occurring for some time suddenly became visible highlighting other problems which had not been noticed in the current system as the plugin which disabled the error reporting did not have a problem but another one did which needed to be resolved.
Steps To ReproduceHave a plugin call error_reporting at the start of its code block.
Additional InformationThe error reporting value should be saved prior to calling a plugin function and then restored if modified to ensure consistency. That way, one plugin cannot affect another.
TagsNo tags attached.




2021-07-23 13:30

administrator   ~0004333

Indeed this problem stands as described (see commit c257f95 in racktables-contribs) and the solution you have proposed would reduce it. Do you feel confident preparing this change in a way that works for all users?

Issue History

Date Modified Username Field Change
2021-07-09 22:09 netniv New Issue
2021-07-23 13:30 infrastation Status new => acknowledged
2021-07-23 13:30 infrastation Note Added: 0004333