Ticket #1076 (closed defect: worksforme)

Opened 14 years ago

Last modified 14 years ago

key error when saving flexible documents

Reported by: jmorliaguet Owned by: janguenot
Priority: P2 Milestone: CPS 3.3.7
Component: CPSCore Version: TRUNK
Severity: normal Keywords:


flexible documents on a same site can be updated because of a key error. Not sure how to reproduce this.

Traceback (innermost last):

    * Module ZPublisher.Publish, line 119, in publish
    * Module Zope2.App.startup, line 215, in commit
    * Module transaction._manager, line 84, in commit
    * Module transaction._transaction, line 373, in commit
    * Module transaction._transaction, line 413, in _callBeforeCommitHooks
    * Module Products.CPSCore.TransactionManager, line 139, in __call__
    * Module Products.CPSCore.IndexationManager, line 128, in __call__
    * Module Products.CPSCore.IndexationManager, line 154, in process
    * Module Products.CPSCore.ProxyBase, line 418, in _reindexObjectSecurity
    * Module Products.CPSCompat.PatchCMFCoreCMFCatalogAware, line 97, in reindexObjectSecurity
    * Module Products.ZCatalog.CatalogBrains, line 52, in _unrestrictedGetObject
    * Module OFS.Traversable, line 209, in unrestrictedTraverse
      __traceback_info__: ([], '1231442833__0004')
    * Module Products.CPSCore.ProxyBase, line 280, in __getitem__

KeyError: '1231442833__0004' 

Change History

comment:1 Changed 14 years ago by janguenot

  • Owner changed from fguillaume to janguenot

comment:2 Changed 14 years ago by jmorliaguet

solved: this is due to portal repository objects that ended up being cataloged.

the solution was to clean the catalog and rebuild it.

I don't know how the objects ended up there (I though first that this was due to a CPSIO import). Note that it occured on the site where #1029 was diagnosed.

maybe the Products.CPSCore.ProxyBase?'s getitem should log the problem instead of raising an exception.

comment:3 Changed 14 years ago by fguillaume

  • Priority changed from P1 to P2
  • Milestone changed from CPS 3.3.7 to CPS 3.4.0

If it doesn't raise an exception, it has to return something to its caller, but there's nothing reasonable to return.

Leaving open a bit to see if there's really a problem.

comment:4 Changed 14 years ago by fguillaume

  • Status changed from new to closed
  • Resolution set to worksforme

Please reopen a bug if you elucidate something.

Note: See TracTickets for help on using tickets.