• Tatuya Kamada's avatar
    BusinessTemplate: Fix a unindex/reindex catalog problem when upgraiding broken objects. · ff45fe0a
    Tatuya Kamada authored
     How it happened while upgrading PathTemplateItem:
       1. Try to remove the existing broken object and succeed 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 try 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.
    ff45fe0a
BusinessTemplate.py 244 KB