ocsinventory-agent sends a invalid report to the server
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ocsinventory-agent (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: ocsinventory-agent
The pakcage is:
http://
the version:
root@myhost:~# dpkg -l|grep ocsinventory
ii ocsinventory-agent 2:1.1.1-2
The ubuntu version:
root@myhost:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04 LTS
Release: 10.04
Codename: lucid
The apache error log:
root@ocsinvento
[Wed Apr 20 12:21:00 2011] [error] [client 10.227.21.224] :1995: parser error : Input is not proper UTF-8, indicate encoding !\nBytes: 0xF1 0x6F 0x6E 0x20\n <COMMENTS>Ca\xf1on de Red Virtual<
The problem is in the encoding of the client. The "\xf1" char is the letter "ñ", that corresponds with the application "Cañon de Red Virtual"
I try installing the version 1:0.0.9.2repack1 of the package and it works right. The report is sent and the apache server doesn't crash.
Changed in ocsinventory-agent (Ubuntu): | |
status: | New → Confirmed |
Hello all,
here is a dirty workaround (in my case):
edit /usr/share/ perl5/Ocsinvent ory/Agent/ Backend/ OS/Generic/ Packaging/ Deb.pm
replace
'COMMENTS' => $4,
with
'COMMENTS' => '',
and it could work ... but there is no "comments" in software inventory ... in my case that's less important than "no inventory at all"
Éric