• Tatuya Kamada's avatar
    BusinessTemplate: Fix a unindex/reindex catalog problem when upgraiding broken objects. · b241968f
    Tatuya Kamada authored
    How it happened while upgrading PathTemplateItem:
      1. Tries to remove the existing broken object and succeeds removing
      2. However it is a broken object so self.unindexCatalog() is
         never called and the old catalog is remaining
      3. Add new object of PathTemplateItem and tries to reindex the object
      4. Since old catalog is remaining, the catalog uid and object uid is
         different so catalogObjectList fails with FATAL error.
    
    The test is tests/BusinessTemplate.py#test_UpgradeBrokenObject.
    b241968f
BusinessTemplate.py 242 KB