#0269 Error type: KeyError, Error value: 'filenames'
An error occured when I tried to submit the followup in any issues whether with or without attachments.
we upgraded to 0.7.1 version when this problem started. for first few days this problem was not there and it still occurs in 95% of the submissions and not always.
then we upgraded to latest cvs but zope crashed so we
later downgraded to 0.7.0 still the problem continued
previously we were using 0.6.x version
i saw a similar case in this tracker but it mentioned that use cvs latest version but it did not solve the problem so i post this new issue
--------------------------------------------------
Error type: KeyError
Error value: 'filenames'
Traceback (innermost last):
Module ZPublisher.Publish, line 101, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 39, in call_object
Module Products.IssueTrackerProduct.Issue, line 972, in ModifyIssue
Module Products.ZCatalog.CatalogAwareness, line 126, in reindex_object
Module Products.IssueTrackerProduct.Issue, line 1769, in index_object
Module Products.ZCatalog.ZCatalog, line 528, in catalog_object
Module Products.ZCatalog.Catalog, line 379, in catalogObject
Module Products.ZCatalog.Catalog, line 291, in getIndex
KeyError: 'filenames'
3 years and 2 months and 8 days old
How on earth did you manage to get this to happen?! The solution is to press the Update Everything button in the Management tab. The reason this error happens is because your catalog doesn't yet have the "filenames" index. BUT if you study the code of the function 'index_object()' inside Issue.py you'll see that it does a check if the index does exist before it's being used. I try and I try but I can't imagine how you could have run into this.
Have you done some sort of monkeypatch? Or changed any of the functions that call index_object? The strange thing is, from the traceback, it's reindex_object() which calls index_object() and in the default parameters of index_object() there's no 'filenames'.
What Zope version are you running?
Zope Version(Zope 2.7.3-0.fdr.6.2, python 2.3.4, linux2)
Python Version 2.3.4 (#0001, Oct 26 2004, 16:42:40) [GCC 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)]
System Platform linux2
Thanks for the information. I am sorry to say that I am not aware of python programming and do not look at the code behind the IssueTrackerProduct and is rarely able to understand the meaning of the error log tracebacks.
I was not aware of the Management tab work to be done after upgrade. I though its a bug and instead of resolving it with certain settings it might be better to upgrade to new cvs version which also did not work.
We use over 100 Issue trackers on our server as it is very easy to use and powerful issue tracker and updating for each one of them is not very nice solution for us.
I did this and resolved the problem in many trackers but in one tracker when I tried to "update everything" I got following error log:
Bug Reporting File
2006/04/28 14:06:42.742 GMT+0530
Error type: KeyError
Error value: 'filenames'
Traceback (innermost last):
Module ZPublisher.Publish, line 101, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 39, in call_object
Module Products.IssueTrackerProduct.IssueTracker, line 1385, in UpdateEverything
Module Products.IssueTrackerProduct.IssueTracker, line 4579, in UpdateCatalog
Module Products.IssueTrackerProduct.Issue, line 1769, in index_object
Module Products.ZCatalog.ZCatalog, line 528, in catalog_object
Module Products.ZCatalog.Catalog, line 379, in catalogObject
Module Products.ZCatalog.Catalog, line 291, in getIndex
KeyError: 'filenames'
IssueTrackerProduct version: 0.7.0
Zope: (Zope 2.7.3-0.fdr.6.2, python 2.3.4, linux2)
Python: 2.3.4 (#0001, Oct 26 2004, 16:42:40)
[GCC 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)]
Platform: linux2
"clicking" update everything is working well though we have to do that for each tracker. Thanks for your update on the code on CVS, but I am not trying it now. For one tracker where "update eveything" also gave some error, i observed that even though error came the problem diappeared in that tracker also.
Currently i am using "update everything" where required. I plan to upgrade only to a planned release and not cvs release.
Thanks for your suggestions and efforts. I think Issue Tracker is a great product and support is also very good and quick form you.
i think the status of this issue should be now completed.