[Zope-CMF] CMF-Search: Zope Error when searching for nonexistent keyword

Heiko Stoermer heiko.stoermer@andreas-schmid.de
Mon, 23 Apr 2001 12:28:03 GMT+2


Hi all,

I think this has been asked before, but never answered. It is a rather seve=
re problem for me.

Platform: Zope 2.3.1b1 on a SuSE Linux 7.0
CMF cleanly installed with a new CMF-Site instance running.

When I search for a keyword that exists - no problem, the search works.
If the keyword is not in the catalog, I don't get the "0 matches" message a=
s on cmf.zope.org but a Zope error: "expected integer key".
I included the tracebacks I get when logged into CMF and logged out. The lo=
ok a bit different but say mostly the same.



<------------  traceback when not logged in: ------------->
  <strong>Error Type: TypeError</strong><br>
  <strong>Error Value: expected integer key</strong><br>
 [...]
<!--
Traceback (innermost last):
  File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 223, in publish=
_module
  File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 187, in publish
  File /usr/lib/zope/lib/python/Zope/__init__.py, line 221, in zpublisher_e=
xception_hook
    (Object: Traversable)
  File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 171, in publish
  File /usr/lib/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply
    (Object: search)
  File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 112, in call_ob=
ject
    (Object: search)
  File /usr/lib/zope/lib/python/OFS/DTMLMethod.py, line 189, in __call__
    (Object: search)
  File /usr/lib/zope/lib/python/DocumentTemplate/DT_String.py, line 538, in=
 __call__
    (Object: search)
  File /usr/lib/zope/lib/python/DocumentTemplate/DT_Let.py, line 145, in re=
nder
    (Object: results==portal_catalog)
  File /usr/lib/zope/lib/python/Products/CMFCore/CatalogTool.py, line 200, =
in searchResults
    (Object: Traversable)
  File /usr/lib/zope/lib/python/Products/ZCatalog/ZCatalog.py, line 535, in=
 searchResults
    (Object: Traversable)
  File /usr/lib/zope/lib/python/Products/ZCatalog/Catalog.py, line 651, in =
searchResults
  File /usr/lib/zope/lib/python/Products/ZCatalog/Catalog.py, line 542, in =
_indexedSearch
  File /usr/lib/zope/lib/python/SearchIndex/UnTextIndex.py, line 513, in _a=
pply_index
  File /usr/lib/zope/lib/python/SearchIndex/UnTextIndex.py, line 576, in qu=
ery
  File /usr/lib/zope/lib/python/SearchIndex/UnTextIndex.py, line 616, in ev=
aluate
  File /usr/lib/zope/lib/python/SearchIndex/UnTextIndex.py, line 448, in __=
getitem__
TypeError: (see above)

-->


<--------------------- traceback when logged in: ----------->
  <P><STRONG>TypeError</STRONG></P>

  Sorry, a Zope error occurred.<p>
<!--
Traceback (innermost last):
  File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 223, in publish=
_module
  File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 187, in publish
  File /usr/lib/zope/lib/python/Zope/__init__.py, line 221, in zpublisher_e=
xception_hook
    (Object: Traversable)
  File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 171, in publish
  File /usr/lib/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply
    (Object: search)
  File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 112, in call_ob=
ject
    (Object: search)
  File /usr/lib/zope/lib/python/OFS/DTMLMethod.py, line 189, in __call__
    (Object: search)
  File /usr/lib/zope/lib/python/DocumentTemplate/DT_String.py, line 538, in=
 __call__
    (Object: search)
  File /usr/lib/zope/lib/python/OFS/DTMLMethod.py, line 182, in __call__
    (Object: standard_html_header)
  File /usr/lib/zope/lib/python/DocumentTemplate/DT_String.py, line 538, in=
 __call__
    (Object: standard_html_header)
  File /usr/lib/zope/lib/python/OFS/DTMLMethod.py, line 182, in __call__
    (Object: actions_box)
  File /usr/lib/zope/lib/python/DocumentTemplate/DT_String.py, line 538, in=
 __call__
    (Object: actions_box)
  File /usr/lib/zope/lib/python/DocumentTemplate/DT_Let.py, line 146, in re=
nder
    (Object: isAnon==&quot;portal_membership.isAnonymousUser()&quot;
          AuthClass==&quot;isAnon and 'GuestActions' or 'MemberActions'&quo=
t;
          uname==&quot;isAnon and 'Guest' or portal_membership.getAuthentic=
atedMember().getUserName()&quot;
          obj==&quot;this()&quot;
          actions==&quot;portal_actions.listFilteredActionsFor(obj)&quot;
          user_actions==&quot;actions['user']&quot;
          folder_actions==&quot;actions['folder']&quot;
          object_actions==&quot;actions['object'] + actions['workflow']&quo=
t;
          global_actions==&quot;actions['global']&quot;)
  File /usr/lib/zope/lib/python/DocumentTemplate/DT_Util.py, line 334, in e=
val
    (Object: portal_actions.listFilteredActionsFor(obj))
    (Info: portal_actions)
  File &lt;string&gt;, line 0, in ?
  File /usr/lib/zope/lib/python/Products/CMFCore/ActionsTool.py, line 162, =
in listFilteredActionsFor
    (Object: portal_actions)
  File /usr/lib/zope/lib/python/Products/CMFCore/WorkflowTool.py, line 222,=
 in listActions
    (Object: portal_workflow)
  File /usr/lib/zope/lib/python/Products/CMFCore/DefaultWorkflow.py, line 2=
09, in listGlobalActions
  File /usr/lib/zope/lib/python/Products/CMFCore/CatalogTool.py, line 200, =
in searchResults
    (Object: Traversable)
  File /usr/lib/zope/lib/python/Products/ZCatalog/ZCatalog.py, line 535, in=
 searchResults
    (Object: Traversable)
  File /usr/lib/zope/lib/python/Products/ZCatalog/Catalog.py, line 651, in =
searchResults
  File /usr/lib/zope/lib/python/Products/ZCatalog/Catalog.py, line 542, in =
_indexedSearch
  File /usr/lib/zope/lib/python/SearchIndex/UnTextIndex.py, line 513, in _a=
pply_index
  File /usr/lib/zope/lib/python/SearchIndex/UnTextIndex.py, line 576, in qu=
ery
  File /usr/lib/zope/lib/python/SearchIndex/UnTextIndex.py, line 616, in ev=
aluate
  File /usr/lib/zope/lib/python/SearchIndex/UnTextIndex.py, line 448, in __=
getitem__
TypeError: expected integer key

-->



Thanks for helping,
Heiko
--=0D
      Heiko Stoermer=0D
  Software Developer=0D
Login & Solutions AG=0D
=0D
=0D
=0D
=0D
=0D
=0D
=0D