Open blippercop opened 2 years ago
Reference: https://github.com/pluginsGLPI/ocsinventoryng/issues/262 Still open issue.
PHP Notice: Undefined index: DISABLED in /var/www/helpdesk/plugins/ocsinventoryng/inc/bitlockerstatus.class.php on line 91 PHP Notice: Undefined index: id in /var/www/helpdesk/plugins/ocsinventoryng/inc/bitlockerstatus.class.php on line 99 .PHP Notice: Undefined index: id in /var/www/helpdesk/plugins/ocsinventoryng/inc/bitlockerstatus.class.php on line 78 PHP Notice: Undefined index: ENABLED in /var/www/helpdesk/plugins/ocsinventoryng/inc/bitlockerstatus.class.php on line 91 PHP Notice: Undefined index: id in /var/www/helpdesk/plugins/ocsinventoryng/inc/bitlockerstatus.class.php on line 99 .PHP Notice: Undefined index: id in /var/www/helpdesk/plugins/ocsinventoryng/inc/bitlockerstatus.class.php on line 78 PHP Notice: Undefined index: ENABLED in /var/www/helpdesk/plugins/ocsinventoryng/inc/bitlockerstatus.class.php on line 91 PHP Notice: Undefined index: id in /var/www/helpdesk/plugins/ocsinventoryng/inc/bitlockerstatus.class.php on line 99 .PHP Notice: Undefined index: id in /var/www/helpdesk/plugins/ocsinventoryng/inc/bitlockerstatus.class.php on line 78 PHP Notice: Undefined index: ENABLED in /var/www/helpdesk/plugins/ocsinventoryng/inc/bitlockerstatus.class.php on line 91 PHP Notice: Undefined index: id in /var/www/helpdesk/plugins/ocsinventoryng/inc/bitlockerstatus.class.php on line 99 PHP Notice: Undefined index: id in /var/www/helpdesk/plugins/ocsinventoryng/inc/bitlockerstatus.class.php on line 78 ..PHP Notice: Undefined index: id in /var/www/helpdesk/plugins/ocsinventoryng/inc/bitlockerstatus.class.php on line 78 PHP Notice: Undefined index: ENABLED in /var/www/helpdesk/plugins/ocsinventoryng/inc/bitlockerstatus.class.php on line 91 PHP Notice: Undefined index: id in /var/www/helpdesk/plugins/ocsinventoryng/inc/bitlockerstatus.class.php on line 99 .PHP Notice: Undefined index: id in /var/www/helpdesk/plugins/ocsinventoryng/inc/bitlockerstatus.class.php on line 78 PHP Notice: Undefined index: id in /var/www/helpdesk/plugins/ocsinventoryng/inc/bitlockerstatus.class.php on line 78 PHP Notice: Undefined index: DISABLED in /var/www/helpdesk/plugins/ocsinventoryng/inc/bitlockerstatus.class.php on line 91 PHP Notice: Undefined index: id in /var/www/helpdesk/plugins/ocsinventoryng/inc/bitlockerstatus.class.php on line 99
...csinventoryng/inc/bitlockerstatus.class.php:107 CommonDBTM->add() -> static function updateBitlocker($computers_id, $ocsBitlockerStatus, $disk, $cfg_ocs, $force = 0) { --> this function gets a $disk object like this: ---> HOWEVER in the disk.class.php you can find this line: $inputBitlockers["item_disks_id"] = $disk['id']; ----> there is no $disk['id'] when the issue occurs -----> so the $disk['id'] is only set under the condition from it IF block but if the IF is not executed there will be no $disk['id'] but it will still be handed to bitlocker update function
// Update on type, total size change or variation of 5%
if ($d->fields['totalsize'] != $disk['totalsize']
|| ($d->fields['filesystems_id'] != $disk['filesystems_id'])
|| ((abs($disk['freesize'] - $d->fields['freesize']) / $disk['totalsize']) > 0.05)
) {
$toupdate['id'] = $id;
$toupdate['totalsize'] = $disk['totalsize'];
$toupdate['freesize'] = $disk['freesize'];
$toupdate['filesystems_id'] = $disk['filesystems_id'];
$d->update($toupdate, $install_history);
$disk['id'] = $id;
}
Dear GLPi user.
For bug reports, you can open an issue here, provide us :