Closed lexcyr closed 9 months ago
Please provide an inventory file to reproduce from a fresh GLPI install.
Please provide an inventory file to reproduce from a fresh GLPI install. do you mean the json file i can extfact from the glpi asset page ?
Yes
here :
Here we go: computer_0_302 (1).json
I do not have any encoding issue using provided file.
Same for me
Can you retry by deeteing related software "Aperçu de code-barres Windows"
and re-run inventory
i've completely delated the related software "Aperçu de code-barres Windows" and re-run the inventory on 4 computers. In one of them it was fixed, and for the reste it came back once more with the incorrect character. This issue seems to be really random, and i was thinking about something in the client computer, but after comparing the json file, i wasn't able to find a real difference.
What can cause the server to interpret the same information differently ?
Maybe another software
For "the reste it came back once more with the incorrect character"
Can you post here related inventory file ?
I still do not reproduce with any of those files; I have no idea what can goes wrong on your side. This can be related to a rule, or a server configuration, or maybe an agent configuration.
Try if you can reproduce on a blank GLPI nightly installation (with no rules, no plugin).
same issue here with a 10.0.10 / agent 1.5 (not a fresh install).
I've tried to delete the software and rerun an inventory, the soft keep being created with artifacts.
I have to anonymise my inventory file before uploading it here. I'll also try to have a look into the database and do more digging.
Can you execute this SQL query and past here the result?
SHOW CREATE TABLE glpi_softwares;
SELECT DEFAULT_CHARACTER_SET_NAME, DEFAULT_COLLATION_NAME FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME = '10bugfixes';
Here are my results
MariaDB [10bugfixes]> SHOW CREATE TABLE glpi_softwares;
+----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Table | Create Table |
+----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| glpi_softwares | CREATE TABLE `glpi_softwares` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`entities_id` int(10) unsigned NOT NULL DEFAULT 0,
`is_recursive` tinyint(4) NOT NULL DEFAULT 0,
`name` varchar(255) DEFAULT NULL,
`comment` text DEFAULT NULL,
`locations_id` int(10) unsigned NOT NULL DEFAULT 0,
`users_id_tech` int(10) unsigned NOT NULL DEFAULT 0,
`groups_id_tech` int(10) unsigned NOT NULL DEFAULT 0,
`is_update` tinyint(4) NOT NULL DEFAULT 0,
`softwares_id` int(10) unsigned NOT NULL DEFAULT 0,
`manufacturers_id` int(10) unsigned NOT NULL DEFAULT 0,
`is_deleted` tinyint(4) NOT NULL DEFAULT 0,
`is_template` tinyint(4) NOT NULL DEFAULT 0,
`template_name` varchar(255) DEFAULT NULL,
`date_mod` timestamp NULL DEFAULT NULL,
`users_id` int(10) unsigned NOT NULL DEFAULT 0,
`groups_id` int(10) unsigned NOT NULL DEFAULT 0,
`ticket_tco` decimal(20,4) DEFAULT 0.0000,
`is_helpdesk_visible` tinyint(4) NOT NULL DEFAULT 1,
`softwarecategories_id` int(10) unsigned NOT NULL DEFAULT 0,
`is_valid` tinyint(4) NOT NULL DEFAULT 1,
`date_creation` timestamp NULL DEFAULT NULL,
`pictures` text DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `date_mod` (`date_mod`),
KEY `name` (`name`),
KEY `is_template` (`is_template`),
KEY `is_update` (`is_update`),
KEY `softwarecategories_id` (`softwarecategories_id`),
KEY `entities_id` (`entities_id`),
KEY `is_recursive` (`is_recursive`),
KEY `manufacturers_id` (`manufacturers_id`),
KEY `groups_id` (`groups_id`),
KEY `users_id` (`users_id`),
KEY `locations_id` (`locations_id`),
KEY `users_id_tech` (`users_id_tech`),
KEY `softwares_id` (`softwares_id`),
KEY `is_deleted` (`is_deleted`),
KEY `is_helpdesk_visible` (`is_helpdesk_visible`),
KEY `groups_id_tech` (`groups_id_tech`),
KEY `date_creation` (`date_creation`)
) ENGINE=InnoDB AUTO_INCREMENT=2849 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC |
+----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0,000 sec)
MariaDB [10bugfixes]> SELECT DEFAULT_CHARACTER_SET_NAME, DEFAULT_COLLATION_NAME FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME = '10bugfixes';
+----------------------------+------------------------+
| DEFAULT_CHARACTER_SET_NAME | DEFAULT_COLLATION_NAME |
+----------------------------+------------------------+
| utf8mb4 | utf8mb4_general_ci |
+----------------------------+------------------------+
1 row in set (0,001 sec)
here is :
mysql> SHOW CREATE TABLE glpi_softwares;
+----------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Table | Create Table |
+----------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| glpi_softwares | CREATE TABLE `glpi_softwares` (
`id` int unsigned NOT NULL AUTO_INCREMENT,
`entities_id` int unsigned NOT NULL DEFAULT '0',
`is_recursive` tinyint NOT NULL DEFAULT '0',
`name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`comment` text COLLATE utf8mb4_unicode_ci,
`locations_id` int unsigned NOT NULL DEFAULT '0',
`users_id_tech` int unsigned NOT NULL DEFAULT '0',
`groups_id_tech` int unsigned NOT NULL DEFAULT '0',
`is_update` tinyint NOT NULL DEFAULT '0',
`softwares_id` int unsigned NOT NULL DEFAULT '0',
`manufacturers_id` int unsigned NOT NULL DEFAULT '0',
`is_deleted` tinyint NOT NULL DEFAULT '0',
`is_template` tinyint NOT NULL DEFAULT '0',
`template_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`date_mod` timestamp NULL DEFAULT NULL,
`users_id` int unsigned NOT NULL DEFAULT '0',
`groups_id` int unsigned NOT NULL DEFAULT '0',
`ticket_tco` decimal(20,4) DEFAULT '0.0000',
`is_helpdesk_visible` tinyint NOT NULL DEFAULT '1',
`softwarecategories_id` int unsigned NOT NULL DEFAULT '0',
`is_valid` tinyint NOT NULL DEFAULT '1',
`date_creation` timestamp NULL DEFAULT NULL,
`pictures` text COLLATE utf8mb4_unicode_ci,
PRIMARY KEY (`id`),
KEY `date_mod` (`date_mod`),
KEY `name` (`name`),
KEY `is_template` (`is_template`),
KEY `is_update` (`is_update`),
KEY `softwarecategories_id` (`softwarecategories_id`),
KEY `entities_id` (`entities_id`),
KEY `is_recursive` (`is_recursive`),
KEY `manufacturers_id` (`manufacturers_id`),
KEY `groups_id` (`groups_id`),
KEY `users_id` (`users_id`),
KEY `locations_id` (`locations_id`),
KEY `users_id_tech` (`users_id_tech`),
KEY `softwares_id` (`softwares_id`),
KEY `is_deleted` (`is_deleted`),
KEY `is_helpdesk_visible` (`is_helpdesk_visible`),
KEY `groups_id_tech` (`groups_id_tech`),
KEY `date_creation` (`date_creation`)
) ENGINE=InnoDB AUTO_INCREMENT=28444 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC |
+----------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)
mysql> SELECT DEFAULT_CHARACTER_SET_NAME, DEFAULT_COLLATION_NAME FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME = 'glpi';
+----------------------------+------------------------+
| DEFAULT_CHARACTER_SET_NAME | DEFAULT_COLLATION_NAME |
+----------------------------+------------------------+
| utf8mb4 | utf8mb4_0900_ai_ci |
+----------------------------+------------------------+
1 row in set (0.00 sec)
I do not have the same DEFAULT_COLLATION_NAME
I'm on mysql 8.0.x
Maybe its the Root cause, Can you fix on a test envirronment and retry ?
on my side i have more differences:
MariaDB [glpidb]> SHOW CREATE TABLE glpi_softwares;
+----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Table | Create Table |
+----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| glpi_softwares | CREATE TABLE `glpi_softwares` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`entities_id` int(10) unsigned NOT NULL DEFAULT 0,
`is_recursive` tinyint(4) NOT NULL DEFAULT 0,
`name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`comment` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`locations_id` int(10) unsigned NOT NULL DEFAULT 0,
`users_id_tech` int(10) unsigned NOT NULL DEFAULT 0,
`groups_id_tech` int(10) unsigned NOT NULL DEFAULT 0,
`is_update` tinyint(4) NOT NULL DEFAULT 0,
`softwares_id` int(10) unsigned NOT NULL DEFAULT 0,
`manufacturers_id` int(10) unsigned NOT NULL DEFAULT 0,
`is_deleted` tinyint(4) NOT NULL DEFAULT 0,
`is_template` tinyint(4) NOT NULL DEFAULT 0,
`template_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`date_mod` timestamp NULL DEFAULT NULL,
`users_id` int(10) unsigned NOT NULL DEFAULT 0,
`groups_id` int(10) unsigned NOT NULL DEFAULT 0,
`ticket_tco` decimal(20,4) DEFAULT 0.0000,
`is_helpdesk_visible` tinyint(4) NOT NULL DEFAULT 1,
`softwarecategories_id` int(10) unsigned NOT NULL DEFAULT 0,
`is_valid` tinyint(4) NOT NULL DEFAULT 1,
`date_creation` timestamp NULL DEFAULT NULL,
`pictures` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `date_mod` (`date_mod`),
KEY `name` (`name`),
KEY `is_template` (`is_template`),
KEY `is_update` (`is_update`),
KEY `softwarecategories_id` (`softwarecategories_id`),
KEY `entities_id` (`entities_id`),
KEY `is_recursive` (`is_recursive`),
KEY `manufacturers_id` (`manufacturers_id`),
KEY `groups_id` (`groups_id`),
KEY `users_id` (`users_id`),
KEY `locations_id` (`locations_id`),
KEY `users_id_tech` (`users_id_tech`),
KEY `softwares_id` (`softwares_id`),
KEY `is_deleted` (`is_deleted`),
KEY `is_helpdesk_visible` (`is_helpdesk_visible`),
KEY `groups_id_tech` (`groups_id_tech`),
KEY `date_creation` (`date_creation`)
) ENGINE=InnoDB AUTO_INCREMENT=9659 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC |
+----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.000 sec)
MariaDB [glpidb]> SELECT DEFAULT_CHARACTER_SET_NAME, DEFAULT_COLLATION_NAME FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME = '10bugfixes';
Empty set (0.000 sec)
Unfortunately i am complete dummy with db, but i can see there is this encoding utf8mb4_unicode_ci
coming here while i can't see it on your result and no DEFAULT_CHARACTER_SET_NAME
and DEFAULT_CHARACTER_SET_NAME
@lexcyr
for the last query you need to adapt SCHEMA_NAME
value, on my side, glpi database is named "10bugfixes", check your config_db.php
file to get your database name
So i have a complete different result :)
MariaDB [glpidb]> SELECT DEFAULT_CHARACTER_SET_NAME, DEFAULT_COLLATION_NAME FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME = 'glpidb';
+----------------------------+------------------------+
| DEFAULT_CHARACTER_SET_NAME | DEFAULT_COLLATION_NAME |
+----------------------------+------------------------+
| utf8 | utf8_bin |
+----------------------------+------------------------+
1 row in set (0.000 sec)
Unfortunately i am complete dummy with db
Like anyone who isn't a DBA ^^
@lexcyr @keguira
can you past here your config_db.php
file (without password field =) )
here is mine
<?php
class DB extends DBmysql {
public $dbhost = 'localhost';
public $dbuser = 'xxxxx';
public $dbpassword = 'xxxxxx';
public $dbdefault = '10bugfixes';
public $use_timezones = true;
public $use_utf8mb4 = true; //what interests me
public $allow_myisam = false;
public $allow_datetime = false;
public $allow_signed_keys = false;
}
I've tried to reproduce the issue on my test instance. I could not reproduce the error by testing an inventory file. It made me do another test on my production and what I see is that the issue does not happen when you upload manually an inventory file, it's only when the inventory is done by the usual process.
With a forced inventory :
By reuploading the new inventory file just after :
If the process to record into the database is the same in both use-case, it means that the issue is during the decoding process
Can you retry on GLPI fresh install? (to exclude database encoding)
I'll try, it does not occur with all computer (i forgot to mention that) so i have to borrow a computer.
Note on computer it's not working properly : it's the same windows version, same agent version and installation
From manual import or with glpi-injector
(To simulate sending the file as the agent does)
i do not reproduce on my side
Unfortunately i am complete dummy with db
Like anyone who isn't a DBA ^^
@lexcyr @keguira
can you past here your
config_db.php
file (without password field =) )
here we go
<?php
class DB extends DBmysql {
public $dbhost = '127.0.0.1';
public $dbuser = 'xxxx';
public $dbpassword = 'xxxxx';
public $dbdefault = 'glpidb';
public $use_utf8mb4 = true;
public $allow_myisam = false;
public $allow_datetime = false;
public $allow_signed_keys = false;
}
This looks like a web server encoding issue. Do you hit directly web server hosting GLPI instance, or do you use a proxy or something similar?
from my side i hit directely the webserver hosting GLPI, even if some of the client are behind a VPN
from my side i hit directely the webserver hosting GLPI, even if some of the client are behind a VPN
I have the same architecture.
If i can add information, I've found a computer with this behavior :
Here is a composition of screenshots for one software :
I'm currently trying to reproduce the behavior by requesting inventories
@keguira can you post here json
inventory result (from agent) ?
(not inventory file downloadable from GLPI)
@keguira to generate a json, you must open an administrative console on the system, change your directory to the glpi-agent installation folder and run the following command:
glpi-agent --config=none --logger=stderr --debug --json --local=. --force
This will generate the original json final in the installation folder.
You can also share the command run output if this can help.
Yes, I have to reach the user (or another one with this beavior) and anonymise the result. I'll try to get it by the end of the week.
Make sure you do not change file encoding when editing...
Make sure you do not change file encoding when editing...
yes of course
Also,@lexcyr , do you see this bug also in other fields / objects ? I have the issue at random in manufacturer names, software names and operating system names.
@keguira have you tried on a new fresh isntall
for recall, the DEFAULT_COLLATION_NAME of your DB could be at fault
I'm not an expert
+----------------------------+------------------------+ | DEFAULT_CHARACTER_SET_NAME | DEFAULT_COLLATION_NAME | +----------------------------+------------------------+ | utf8mb4 | utf8mb4_0900_ai_ci | +----------------------------+------------------------+
Also,@lexcyr , do you see this bug also in other fields / objects ? I have the issue at random in manufacturer names, software names and operating system names.
I have it only on Manufacturer and Software names, for the moment.
add a reaction after you retrieve the file, i'll remove it after
If i can add information, I've found a computer with this behavior :
- Day A : auto-inventory -> remove all software with special character and add with artifact characters
- Day B : auto-inventory -> remove all software with artifact character and add with special characters
- Day C : auto-inventory -> remove all software with special character and add with artifact characters
- Day D : auto-inventory -> remove all software with artifact character and add with special characters ...
Another context info : our cleansoftware task was launched daily. such as the soft is recreated in base. I changed it to mountly to see if things are sorted out automatically. It may be comming from the process of "check if exists". If I recall correctly, there as been encoding cleaning not so long ago
@keguira have you tried on a new fresh isntall
for recall, the DEFAULT_COLLATION_NAME of your DB could be at fault
I'm not an expert
+----------------------------+------------------------+ | DEFAULT_CHARACTER_SET_NAME | DEFAULT_COLLATION_NAME | +----------------------------+------------------------+ | utf8mb4 | utf8mb4_0900_ai_ci | +----------------------------+------------------------+
will be done by the end of the week
add a reaction after you retrieve the file, i'll remove it after
FX052-092.example.org-2022-11-25-09-15-40.json.zip
I checked before modification, the file was and is still, UTF-8 without BOM
I confirm the inventory is well-form and the issue should be server-side... somewhere ^^
Ok, i'm not that crazy, i'll try with a spare to reproduce the issue and add some debug in php or ... i don't know.
For the record, in the past, i saw that chineese characters were not displaye / recorded correctly (only square characters). As I was on other issues in our system, I did not look into it. It's only recently (in the past 3~4 months) that I saw correctly the chinese characters (no modification in the dattabase conf, only glpi upgrades). I cannot give more info about history as we keep only the last 6 month and we did a cleanup as it was crippled due to a now corrected bugs
I use some dictionnary rules but not for operating systems right now. We have to build them with the users next trimesters so it does not seems to come from this process. Or not ? I don't know.
@g-bougard could you remove the link from the quote and remove history from the comment ? Even if it was anonymized ... privacy, corporate, security, etc ...
@keguira I fixed the quote.
I noticed you're using php-fpm in the system report: PHP 8.2.10 fpm-fcgi
Can you try with another configuration not using fpm-fcgi ? Like Apache+mod_php ?
Initial bug was not from me so it's not my server config on report. In our compagny, we use PHP 8.1.x with nginx. But yes, it's still PHP fpm-cgi.
It's something usually recommended isn't it ? I missed something ?
I could try an alternative BUT i do not reproduce the bug on test environnent (and i cannot change prod config right now), it's pretty random and not on all computer such i would have to "hunt" users. I can try to add this to our backlog but i'm not confident in this...
Nothing is recommended since that should not really change anything. We already had cases that some configurations were not working as expected; but that was probably related to an underlying configuration.
We do not reproduce; until we're able to get a reproducible use case, there is nothgin we can do. In some past versions, we've identified issues related to encoding or not displayed characters, all cases have been resolved an added to our tests suite. All we can do right now is give possible causes. I use only apache, everything should work the same on nginx... Unless you have a load balancer on your entry point, or use a third party software like a vpn or something similar between agent and glpi instance, I do not have any further idea.
Since you do not reproduce on your own test environment, it seems there is something different with your prod; maybe finding the difference may help to reproduce and fix.
@lexcyr may also take a deeper look on all that, since he has the same issue.
Yes yes, of course. I'm a dev myself and know that we have to be able to reproduce to fix. That's why i'm trying to have a use-case i can manage myself without relying on another user. As our users are on windows I cannot easily change the destination server unless i apply a trick on our production to redirect on our test and it may temper the test. Tomorrow, i'll delete all software with artifact and see what happens. Next week, if there are new "artifacted" ones, i'll delete their counterparts to see what happens. If I identify something, I'll keep you all informed
There has been no activity on this issue for some time and therefore it is considered stale and will be closed automatically in 10 days.
If this issue is related to a bug, please try to reproduce on latest release. If the problem persist, feel free to add a comment to revive this issue. If it is related to a new feature, please open a topic to discuss with community about this enhancement on suggestion website.
You may also consider taking a subscription to get professionnal support or contact GLPI editor team directly.
Code of Conduct
Is there an existing issue for this?
Version
10.0.10
Bug description
After inventory, the same software shows with correct characters on one device and with wrong character to another. e.g: Aperçu de code-barres Windows Device1
Device2
When i check the import json file the software name is :
We have the same information in the json of both devices.
Why the encoding works on one and not to the second one. I have the problème on the Device 1 on all software with special characters.
Relevant log output
No response
Page URL
No response
Steps To reproduce
The issue is random on differents devices.
Your GLPI setup information
Information about system installation and configuration
Server
GLPI constants
Libraries
LDAP directories
SQL replicas
Notifications
Plugins list
Anything else?
GLPI-Agent_v1.5