Closed rafaelse closed 1 month ago
Digging a little deeper in the code, we found out that this issues was caused by manually deleting quite high amount of unmanaged devices from the database, which were inserted by our weekly running inventory tasks.
So, the solution we came up with was deleting all network port connections that involved the deleted unmanaged devices:
DELETE FROM glpi_networkports_networkports AS con WHERE networkports_id_2 IN
(SELECT port.id FROM glpi_networkports AS port WHERE port.itemtype = 'Unmanaged' AND NOT EXISTS
(SELECT unm.id FROM glpi_unmanageds AS unm WHERE unm.id = port.items_id));
Now, all the ports are being displayed normally for all the users.
Next time, we delete unmanaged devices only through the UI.
Code of Conduct
Is there an existing issue for this?
Version
10.0.16
Bug description
We noticed that network ports aren't being displayed on inventoried equipments like printers, for example. However, some users report having no problems seeing those ports. We tried viewing the ports under similar circumstances (permissions and entity) as those who managed to access them, but no luck. Even as super-admin, they won't get displayed. It's come to our attention that this issue has been happening for a while, through several GLPI versions.
Please, see the images below which illustrate the case described.
Also, notice that the an non displayed port is still accessible via its URL.
Relevant log output
Page URL
front/printer.form.php?id=158
Steps To reproduce
No response
Your GLPI setup information
Information about system installation and configuration
Server
GLPI constants
Libraries
SQL replicas
Plugins list
Anything else?
No response