close 648675 thanks On Mon, Nov 14, 2011 at 12:18:19AM +0100, J.Pietschmann wrote: > Package: ocsinventory-server > Version: 2.0.2-2 > Severity: important > Tags: upstream > > Dear Maintainer, > > the ocsinventory server wont work with fusioninventory-agent since the upgrade > to 2.0 in wheezy, this includes the > fusioninventory-agent 2.1.10-1 in wheezy. The agent gets a 400 "Bad Request" > when accessing > http://localhost/ocsinventory, ocsinventory logs > 127.0.0.1;FusionInventory-Agent_v2.1.10;useragent;Bad agent or agent version > too recent for server !! >
Hi, This has been discussed with OCSInventory upstream some time ago, and the solution is described in the README.Debian file: ///// Support for other agents ------------------------ Starting from version 2.0.2, support for non-native agents has been included upstream. To add support for another agent, edit file etc/ocsinventory/ocsinventory-server.conf and add:: PerlSetEnv OCS_OPT_EXT_USERAGENTS_FILE_PATH /etc/ocsinventory/agents.txt Create file /etc/ocsinventory/agents.txt and add one agent name per line. ///// > > The reason is probably an regression in the upstream code when checking the > agent for validity in > /usr/share/perl5/Apache/Ocsinventory/Server/Useragent.pm, sub > useragent_prolog_read > A proper fix is probably to extend %ocsagents with an entry for > FusionInventory-Agent. > Nope, the solution chosen by upstream is the user-agents file. > I worked around the problem by using a hook in > /etc/oscinventory/ocsinventory.conf: > PerlSetEnv OCS_OPT_EXT_USERAGENTS_FILE_PATH > "/etc/ocsinventory/ext-useragents" > and put FusionInventory-Agent_v2.1.10 in there > That is documented in the README.Debian file. Regards, Pierre -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org