Closed laszlokertesz closed 7 months ago
By default, the description
property in the inventory data is written to the comments. As of GLPI 10.0.12, you should be able to lock this field to prevent it from being overwritten by inventory data (this only blocks automatic changes. manually changing this field would still work).
Administration > Inventory, click "Add global lock" button along the top of the page.
I looked at that, but there doesn't seem to be an entry for "Computer - Comments", everything else seem to be there.
By default, the
description
property in the inventory data is written to the comments.
But if there was something in the comments, why does it overwrites it. We had all kinds of information there, physical inventory dates, previous users etc. Yes most of these can be obtained but it needs looking into logs etc but we use it for quick information lookup, it can be put directly in the filter lists.
The information placed in the comments are meaningless for us and probably to most users that expect that field to be preserved. Maybe the comments should be preserved and these information added instead of deleting the previous ones?
I looked at that, but there doesn't seem to be an entry for "Computer - Comments", everything else seem to be there.
Hmm i did a html inspection and the entry names "Computer - Location comments has the description of "Computer - comment" in the code. I added that field, let's see what happens.
Maybe the comments should be preserved and these information added instead of deleting the previous ones?
In a normal flow, inventory creates a computer, then you edit the comment. When editing manually, comment field is locked, inventory will not change it again. If comment field is not locked for any reason (for example you create computer manually first and then it's updated from inventory); adding a global lock on comment field is the way to go.
@laszlokertesz - please check https://github.com/glpi-project/glpi/issues/16256 for more background. The bad news here is that whatever you had on the comment fields before probably still exists somewhere in the database, but it's not being shown in the UI: https://github.com/glpi-project/glpi/issues/16257
This issue has been closed as we only track bugs here.
You can get community support on forums or you can consider taking a subscription to get professional support. You can also contact GLPI editor team directly.
Code of Conduct
Is there an existing issue for this?
Version
10.0.12
Bug description
After upgrading to Glpi 10.0.12 (and glpi inventory plugin to 1.3.4) , most of the macs we have had their comments overwritten by the arch of the cpu and a numbr (i assume some id somewhere) lke
The logs show something like this:
Most of the macs had previous comments there. Why is this happening, what is the reason behind this?
Relevant log output
No response
Page URL
No response
Steps To reproduce
We just upgraded the server, most macs that reported after that time got this treatment.
Your GLPI setup information
Information about system installation and configuration
Server
GLPI constants
Libraries
LDAP directories
SQL replicas
Notifications
Plugins list
Anything else?
No response