You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2010-10-18 20:36:20

carsten
Member
Registered: 2010-10-17
Posts: 13

0.78 dictionaries

Hi,

I'm currently testing GLPI 0.78 on CentOS 5.5 installed from repos remi and remi-test.

I defined some rules in manufacturer and operating system dictionary sections and made them active. Like

Criteria
Operating system    regular expression checks    /^CentOS release ([0-9]).([0-9])*/
Actions
Operating system    Assign     CentOS #0.#1

When pressing 'Rename based on dictionary' button all seems to be ok but nothing happens. In /var/log/glpi/php-errors.log I see:

2010-10-18 20:07 [2]
Notice(8): Undefined property: RuleDictionnaryOperatingSystemCollection::$show_cache
Backtrace :
/usr/share/glpi/inc/ruledictionnarydropdowncollection.class.php:51              userErrorHandlerNormal()
/usr/share/glpi/front/rule.common.php:124               RuleDictionnaryDropdownCollection->replayRulesOnExistingDB()
/usr/share/glpi/front/ruledictionnaryoperatingsystem.php:42             include()

or

2010-10-18 20:10 [2]
Notice(8): Undefined property: RuleDictionnaryManufacturerCollection::$show_cache
Backtrace :
/usr/share/glpi/inc/ruledictionnarydropdowncollection.class.php:51              userErrorHandlerNormal()
/usr/share/glpi/front/rule.common.php:124               RuleDictionnaryDropdownCollection->replayRulesOnExistingDB()
/usr/share/glpi/front/ruledictionnarymanufacturer.php:42                include()

System configuration

GLPI  0.78 (/glpi => /usr/share/glpi)

Server
 
Operating Systems : Linux dhcp51 2.6.18-194.17.1.el5 #1 SMP Wed Sep 29 12:50:31 EDT 2010 x86_64
PHP 5.3.4-dev (Core, PDO, Phar, Reflection, SPL, SimpleXML, apache2handler, bz2, calendar, ctype, curl, date, dom, ereg, exif,
    fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imap, json, ldap, libxml, mbstring, mysql, mysqli, openssl, pcre,
    pdo_mysql, pdo_sqlite, session, shmop, sockets, standard, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, zip, zlib)
Setup: memory_limit="64M" max_execution_time="30" safe_mode="" session.save_handler="files" 
Software: Apache/2.2.3 (CentOS) (Apache/2.2.3 (CentOS) Server at dhcp51 Port 80)
    Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.9) Gecko/20100908 CentOS/3.6-2.el5.centos Firefox/3.6.9
MySQL: 5.0.77 (glpi@localhost/glpi)

Mysql replicate

Active : No

Plugins list

Notifications / Mail Receiver
 
Use a SMTP server to send emails: PHP
Mail Receiver

OCS Inventory NG
 
Host for the OCSNG database : 'ocs', Connection to OCSNG database successful, Use the OCSNG software dictionary : 0

I also tried svn 12765 but errors in php-errors.log are still remain.
  Carsten

Offline

#2 2010-10-19 09:04:57

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

Re: 0.78 dictionaries

Your action is not correct : "assign" will be "assign value from regex"


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#3 2010-10-19 19:27:35

carsten
Member
Registered: 2010-10-17
Posts: 13

Re: 0.78 dictionaries

thanks, but "Undefinded property" errors still remains when setting action to "Assign the value from regular expression"

even if manufacture setting is

Criteria
    Manufacturer    is         VMware, Inc.
Actions
    Manufacturer     Assign    VMware

no assignment will be done and I get in php-errors.log:

Notice(8): Undefined property: RuleDictionnaryManufacturerCollection::$show_cache
Backtrace :
/usr/share/glpi/inc/ruledictionnarydropdowncollection.class.php:51             userErrorHandlerNormal()
/usr/share/glpi/front/rule.common.php:124               RuleDictionnaryDropdownCollection->replayRulesOnExistingDB()
/usr/share/glpi/front/ruledictionnarymanufacturer.php:42                include()

Offline

#4 2010-10-21 21:01:39

carsten
Member
Registered: 2010-10-17
Posts: 13

Re: 0.78 dictionaries

installed from svn 12843. Definded rules in Operating system version and Computer type. I also get errors here:

2010-10-21 20:43 [2]
Notice(8): Undefined property: RuleDictionnaryOperatingSystemVersionCollection::$show_cache
Backtrace :
/var/www/html/glpi-12843/inc/ruledictionnarydropdowncollection.class.php:51             userErrorHandlerNormal()
/var/www/html/glpi-12843/front/rule.common.php:124              RuleDictionnaryDropdownCollection->replayRulesOnExistingDB()
/var/www/html/glpi-12843/front/ruledictionnaryoperatingsystemversion.php:42             include()

2010-10-21 20:44 [2]
Notice(8): Undefined property: RuleDictionnaryComputerTypeCollection::$show_cache
Backtrace :
/var/www/html/glpi-12843/inc/ruledictionnarydropdowncollection.class.php:51             userErrorHandlerNormal()
/var/www/html/glpi-12843/front/rule.common.php:124              RuleDictionnaryDropdownCollection->replayRulesOnExistingDB()
/var/www/html/glpi-12843/front/ruledictionnarycomputertype.php:42               include()

running in debug mode gives the same error.

How can I track down the problem?

Carsten

Offline

#5 2010-10-22 08:58:41

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: 0.78 dictionaries


Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/

Offline

#6 2010-10-22 20:58:04

carsten
Member
Registered: 2010-10-17
Posts: 13

Re: 0.78 dictionaries

thanks
that fixed "Undefined property" errors.

Tests on "Operating system", "Manufacturer" and "OS Versions" rules are working correct now.

But running tests on "Computer Model" and "Software" rules are not working yet.
Pressing "Test rules engine" and entering test data works correct. Pressing "Renamed based on directory" button runs but nothing changes. Pressing "Cache Informations" also says 0 objects in cache.

Carsten

Offline

#7 2010-10-23 16:02:00

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: 0.78 dictionaries

moved to bugs section


MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI :    Support     Contribute     References     Freshmeat

Offline

#8 2010-10-25 09:42:54

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: 0.78 dictionaries

But running tests on "Computer Model" and "Software" rules are not working yet.

test of "Computer model" => work for me.

You should probably use the latest snapshot which have other fixes for Dictionnaries.

I'm currently testing GLPI 0.78 on CentOS 5.5 installed from repos remi and remi-test.

Try with glpi-0.78-2.svn12852 which is available in remi-test.

+


Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/

Offline

#9 2010-10-25 10:02:04

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: 0.78 dictionaries


MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI :    Support     Contribute     References     Freshmeat

Offline

#10 2010-10-25 10:02:18

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: 0.78 dictionaries

Replay the Software dictionnary from software list (massive action) is broken

Here is the fix:
https://forge.indepnet.net/projects/glp … ions/12857

+


Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/

Offline

#11 2010-10-25 10:09:59

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: 0.78 dictionaries

Replaying the Software dictionnary from the rules list (full replay) also works with my sample test rules.

+


Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/

Offline

#12 2010-10-25 21:00:06

carsten
Member
Registered: 2010-10-17
Posts: 13

Re: 0.78 dictionaries

restored my 072.4 database
updated to glpi-0.78-2.svn12852
applied changeset_r12857.diff

update went fine

applied a new software dictionary rule and everything is fine; thanks a lot smile

but when defining a new computer model, assigning this new computer model to an existing computer, extending an existing rule with new computer model, followed by clicking on "Rename based on dictionary" nothing changes. Pressing "Cache Informations" returned the correct result.

in /var/log/glpi/sql-errors.log I get:

2010-10-25 20:12 [7]
*** MySQL query error : 
***
SQL: UPDATE
                       `glpi_computers`
                       SET `model` = \'16\'
                       WHERE `computermodels_id` = \'17\' AND `manufacturers_id` = \'6\'
Error: Unknown column 'model' in 'field list'
Backtrace :
/usr/share/glpi/inc/ruledictionnarydropdowncollection.class.php :184               DBmysql->query()
/usr/share/glpi/inc/ruledictionnarydropdowncollection.class.php :52                RuleDictionnaryDropdownCollection->replayRulesOnExistingDBForModel()
/usr/share/glpi/front/rule.common.php :124         RuleDictionnaryDropdownCollection->replayRulesOnExistingDB()
/usr/share/glpi/front/ruledictionnarycomputermodel.php :42         include()
/usr/share/glpi/front/ruledictionnarycomputermodel.php

On mysql database table glpi_computers I see that model changed to computermodels_id.

  Carsten

Last edited by carsten (2010-10-25 21:01:32)

Offline

#13 2010-10-26 08:10:45

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: 0.78 dictionaries


Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/

Offline

#14 2010-10-26 19:51:30

carsten
Member
Registered: 2010-10-17
Posts: 13

Re: 0.78 dictionaries

applied  changeset 12868

works fine. thanks a lot

  Carsten

Offline

Board footer

Powered by FluxBB