Ticket #1432 (new defect)
Error renaming a CPS site
Reported by: | sschintu | Owned by: | fguillaume |
---|---|---|---|
Priority: | P2 | Milestone: | CPS 3.5.7 |
Component: | CPS (global) | Version: | TRUNK |
Severity: | normal | Keywords: | |
Cc: |
Description
when I try to rename a CPS site from the ZMI I get an UnicodeDecodeError?.
This is what I found in the logs:
2006-02-21T15:46:42 ERROR Zope.SiteErrorLog? http://localhost:8080/manage_renameObjects Traceback (most recent call last):
File "/home/zope/z290-p242/lib/python/ZPublisher/Publish.py", line 119, in publish
transactions_manager.commit()
File "/home/zope/z290-p242/lib/python/Zope2/App/startup.py", line 234, in commit
transaction.commit()
File "/home/zope/z290-p242/lib/python/transaction/_manager.py", line 96, in commit
return self.get().commit(sub, deprecation_wng=False)
File "/home/zope/cps340-z290-p242/Products/CPSCompat/PatchZODBTransaction.py", line 169, in commit
self._callBeforeCommitHooks()
File "/home/zope/z290-p242/lib/python/transaction/_transaction.py", line 421, in _callBeforeCommitHooks
hook(*args, kws)
File "/home/zope/cps340-z290-p242/Products/CPSCore/commithooks.py", line 229, in call
subscriber(*args, kws)
File "/home/zope/cps340-z290-p242/Products/CPSCore/IndexationManager.py", line 132, in call
File "/home/zope/cps340-z290-p242/Products/CPSCore/IndexationManager.py", line 151, in process
ob._reindexObject(idxs=idxs)
File "/home/zope/cps340-z290-p242/Products/CPSCore/ProxyBase.py", line 402, in _reindexObject
return CMFCatalogAware.reindexObject(self, idxs=idxs)
File "/home/zope/cps340-z290-p242/Products/CMFCore/CMFCatalogAware.py", line 87, in reindexObject
catalog.reindexObject(self, idxs=idxs)
File "/home/zope/cps340-z290-p242/Products/CMFCore/CatalogTool.py", line 353, in reindexObject
self.catalog_object(object, uid, idxs, update_metadata)
File "/home/zope/cps340-z290-p242/Products/CPSCore/PatchCatalogTool.py", line 242, in cat_catalog_object
ZCatalog.catalog_object(self, w, uid, idxs, update_metadata, *pgharg)
File "/home/zope/z290-p242/lib/python/Products/ZCatalog/ZCatalog.py", line 566, in catalog_object
update_metadata=update_metadata)
File "/home/zope/z290-p242/lib/python/Products/ZCatalog/Catalog.py", line 360, in catalogObject
blah = x.index_object(index, object, threshold)
File "/home/zope/z290-p242/lib/python/Products/PluginIndexes/common/UnIndex.py", line 235, in index_object
res += self._index_object(documentId, obj, threshold, attr)
File "/home/zope/z290-p242/lib/python/Products/PluginIndexes/common/UnIndex.py", line 262, in _index_object
self.insertForwardIndexEntry(datum, documentId)
File "/home/zope/z290-p242/lib/python/Products/PluginIndexes/common/UnIndex.py", line 207, in insertForwardIndexEntry
indexRow = self._index.get(entry, _marker)
UnicodeDecodeError?: 'ascii' codec can't decode byte 0xe0 in position 60: ordinal not in range(128)
This happens only when I try to rename a site with some sections, workspaces and documents already created, it works fine when I try to rename a new site.
Change History
comment:2 Changed 14 years ago by fguillaume
This is apparently due to a busted catalog containing unicode.
This requires deeps surgery to cleanup. The upgrade step fixing the catalog should have cleaned it up. Have you run that? To do it, go in the ZMI to the portal's Properties tab and replace last_updated_version with 3.3.5. The go to portal_setup, click the Upgrade tab, then select "Clean catalog of broken objects" and click Upgrade.
comment:3 Changed 14 years ago by fguillaume
- Milestone changed from CPS 3.4.0 to CPS 3.4.1
Not a bug with the current CPS, moving to 3.4.1 and we'll probably reject if there's no more info.
comment:4 Changed 14 years ago by tracguest
This bug has been confirmed by Stefane Fermigier, he has got the same error working on a copy of cps-project.
Please take a look at the following post: http://lists.nuxeo.com/pipermail/cps-users/2006-February/001815.html
I could not reproduce it, could you give steps to reproduce? Thanks