Pb lors de la réindexation des documents

Christophe Otton <[email protected]>
Newsgroups gmane.comp.web.zope.cps.general.french
Message-ID <[email protected]>
Bonjour,

J'ai toujours mon pb de réindexation et quelques difficultés à savoir 
d'où ça vient.

Mon premier souci serait de comprendre les messages d'erreur du 
event.log / est-ce que quelqu'un peut m'aider à déchiffrer ce type de 
message :

> 2006-10-16T21:15:09 PROBLEM(100) FilteredSet eval() failed
> Object: document.html, expr: getattr(o, 'portal_type', None) not in ('Section', 'Workspace')
> Traceback (most recent call last):
>   File "/home/zope/Zope-2.7.6-final/lib/python/Products/PluginIndexes/TopicIndex/FilteredSet.py", line 73, in index_object
>     if RestrictionCapableEval(self.expr).eval({'o': o}):
>   File "/home/zope/Zope-2.7.6-final/lib/python/RestrictedPython/Eval.py", line 112, in eval
>     return eval(code, d)
>   File "<string>", line 1, in <expression>
> Unauthorized: You are not allowed to access 'portal_type' in this context


Apparemment un gd nb de ces messages sont liés aux calendriers mais pas 
seulement ...

l'autre type de message fréquent est :
> 2006-10-16T21:10:47 ERROR(200) textindexng cogiteau/portal_repository/341701480__0001 could not be converted
> Traceback (most recent call last):
>   File "/home/zope/cogiteau/Products/TextIndexNG2/TextIndexNG.py", line 326, in _index_object
>     source = converter.convert(source)
>   File "/home/zope/cogiteau/Products/TextIndexNG2/converters/html.py", line 32, in convert
>     page_width=256)
>   File "/home/zope/cogiteau/Products/TextIndexNG2/converters/stripogram/__init__.py", line 15, in html2text
>     parser.feed(s)
>   File "/usr/lib/python2.3/sgmllib.py", line 95, in feed
>     self.goahead(0)
>   File "/usr/lib/python2.3/sgmllib.py", line 165, in goahead
>     k = self.parse_declaration(i)
>   File "/usr/lib/python2.3/markupbase.py", line 89, in parse_declaration
>     decltype, j = self._scan_name(j, i)
>   File "/usr/lib/python2.3/markupbase.py", line 379, in _scan_name
>     self.error("expected name token")
>   File "/usr/lib/python2.3/sgmllib.py", line 102, in error
>     raise SGMLParseError(message)
> SGMLParseError: expected name token

plutot lié à TxtIndexNG et à des documents du repositery : j'ai 
recherché ces docs.
  - je les trouve dans le repositery : rien de spécial il y bien dans le 
doc 341701480__0001 un fichier PDF et un fichier html contenant les 
images du rapport et un tas de caractères illisibles
- le portal catalog : la recherche du même document crée l'erreur 
suivante :
> Time  	2006/10/17 16:12:20.708 GMT+2
> User Name (User Id) 	admin (admin)
> Request URL 	http://192.168.31.2:8080/cogiteau/portal_catalog/manage_catalogFoundItems
> Exception Type 	AttributeError
> Exception Value 	'NoneType' object has no attribute 'id'
> 
> 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.ZCatalog.ZCatalog, line 336, in manage_catalogFoundItems
>     * Module Products.ZCatalog.ZCatalog, line 796, in ZopeFindAndApply
>     * Module Products.ZCatalog.ZCatalog, line 796, in ZopeFindAndApply
>     * Module Products.ZCatalog.ZCatalog, line 764, in ZopeFindAndApply
> 
> AttributeError: 'NoneType' object has no attribute 'id'
> 
> Display traceback as text
> 
> REQUEST
> form
> obj_metatypes	['CPS Document', 'CPS Proxy Document', 'CPS Proxy Folder', 'CPS Proxy Folderish Document', 'Document', 'File']
> obj_mspec	'<'
> search_sub	1
> obj_searchterm	''
> obj_permission	'Access Transient Objects'
> obj_ids	['341701480__0001']
> obj_mtime	''
> obj_expr	''
> btn_submit	'Find and Catalog'
> cookies
> tree-s	'eJzTyCkw5NLIKTDiClZ3hANXW3WuAmOuRKCECUjWFEnWI98EJGvGlQgEegACpRAH'
> lazy items
> SESSION	<bound method SessionDataManager.getSessionData of <SessionDataManager instance at b68f1dd0>>
> other
> obj_mtime	''
> obj_ids	['341701480__0001']
> TraversalRequestNameStack	[]
> AUTHENTICATED_USER	admin
> URL	'http://192.168.31.2:8080/cogiteau/portal_catalog/manage_catalogFoundItems'
> obj_mspec	'<'
> obj_searchterm	''
> URL2	'http://192.168.31.2:8080/cogiteau'
> SERVER_URL	'http://192.168.31.2:8080'
> AUTHENTICATION_PATH	''
> USER_PREF_LANGUAGES	<Products.Localizer.Accept.AcceptLanguage instance at 0xac8a170c>
> obj_permission	'Access Transient Objects'
> PUBLISHED	<bound method CatalogTool.manage_catalogFoundItems of <CatalogTool instance at b68f1e60>>
> AcceptLanguage	<Products.Localizer.Accept.AcceptLanguage instance at 0xac8a170c>
> AcceptCharset	<Products.Localizer.Accept.AcceptCharset instance at 0xa96d3f4c>
> URL1	'http://192.168.31.2:8080/cogiteau/portal_catalog'
> obj_expr	''
> ACTUAL_URL	'http://192.168.31.2:8080/cogiteau/portal_catalog/manage_catalogFoundItems'
> obj_metatypes	['CPS Document', 'CPS Proxy Document', 'CPS Proxy Folder', 'CPS Proxy Folderish Document', 'Document', 'File']
> URL0	http://192.168.31.2:8080/cogiteau/portal_catalog/manage_catalogFoundItems
> URL1	http://192.168.31.2:8080/cogiteau/portal_catalog
> URL2	http://192.168.31.2:8080/cogiteau
> URL3	http://192.168.31.2:8080
> BASE0	http://192.168.31.2:8080
> BASE1	http://192.168.31.2:8080
> BASE2	http://192.168.31.2:8080/cogiteau
> BASE3	http://192.168.31.2:8080/cogiteau/portal_catalog
> BASE4	http://192.168.31.2:8080/cogiteau/portal_catalog/manage_catalogFoundItems
> environ
> HTTP_COOKIE	'tree-s="eJzTyCkw5NLIKTDiClZ3hANXW3WuAmOuRKCECUjWFEnWI98EJGvGlQgEegACpRAH"'
> SERVER_SOFTWARE	'Zope/(Zope 2.7.6-final, python 2.3.5, linux2) ZServer/1.1 CPS/3.2'
> SCRIPT_NAME	''
> REQUEST_METHOD	'GET'
> HTTP_KEEP_ALIVE	'300'
> SERVER_PROTOCOL	'HTTP/1.1'
> QUERY_STRING	'obj_metatypes%3Alist=CPS+Document&obj_metatypes%3Alist=CPS+Proxy+Document&obj_metatypes%3Alist=CPS+Proxy+Folder&obj_metatypes%3Alist=CPS+Proxy+Folderish+Document&obj_metatypes%3Alist=Document&obj_metatypes%3Alist=File&obj_ids%3Atokens=341701480__0001&obj_searchterm=&obj_expr=&obj_mspec=%3C&obj_mtime=&obj_permission=Access+Transient+Objects&search_sub%3Aint=1&btn_submit=Find+and+Catalog'
> channel.creation_time	1161093142
> CONNECTION_TYPE	'keep-alive'
> HTTP_ACCEPT_CHARSET	'ISO-8859-1,utf-8;q=0.7,*;q=0.7'
> HTTP_USER_AGENT	'Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7'
> HTTP_REFERER	'http://192.168.31.2:8080/cogiteau/portal_catalog/manage_catalogFind'
> SERVER_NAME	'localhost.localdomain'
> REMOTE_ADDR	'192.168.17.35'
> PATH_TRANSLATED	'/cogiteau/portal_catalog/manage_catalogFoundItems'
> SERVER_PORT	'8080'
> HTTP_HOST	'192.168.31.2:8080'
> HTTP_ACCEPT	'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5'
> GATEWAY_INTERFACE	'CGI/1.1'
> HTTP_ACCEPT_LANGUAGE	'fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3'
> HTTP_ACCEPT_ENCODING	'gzip,deflate'
> PATH_INFO	'/cogiteau/portal_catalog/manage_catalogFoundItems'


Quelqu'un a-t-il un début de piste pour m'aider savoir d'où vient le pb?

Merci d'avance.

Ch Otton
Poyry Environment.

_______________________________________________
cps-users-fr 
Adresse de la liste : [email protected]
Gestion de l'abonnement : <http://lists.nuxeo.com/mailman/listinfo/cps-users-fr>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.