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 2012-04-11 11:53:42

horihel
Member
Registered: 2012-02-17
Posts: 17

Possible bug in dictionary processing

I have the following dictionary rule (for software):

Software - Regex checks - /Acronis Backup . Recovery ([0-9]+) Agent.*/

and these two actions:

Software - Assign - Acronis Backup & Recovery
Version - Assign the Value from regular expression - #0

When I test the rule it works fine, but when I replay the dictionary rule against the software list, it doesn't do anything.

I tried different rules and all failed - the software entries "Acronis Backup & Recovery 10  Agent" and "Acronis Backup & Recovery 11  Agent" seem to be immutable by dictionary rules. I suspect the ampersand might trigger a bug - but even if I match the ampersand via the regex "." I still can't access those software entries with any dictionary rule.

Offline

#2 2012-04-11 12:01:42

wawa
GLPI-DEV
From: Montpellier / France
Registered: 2006-07-03
Posts: 6,019
Website

Re: Possible bug in dictionary processing

hello
which version of glpi ?
do you use ocs or fusioninventory ?

Offline

#3 2012-04-11 12:03:11

horihel
Member
Registered: 2012-02-17
Posts: 17

Re: Possible bug in dictionary processing

GLPI version is 0.83 recently upgraded.
Data is fed from OCS via the builtin importer.

Offline

#4 2012-04-16 12:32:26

horihel
Member
Registered: 2012-02-17
Posts: 17

Re: Possible bug in dictionary processing

Do you need more information?

Offline

#5 2012-04-16 18:18:43

wawa
GLPI-DEV
From: Montpellier / France
Registered: 2006-07-03
Posts: 6,019
Website

Re: Possible bug in dictionary processing

hello
I just tried to reproduce what you're reporting
1 - with your regex I can't even test it sucessfully
2 - with this regex it works (test and import from ocs) : /Acronis Backup & Recovery ([0-9]+) Agent/

Can you test it again ?

Offline

#6 2012-04-18 11:21:11

horihel
Member
Registered: 2012-02-17
Posts: 17

Re: Possible bug in dictionary processing

I feel a bit stupid because I can't reproduce this problem any more - even with the regexp that didn't work last week...

sorry...

Offline

#7 2012-04-18 11:34:41

wawa
GLPI-DEV
From: Montpellier / France
Registered: 2006-07-03
Posts: 6,019
Website

Re: Possible bug in dictionary processing

smile
no problem, I close this thread

Offline

Board footer

Powered by FluxBB