Ticket #4164 (closed Bug: fixed)
Opened 7 years ago
plone 2.1 (svn) dies on folder listing
| Reported by: | justizin | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 2.1 |
| Component: | Infrastructure | Version: | |
| Severity: | Keywords: | ||
| Cc: |
Description
This occurs accessing a folder which, at one time, contained an object whose portal_type Product was removed from the filesystem. In plone 2.0.4/5, this item was simply omitted from folder listing. folder_contents and view actions produce the same / similar error. After deleting the object and updating the catalog, this error is fixed..
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.CMFDefault.SkinnedFolder, line 80, in call Module Products.Archetypes.TemplateMixin, line 72, in call Module Shared.DC.Scripts.Bindings, line 306, in call Module Shared.DC.Scripts.Bindings, line 324, in _bindAndExec Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec Module Products.CMFCore.FSPageTemplate, line 177, in _exec Module Products.CMFCore.FSPageTemplate, line 123, in pt_render Module Products.PageTemplates.PageTemplate, line 96, in pt_render
- <FSPageTemplate at /qutang/www/folder_listing used for
/qutang/www/Members/justizin/school/courses/principles3dmodeling>
Module TAL.TALInterpreter, line 186, in call Module TAL.TALInterpreter, line 190, in call Module TAL.TALInterpreter, line 234, in interpret Module TAL.TALInterpreter, line 671, in do_useMacro Module TAL.TALInterpreter, line 234, in interpret Module TAL.TALInterpreter, line 409, in do_optTag_tal Module TAL.TALInterpreter, line 394, in do_optTag Module TAL.TALInterpreter, line 389, in no_tag Module TAL.TALInterpreter, line 234, in interpret Module TAL.TALInterpreter, line 702, in do_defineSlot Module TAL.TALInterpreter, line 234, in interpret Module TAL.TALInterpreter, line 409, in do_optTag_tal Module TAL.TALInterpreter, line 394, in do_optTag Module TAL.TALInterpreter, line 389, in no_tag Module TAL.TALInterpreter, line 234, in interpret Module TAL.TALInterpreter, line 650, in do_defineMacro Module TAL.TALInterpreter, line 234, in interpret Module TAL.TALInterpreter, line 694, in do_defineSlot Module TAL.TALInterpreter, line 234, in interpret Module TAL.TALInterpreter, line 650, in do_defineMacro Module TAL.TALInterpreter, line 234, in interpret Module TAL.TALInterpreter, line 409, in do_optTag_tal Module TAL.TALInterpreter, line 394, in do_optTag Module TAL.TALInterpreter, line 389, in no_tag Module TAL.TALInterpreter, line 234, in interpret Module TAL.TALInterpreter, line 409, in do_optTag_tal Module TAL.TALInterpreter, line 394, in do_optTag Module TAL.TALInterpreter, line 389, in no_tag Module TAL.TALInterpreter, line 234, in interpret Module TAL.TALInterpreter, line 637, in do_condition Module TAL.TALInterpreter, line 234, in interpret Module TAL.TALInterpreter, line 409, in do_optTag_tal Module TAL.TALInterpreter, line 394, in do_optTag Module TAL.TALInterpreter, line 389, in no_tag Module TAL.TALInterpreter, line 234, in interpret Module TAL.TALInterpreter, line 613, in do_loop_tal Module TAL.TALInterpreter, line 234, in interpret Module TAL.TALInterpreter, line 409, in do_optTag_tal Module TAL.TALInterpreter, line 394, in do_optTag Module TAL.TALInterpreter, line 389, in no_tag Module TAL.TALInterpreter, line 234, in interpret Module TAL.TALInterpreter, line 460, in do_setLocal_tal Module Products.PageTemplates.TALES, line 221, in evaluate Module Products.PageTemplates.ZRPythonExpr, line 47, in call
- traceback_info: portal_url+'/'+ item_typeinfo.getIcon()
Module Python expression "portal_url+'/'+ item_typeinfo.getIcon()", line
1, in <expression> AttributeError: 'NoneType' object has no attribute 'getIcon'

We ought to fail gracefully on this; thanks for reporting it.