I don't find how to configure the plugin
Closed this issue · 8 comments
Describe the bug
See title
System Specifications (please complete the following information):
- GLPI Server OS: Debian 10
- Browser Chrome
- Plugin version 1.0.0
Additional context
I installed the plugin by cloning the git repo in the /plugins/ folder of GLPI. It appeared in the plugin menu, I installed and activated it.
Now, I guess I neet to tell him where to find the cve server but I don't see any config page :-/
The "Plugin > CVEs" page is blank.
Thanks for your work, Curtis :-)
Damn, I must be tired... Thanks a lot :)
Found them.
I added the CVE Search URL in the general > CVE tab but the CVEs page is still blank :-(
I tested from the GLPI server itself and made a curl on the URL, it works (so the network connectivity between GLPI and CVE is OK).
Still white page :-(
Any suggestion ?
Thanks !
Indeed, sorry for my bad troubleshooting skills.
Here is the php-error log content :
[2021-05-04 15:34:01] glpiphplog.CRITICAL: *** Uncaught Exception TypeError: Argument 2 passed to PluginCveApi::getCVEByVendorAndProduct() must be of the type string, null given, called in /data/www/html/glpi_j-1/plugins/cve/inc/cve.class.php on line 239 in /data/www/html/glpi_j-1/plugins/cve/inc/api.class.php at line 236
Backtrace :
plugins/cve/inc/cve.class.php:239 PluginCveApi::getCVEByVendorAndProduct()
plugins/cve/front/cve.php:27 PluginCveCve::showCVEs()
😕 I just tested the plugin and it was working properly for me. The error shown indicates one or more of your software items may have a missing name.
You can try adding the following:
if (empty($data['product'])) {
continue;
}
after the empty check for the vendor in plugins/cve/inc/cve.class.php on line 239. This will just skip over those invalid software items.
thanks for your answer.
Indeed, it works better :-)
I still have some errors about some software name (the one that contains some accent characters) but it is not important right now.
I will explore all this.
Thanks !
Since you were able to configure the plugin and get it working at least as much as to be expected since it is an incomplete plugin, I'll go ahead and close this issue.