Ticket #832 (closed defect: fixed)
problem in the 0.78 detection as a 0.8
| Reported by: | oroussy | Owned by: | oroussy |
|---|---|---|---|
| Priority: | Normal | Milestone: | 1.2.5 |
| Component: | python-mmc-glpi | Version: | 1.2.4 |
| Severity: | Minor | Keywords: | |
| Cc: |
Description
when getting the Ajax box for the software version there is a crash because the code think the version is 0.7x whereas it is supposed to be a 0.8x
2010-05-12 14:21:59,785 DEBUG RPC method call from user XXX:
dyngroup.getPossiblesValuesForCriterionInModuleFuzzyWhere('glpi', 'Version', 'PROGRES PN', '28.')
2010-05-12 14:21:59,785 DEBUG Using thread #1 for getPossiblesValuesForCriterionInModuleFuzzyWhere
2010-05-12 14:21:59,870 ERROR Error during render
dyngroup.getPossiblesValuesForCriterionInModuleFuzzyWhere: Traceback (most recent call last):
File "/usr/lib/python2.3/threading.py", line 416, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/lib/python2.3/site-packages/twisted/python/threadpool.py", line 161, in _worker
context.call(ctx, function, *args, **kwargs)
File "/usr/lib/python2.3/site-packages/twisted/python/context.py", line 59, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/usr/lib/python2.3/site-packages/twisted/python/context.py", line 37, in callWithContext
return func(*args,**kw)
--- <exception caught here> ---
File "/usr/lib/python2.3/site-packages/mmc/agent.py", line 176, in _putResult
result = f(*args, **kwargs)
File "/usr/lib/python2.3/site-packages/mmc/plugins/dyngroup/__init__.py", line 290, in
getPossiblesValuesForCriterionInModuleFuzzyWhere
result = queryManager.getPossiblesValuesForCriterionInModule(ctx, moduleName, criterion,
unescape(value1), unescape(value2))
File "/usr/lib/python2.3/site-packages/mmc/plugins/dyngroup/qmanager.py", line 130, in
getPossiblesValuesForCriterionInModule
return [ret[0], ret[1](ctx, value1, value2)]
File "plugins/glpi/querymanager/__init__.py", line 120, in getAllSoftwaresAndVersions
File "plugins/glpi/querymanager/__init__.py", line 120, in <lambda>
exceptions.AttributeError: 'SoftwareVersion' object has no attribute 'version'
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

